I2C communication problems

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

Moderators: Henry, Mods

Post Reply
ariclowe
LCD?
Posts: 2
Joined: Wed Mar 25, 2009 5:30 pm
Location: South Dakota

I2C communication problems

Post by ariclowe »

Hello,
Im new to the world of LCD's and I2C for that matter. Im attempting to communicate with an LCD model LK162-12 with a Freescale microcontroller via I2C and have had zero success. I moved the jumpers from 232 to I2C, set up the I2C comm. on my chip, set the baud rate to 93.75 kbps, and sent '254 /160 / 0' to turn off auto transmission of data in RS232. Following this Ive tried clearing the screen and writing various characters with no avail. Anyone have any suggestions? Any help would be greatly appreciated.

Thanks,

Aric
Raquel
Matrix Orbital
Matrix Orbital
Posts: 834
Joined: Thu Aug 19, 2004 3:37 pm
Location: MO Office

Post by Raquel »

Hi ariclowe,

Thank you for posting on the forum.

With I2C, the only hardware changes you need to do on the display side are the jumpers, as you have mentioned you have done (the third resistor from 232 can be discarded).

You will need to make sure that hardware connection on the master side is done properly as well (eg. pull up on SCL and SDA line).

On the firmware side, it is important to make sure that you are addressing the display properly. The default address for the display is 0x50. If you get the display's attention, it should ACK you at the 9th clock. Here's an assortment of I2C posts on the forum. Hopefully they help you out.

post 1 with scope capture
post 2 with scope capture
post 1 with code
post 2 with code

And as well, you might to check out our App Note I2C Section

I hope this helps.

Thanks and Best Regards,
Raquel Malinis
Design and Development
Matrix Orbital
NiTris
LCD?
Posts: 6
Joined: Tue Dec 30, 2008 5:20 pm

Post by NiTris »

If you are new to i2c, double check that your i2c pins are all going the right direction (set as outputs), that your freescale is set as the i2c master, and that you have your SCL and SDA lines idle at the right state.
Post Reply