Author Topic: Anyone tried programming I2C for LPC932?  (Read 4421 times)

James McKenna

  • Guest
Anyone tried programming I2C for LPC932?
« 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.


Roland

  • Guest
Re: Anyone tried programming I2C for LPC932?
« Reply #1 on: May 07, 2003, 05:44:40 am »
Just to be sure...
you have applied pullups (4.7k) to SCL and SDA ?


Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2172
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Anyone tried programming I2C for LPC932?
« Reply #2 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.

Embedded Systems Academy, Inc.
support at esacademy dot com

James

  • Guest
Re: Anyone tried programming I2C for LPC932?
« Reply #3 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!