Page 1 of 2
Driving an LCD
Posted: Wed Oct 24, 2012 3:11 pm
by YahooArchive
In the LCD sample program the I2C interface of LCD2041 was used. You
will finde the data sheet at
http://www.matrixorbital.ca/manuals/LCD ... 041_rev_20
.pdf. I posted an image of the back side of the LCD2041into the photo
folder showing the interface connectors.
Claus
--- In
ARMexpress@yahoogroups.com, "analogrobert" <bob@...> wrote:
>
> There's a great piece of code for driving an lcd display in the files
> section but I can't find a wiring diagram to know which pins to feed
> on the lcd. Anybody have any ideas? Thanks.
>
> Bob
>
Re: Driving an LCD
Posted: Tue Dec 04, 2012 4:07 am
by YahooArchive
> I'M TRYING TO USE A SILCON/CRAFT LCD WITH THE ARMMITE USING TXD1. DOES
> ANYONE HAVE ANY SAMPLE CODE THEY COULD SEND TO HELP GET ME STARTED WITH
> THIS.
I took a look at the SC1602 documents. On that one you should connect
to the TTL I/O
DIM Message(20) as string
BAUD1(9600) ' default for the device
TXD1 ($D) ' clear screen
Message = "Hi there"
i=0
while Message(i)
TXD1(Message(i))
i=i+1
loop
This should get you started, their software examples should also help.
Re: Driving an LCD
Posted: Tue Dec 04, 2012 4:08 am
by YahooArchive
This is one sweet serial lcd : rs232 ot TTL input, nonvolatile storage
of custom user screens, analog input, digital I/O, bar graphs. Is
there a USA source or something similar available in USA ?
> > I'M TRYING TO USE A SILCON/CRAFT LCD WITH THE ARMMITE USING TXD1.
Re: Driving an LCD
Posted: Tue Dec 04, 2012 4:10 am
by YahooArchive
no i couldn't find a us supplier but it only took about a week and 1/2
for it to come in. i'm still having trouble with it but i,m new to this
so i guess it's to be expected. so if you have any idea's any help
would be appreciated.
--- In
ARMexpress@yahoogroups.com, "umicha2" <umicha2@...> wrote:
>
> This is one sweet serial lcd : rs232 ot TTL input, nonvolatile
storage
> of custom user screens, analog input, digital I/O, bar graphs. Is
> there a USA source or something similar available in USA ?
>
> > > I'M TRYING TO USE A SILCON/CRAFT LCD WITH THE ARMMITE USING TXD1.
>
Re: Driving an LCD
Posted: Tue Dec 04, 2012 4:10 am
by YahooArchive
This may be of peripheral interest. I have been using the 4 line x 20 White on
Blue display module from a German vendor (
www.lcd-module.de), the EADIP204B-4NLW
that available directly from Mouser (PN# 790-EADIP204B4NLW) at ~ $32. It looks
very similar to the 4 x 20 module from Silicon/Craft (S/C). It has the extensive
built in 8 bit extended ASCII character set and you can program some of your own
(I have not done the latter) There is a green on black module for only $22.
There is no mounting kit. If you do not design a PCB or buy theirs, you can
solder directly to the pins. Unlike the S/C it does not have RS232. However I
consider that an advantage because you do not need to tie up the UART on the
ARMite. You talk to it via the KS0073 LCD controller chip directly, either 8 bit
parallel, or synchronous serial. I used the latter to avoid bit juggling to form
a parallel load. It works great from the ARMite once you have programmed a
library for the somewhat arcane chip interface. I'd be happy to post the library
to the board if anyone else wants to use it. Dick
Re: Driving an LCD
Posted: Tue Dec 04, 2012 4:10 am
by YahooArchive
If you don't mind post the libray, it may help me with my LCD. thanks
Re: Driving an LCD
Posted: Tue Dec 04, 2012 4:11 am
by YahooArchive
While it may help, and I would hope Dick would post that.
If your problems are basic, like nothing showing up on the display,
its better to go back to basics.
Do you have RXD, and TXD hooked up to the TTL IOs?
Do you maybe have them swapped (RXD going to RXD)?
Do you have a GND connection?
Then are there any simple commands to clear the display, or turn on
backlight that you can try?
Next would be a command that read/writes a register to the display if
one exists....
You might backoff and try some of their VB code using the RS-232
connections.
Re: Driving an LCD
Posted: Tue Dec 04, 2012 4:11 am
by YahooArchive
I can control the back light, so I know it's talking to it. I tried
the sample you sent and in the basic tools window i kept getting
undefined routine errors.
Re: Driving an LCD
Posted: Tue Dec 04, 2012 4:11 am
by YahooArchive
I may have used a Sparkfun serial LCD with the ARMmite bit bang serial
routines to use a non-UART bit as the serial port line thereby keeping
the UART available.
Steve
Re: Driving an LCD
Posted: Tue Dec 04, 2012 4:12 am
by YahooArchive
That is true, and in fact I have done that successfully myself for open loop
commanding. The problem with the bit banged routines comes when trying to
receive because you tie up the processor.in a wait loop. Driving the EA display
I don't try to receive the serial handshakes coming back from the KS0073
controller either. The data sheet defines the time required to execute each
instruction. I just put in short wait loops of the few tens of uS to make sure I
don't overrun the display execution.
Where are the instructions for posting files to the board?
Dick