Anyone tried programming I2C for LPC932?

Started by James McKenna, May 07, 2003, 05:04:35 AM

Previous topic - Next topic

James McKenna

Is there any application notes around regarding I2C programming for LPC932?  I've read the user manual, and configured the I2C registers properly, but I don't seem to get any clock signal on SCL.  I've tried using all three clock versions, internal RC, external crystal oscillator and even via timer1 overflow(as written in user manual), but it just will not work.


Roland

Just to be sure...
you have applied pullups (4.7k) to SCL and SDA ?


Andy Ayre

Go to Code Architect at:

  www.codearchitect.org/philips

and generate the I2C code. Then compare it to what you have to see if there are any differences.

Embedded Systems Academy, Inc.
support at esacademy dot com

James

Thanks Roland and Andrew for your valuable suggestions.  Regarding code architect, its ironic that I'm using assembly language instead of C.  Nevertheless,  the I2C segment was of great help - I just have to convert the necessary.  I've tested just a single byte transfer, and it seemed to work for now.  Thanks again!