LCD1002 - 20x4 LCD Panel from B.G. Micro
Archiver
Posts: 46,084
Chris-
See App Note 1: LCD User-Interface Terminal in the BASIC Stamp
I Application Notes. Has more than you need to address your
questions.
Steve
On 6 Jun 00 at 15:00, Chris V. wrote:
> I've recently purchased a LCD1002 - 20x4 LCD Panel from B.G.
> Micro, I am unable to determine how to hook it up in 4 bit mode, to
> my Basic Stamp Rev. D. I am also unable to figure out how to program
> the stamp so I can write Characters to the LCD directly from the
> stamp. If anyone has this LCD display, and knows how to run it, I
> would appriciate some help with it. The LCD is run by a HD44780
> controller by Hitachi.
See App Note 1: LCD User-Interface Terminal in the BASIC Stamp
I Application Notes. Has more than you need to address your
questions.
Steve
On 6 Jun 00 at 15:00, Chris V. wrote:
> I've recently purchased a LCD1002 - 20x4 LCD Panel from B.G.
> Micro, I am unable to determine how to hook it up in 4 bit mode, to
> my Basic Stamp Rev. D. I am also unable to figure out how to program
> the stamp so I can write Characters to the LCD directly from the
> stamp. If anyone has this LCD display, and knows how to run it, I
> would appriciate some help with it. The LCD is run by a HD44780
> controller by Hitachi.
Comments
Micro, I am unable to determine how to hook it up in 4 bit mode, to my Basic
Stamp Rev. D. I am also unable to figure out how to program the stamp so I
can write Characters to the LCD directly from the stamp. If anyone has this
LCD display, and knows how to run it, I would appriciate some help with it.
The LCD is run by a HD44780 controller by Hitachi.
Chris V.
A.K.A. [noparse][[/noparse]ToJ]Picard, [noparse][[/noparse]ToJ]Locutus
"Is that a turtle on your head? or are you a Klingon?" - Unknown
_______________________________________________________
Get 100% FREE Internet Access powered by Excite
Visit http://freelane.excite.com/freeisp
thing I can come up with is that because the display is a different size,
the programming is different?
On Tue, 6 Jun 2000 16:18:09 +0800, basicstamps@egroups.com wrote:
> Chris-
>
> See App Note 1: LCD User-Interface Terminal in the BASIC Stamp
> I Application Notes. Has more than you need to address your
> questions.
>
> Steve
>
> On 6 Jun 00 at 15:00, Chris V. wrote:
>
> > I've recently purchased a LCD1002 - 20x4 LCD Panel from B.G.
> > Micro, I am unable to determine how to hook it up in 4 bit mode, to
> > my Basic Stamp Rev. D. I am also unable to figure out how to program
> > the stamp so I can write Characters to the LCD directly from the
> > stamp. If anyone has this LCD display, and knows how to run it, I
> > would appriciate some help with it. The LCD is run by a HD44780
> > controller by Hitachi.
>
>
>
Chris V.
A.K.A. [noparse][[/noparse]ToJ]Picard, [noparse][[/noparse]ToJ]Locutus
"Is that a turtle on your head? or are you a Klingon?" - Unknown
_______________________________________________________
Get 100% FREE Internet Access powered by Excite
Visit http://freelane.excite.com/freeisp
information for how to reset the display using the reset
by instruction method, which is basically sending the reset
character to the LCD display 3 times with at least 10ms delay
between. You will HAVE to use the 2-line mode in your function
set command. The main problem I had was that I had to supply
a negative voltage for contrast before I could see anything
on the display. For a while I thought the display wasn't working.
I am presently still working with some HD44780 based LCD modules
being controlled from the stamp via a palm pilot.
I have the complete spec sheet for the HD44780 in pdf format.
If you like, I can e-mail it to you. Here are my connections:
Stamp LCD
=========================================
Port0 Data Bit 4 Pin 11
Port1 Data Bit 5 Pin 12
Port2 Data Bit 6 Pin 13
Port3 Data Bit 7 Pin 14
Port4 Register select (RS) Pin 4
Port5 Read/Write (RW) Pin 5
Port6 Enable Pin 6
+5vdc Pin 1
GND Pin 2
Contrast voltage Pin 3
If you still have problems or questions, feel free to contact me.
Bob
tesla@i...
At 03:00 PM 6/6/00 -0700, you wrote:
>I've recently purchased a LCD1002 - 20x4 LCD Panel from B.G.
>Micro, I am unable to determine how to hook it up in 4 bit mode, to my Basic
>Stamp Rev. D. I am also unable to figure out how to program the stamp so I
>can write Characters to the LCD directly from the stamp. If anyone has this
>LCD display, and knows how to run it, I would appriciate some help with it.
>The LCD is run by a HD44780 controller by Hitachi.
>
>
>Chris V.
>A.K.A. [noparse][[/noparse]ToJ]Picard, [noparse][[/noparse]ToJ]Locutus
>
>"Is that a turtle on your head? or are you a Klingon?" - Unknown
>
>
>
>
>
>_______________________________________________________
>Get 100% FREE Internet Access powered by Excite
>Visit http://freelane.excite.com/freeisp
>
>
>
>
>
>
Original Message
From: Chris V. <cvenem01@e...>
To: <basicstamps@egroups.com>
Sent: Tuesday, June 06, 2000 3:00 PM
Subject: [noparse][[/noparse]basicstamps] LCD1002 - 20x4 LCD Panel from B.G. Micro
> I've recently purchased a LCD1002 - 20x4 LCD Panel from B.G.
> Micro, I am unable to determine how to hook it up in 4 bit mode, to my
Basic
> Stamp Rev. D. I am also unable to figure out how to program the stamp so I
> can write Characters to the LCD directly from the stamp. If anyone has
this
> LCD display, and knows how to run it, I would appriciate some help with
it.
> The LCD is run by a HD44780 controller by Hitachi.
know what, save yourself a lot of trouble and convert that lcd to serial.
got www.elabinc.com and get their ede 702
its $9 us and get a 4 mhz resonator with internal capacitors $.25
alls you have to do is make the circuit board, very easy, I have three of
these ede702 and they are great, they work. I just put one on my 4X20 lcd.
when you get it in the mail you will get a schematic for how its hooked up
with the lcd and there is a bs1 example program but I have a bs2 sample
program.... let me give it to you now.. its really really easy and only uses
***1*** IO.
LCD CON 7 ' defining the io to use on the stamp to transfer data to the ede
702
N9600 CON 84 ' this number i derived from the stamp manual, just depends how
you set pin 1-2 on the EDE702
i have them both set high for standard and 9600 baud
or you can set the low for inverted and 2400 baud
PAUSE 500
BEGIN:
Serout lcd, n9600,[noparse][[/noparse]$FE] '(direct lcd control through ede702)
'serout 7, n9600,[noparse][[/noparse]%11111101] (this sets the 1 digital pin on the mc to high
which you can use to turn on your lcd backlight)
serout lcd, n9600,[noparse][[/noparse]$01] ('Clears page and cursor goes to line 1 (home)
pause 50
serout lcd, n9600,[noparse][[/noparse]"TEST LINE 1"]
pause 50
serout lcd,n9600,[noparse][[/noparse]$FE]
serout lcd,n9600,[noparse][[/noparse]$C0] 'Takes cursor to beginning of line 2
pause 50
serout lcd, n9600,[noparse][[/noparse]"TEST LINE 2"]
pause 50
serout lcd,n9600,[noparse][[/noparse]$FE]
serout lcd,n9600,[noparse][[/noparse]$94] 'Takes cursor to beginning of line 3 *** Not listed
in documentation with ede 702, I just tinkered
'for a bit and came up with it
pause 50
serout lcd, n9600,[noparse][[/noparse]"TEST LINE 3"]
pause 50
serout lcd,n9600,[noparse][[/noparse]$FE]
serout lcd,n9600,[noparse][[/noparse]$D4] 'Takes cursor to beginning of line 4 *** not listed
in ede 702 documentation.
PAUSE 50
serout lcd, n9600,[noparse][[/noparse]"TEST LINE 4"]
PAUSE 50
Experiment with the delays, you could probably make em 10ms, this code works
I just did it now.... the ede702 is the way to go.... if you have any
questions at all just ask. I had problems when I first tried hooking it up,
but now I know this product very well.
-Tyson Stephen
tysonstephen@h...
On Wed, 7 Jun 2000 12:14:02 -0700, basicstamps@egroups.com wrote:
>
>
Original Message
> From: Chris V. <cvenem01@e...>
> To: <basicstamps@egroups.com>
> Sent: Tuesday, June 06, 2000 3:00 PM
> Subject: [noparse][[/noparse]basicstamps] LCD1002 - 20x4 LCD Panel from B.G. Micro
>
>
> > I've recently purchased a LCD1002 - 20x4 LCD Panel from B.G.
> > Micro, I am unable to determine how to hook it up in 4 bit mode, to my
> Basic
> > Stamp Rev. D. I am also unable to figure out how to program the stamp
so I
> > can write Characters to the LCD directly from the stamp. If anyone has
> this
> > LCD display, and knows how to run it, I would appriciate some help with
> it.
> > The LCD is run by a HD44780 controller by Hitachi.
>
> know what, save yourself a lot of trouble and convert that lcd to serial.
> got www.elabinc.com and get their ede 702
> its $9 us and get a 4 mhz resonator with internal capacitors $.25
>
> alls you have to do is make the circuit board, very easy, I have three of
> these ede702 and they are great, they work. I just put one on my 4X20
lcd.
>
> when you get it in the mail you will get a schematic for how its hooked
up
> with the lcd and there is a bs1 example program but I have a bs2 sample
> program.... let me give it to you now.. its really really easy and only
uses
> ***1*** IO.
>
> LCD CON 7 ' defining the io to use on the stamp to transfer data to the
ede
> 702
> N9600 CON 84 ' this number i derived from the stamp manual, just depends
how
> you set pin 1-2 on the EDE702
> i have them both set high for standard and 9600 baud
> or you can set the low for inverted and 2400 baud
>
> PAUSE 500
> BEGIN:
>
> Serout lcd, n9600,[noparse][[/noparse]$FE] '(direct lcd control through ede702)
> 'serout 7, n9600,[noparse][[/noparse]%11111101] (this sets the 1 digital pin on the mc to
high
> which you can use to turn on your lcd backlight)
> serout lcd, n9600,[noparse][[/noparse]$01] ('Clears page and cursor goes to line 1 (home)
> pause 50
> serout lcd, n9600,[noparse][[/noparse]"TEST LINE 1"]
> pause 50
>
> serout lcd,n9600,[noparse][[/noparse]$FE]
> serout lcd,n9600,[noparse][[/noparse]$C0] 'Takes cursor to beginning of line 2
> pause 50
> serout lcd, n9600,[noparse][[/noparse]"TEST LINE 2"]
> pause 50
>
> serout lcd,n9600,[noparse][[/noparse]$FE]
> serout lcd,n9600,[noparse][[/noparse]$94] 'Takes cursor to beginning of line 3 *** Not
listed
> in documentation with ede 702, I just tinkered
> 'for a bit and came up with it
> pause 50
>
> serout lcd, n9600,[noparse][[/noparse]"TEST LINE 3"]
> pause 50
>
> serout lcd,n9600,[noparse][[/noparse]$FE]
> serout lcd,n9600,[noparse][[/noparse]$D4] 'Takes cursor to beginning of line 4 *** not
listed
> in ede 702 documentation.
> PAUSE 50
> serout lcd, n9600,[noparse][[/noparse]"TEST LINE 4"]
> PAUSE 50
>
> Experiment with the delays, you could probably make em 10ms, this code
works
> I just did it now.... the ede702 is the way to go.... if you have any
> questions at all just ask. I had problems when I first tried hooking it
up,
> but now I know this product very well.
>
> -Tyson Stephen
> tysonstephen@h...
>
>
>
>
>
Chris V.
A.K.A. [noparse][[/noparse]ToJ]Picard, [noparse][[/noparse]ToJ]Locutus
"Is that a turtle on your head? or are you a Klingon?" - Unknown
_______________________________________________________
Get 100% FREE Internet Access powered by Excite
Visit http://freelane.excite.com/freeisp