Flash Magic Forum

Archive => Old Topics => Topic started by: James McKenna on May 07, 2003, 05:04:35 AM

Title: Anyone tried programming I2C for LPC932?
Post by: James McKenna on May 07, 2003, 05:04:35 AM
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.

Title: Re: Anyone tried programming I2C for LPC932?
Post by: Roland on May 07, 2003, 05:44:40 AM
Just to be sure...
you have applied pullups (4.7k) to SCL and SDA ?

Title: Re: Anyone tried programming I2C for LPC932?
Post by: Andy Ayre on May 07, 2003, 07:57:40 AM
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.

Title: Re: Anyone tried programming I2C for LPC932?
Post by: James on May 08, 2003, 12:06:36 AM
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!