hi..can somebody help me with this 2x16 lcd?
i bought it from bizchip.com. already read the datasheet,but still can't get it works.I try to connect the lcd with PIC16f877A (port b).At least there should be a sign that the LCD is working rite?Instead, once all the circuitry is powered up,the lcd still does not ON. Anybody??
I think that if the connections are correct the problem is the contrast . Connect a variable resistor ( 5 or 10 k) on pin 2 ( or 3 check the datasheet)
you should take care of the data and command where for datayou should make EN go from hi to low and RS=1 after that EN=1
for command you should make EN go from hi to low and RS=0 after that EN=1
A typical character LCD simply powered without any initialization will show a row of dark squares across the top. If you don't see the dark row, adjust the contrast pot until you do. If that doesn't work then you have a bad LCD.
hi
there is a row of dark squares across the top once the LCD is powered up.but when I run it with the PIC,it still show the same display.Its just a simple programming using PIC C Compiler (by CCS) to display a word Testing..
Added after 8 minutes:
eaf_knight said:
you should take care of the data and command where for datayou should make EN go from hi to low and RS=1 after that EN=1
for command you should make EN go from hi to low and RS=0 after that EN=1
You must use a built in library of the compiler to drive the LCD, or write your own. Character LCD's can be driven in 4-bit or 8-bit mode, so your hardware connection must match the type of code routines you are using.
Before you write anything the LCD must be initialized, which is a special routine to start it. This initialization is dependent upon the type of connections you are using, whether 4-bit or 8-bit.
There was an excellent 2-part EPE article on how this is done in the following PDF's:
you have to connect a potentiometer to adjust the intensity, the pot value should be in the datasheet, if this is not the case then get sure you are using the right header for the right LCD in the compiler.