PDA

View Full Version : Adressing a 16 x 1 Alphanumeric LCD Display



crhomberg
- 7th June 2007, 23:40
I have connected a Wayton 1 x 16 character display using the 4 bit connection as in the manual and set the defines to 1 line.
I can only get characters to the 8th character.
The datasheet states that the 9th character has the address 40 but if I use that as my address in LCDOUT $FE,$40 the screen is just blank. I tried increasing the value one by one but seem to be getting no joy.
Do I need to connect it with 8 bits?

Darrel Taylor
- 8th June 2007, 00:38
Hi Chris,

$40 is the address for the second 8 characters.

But the address has to be sent with the "Set DDRAM" command ($80).

$80 + $40 = $C0

hth,

Added: Don't forget to set the LCD to 2 lines. (even though it's a 1x16)
DEFINE LCD_LINES 2 'Number lines on LCD

crhomberg
- 8th June 2007, 15:06
Thanks Darrel,

You seem to always be my savior, all is working fine now!

Best Regards

Chris


Hi Chris,

$40 is the address for the second 8 characters.

But the address has to be sent with the "Set DDRAM" command ($80).

$80 + $40 = $C0

hth,

Added: Don't forget to set the LCD to 2 lines. (even though it's a 1x16)
DEFINE LCD_LINES 2 'Number lines on LCD