No text displayed using I2C.

LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT Series

Moderators: Henry, Mods

Post Reply
brillpappin
LCD?
Posts: 2
Joined: Tue Sep 10, 2002 6:00 pm
Location: Toronto
Contact:

Post by brillpappin »

I am unable to send text to the LCD0821.

The manual is very sparse as I2C data/info goes... however I have been able to get everything working, except the display of text.

All commands have their registers, but I can't see any mention of what register I'm supposed to be writing to in order to send text to the display.

Sending the text right after the address doesn't seem to work.

The I2C drivers are my own, second generation, availible on two different MCUs so I know the I2C is implemented properly.

Any comments?
Henry
OMNIPRESENT
OMNIPRESENT
Posts: 3014
Joined: Tue Aug 14, 2001 6:00 pm
Contact:

Post by Henry »

however I have been able to get everything working, except the display of text
In what sense? can you turn the backlight on and off?

Everything is in the manual here...

2.2.4 I2C Communications

I
Henry J.
President
Matrix Orbital
Henry
OMNIPRESENT
OMNIPRESENT
Posts: 3014
Joined: Tue Aug 14, 2001 6:00 pm
Contact:

Post by Henry »

{moved the topic to the developers section :smile: }
Henry J.
President
Matrix Orbital
brillpappin
LCD?
Posts: 2
Joined: Tue Sep 10, 2002 6:00 pm
Location: Toronto
Contact:

Post by brillpappin »

I already replied, but it hasn't sown up... so I must have sent it after you moved it...

Anyway, yes I can turn the backligh on and off... I can clear and do a few other things...

What I can't do is write text to the LCD...
and what I need to know is what register the text should go to, if I have to specify it at all... not 254 I assume or it will be taken for a command. Does it work like EPROM does where you send several bytes and it advances (the documentation that is avlible tends to suggest this is what will happen).

The documentation is *not* properly technical for I2C, and I had to use my intuition to code the I2C.
Sending me to a general I2C FAQ does not help at all since the issues are with the device, not the protocol.
Henry
OMNIPRESENT
OMNIPRESENT
Posts: 3014
Joined: Tue Aug 14, 2001 6:00 pm
Contact:

Post by Henry »

There is nothing different between sending commands to the LCD and text, except for the command prefix. If you send a string out of text, it will display that string. All I can think of is that your contrast is set too low. Adjust the contrast to 125 or so. Do you see a blinking curson on power up?
Henry J.
President
Matrix Orbital
Post Reply