drive a simple LCD
Archiver
Posts: 46,084
hello,
my name is Tony i'm new with bs2
I wan't drive a LCD 2x16 to show me the information from a thermometer with
witch code i can drive this?
thanks
[noparse][[/noparse]Non-text portions of this message have been removed]
my name is Tony i'm new with bs2
I wan't drive a LCD 2x16 to show me the information from a thermometer with
witch code i can drive this?
thanks
[noparse][[/noparse]Non-text portions of this message have been removed]
Comments
LCDCMD, LCDSOMETHING ELSE and another. I forget, without looking up the
manual.
On the other hand, you can "Bit Bash" a solution on a BS2.
Go to http://www.lennard.net.nz/ click on electronics, then Microcontroller
experiments, then you will see a link to how to drive a Hitachi based LCD on
a BS2 that doesn't have these special LCD commands.
My circuitry has too solutions. One using a 4094 Serial in Parallel out
shift register (to save on pins), the other ties all 8 data lines to the
stamp. I haven't used the 4 bit mode of the LCD for various reasons.
Ben, Wellington, New Zealand.
--
http://www.lennard.net.nz/
Ben Lennard, NCEE, Dip EE
Web Hosting and Electronics R&D
Club Coordinator, Victoria University of Wellington Hockey Club
Hm: +64 4 972 7567
Mb: +64 21 536 627
87 Spencer Street
Crofton Downs
Wellington
New Zealand
"To the optimist, the glass is half full. To the pessimist, the glass is
half empty. To the engineer, the glass is twice as big as it needs to be."
No animals were harmed in the transmission of this email, although the
Dog next door is living on borrowed time, let me tell you! Those of you
with an overwhelming fear of the unknown will be gratified to learn that
there is no hidden message revealed by reading this warning backwards.
>From: "†–
them with the Stamps. I have used many LCDs with Stamps and invariably use
the 4 bit method to save pin requirements and also wiring.
> the 4 bit method to save pin requirements and also wiring.
My reason's for not using the 4 bit method are:
a). Everything else on the "data bus" of ideas I'm working on (eg: USB
based datalogger), is 8 bits wide anyway. The other 8 ports on the Stamp
will be used for buttons and address decoding.
b). I could save 4 ports for all the 8 bit devices, by using a 4094 and
74LS165 SIPO/PISO (providing an 8 bit data bus), but again, you still end up
with everything on 8 bits.
So, why bother going to 4 bits with the LCD? It will only lead to extra
code/time wasted updating the display that can be better used elsewhere,
plus, you can also save a few bytes here and there of that 2k of EEPROM.
--
http://www.lennard.net.nz/
Ben Lennard, NCEE, Dip EE
Web Hosting and Electronics R&D
Club Coordinator, Victoria University of Wellington Hockey Club
Hm: +64 4 972 7567
Mb: +64 21 536 627
87 Spencer Street
Crofton Downs
Wellington
New Zealand
"To the optimist, the glass is half full. To the pessimist, the glass is
half empty. To the engineer, the glass is twice as big as it needs to be."
No animals were harmed in the transmission of this email, although the
Dog next door is living on borrowed time, let me tell you! Those of you
with an overwhelming fear of the unknown will be gratified to learn that
there is no hidden message revealed by reading this warning backwards.
>From: azeasi@a...
>To: basicstamps@yahoogroups.com
>Subject: Re: [noparse][[/noparse]basicstamps] drive a simple LCD
>Date: Mon, 29 Apr 2002 4:55 PM
>
> The STAMP manual has a great section on LCDs and some sample code for driving
> them with the Stamps. I have used many LCDs with Stamps and invariably use
> the 4 bit method to save pin requirements and also wiring.
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
> Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>