Richard, I have reviewed some of the code trying to make sure mine 'matches' as far as registers go. But since most of the sample code says 'From device to device, the I2C communication protocol may vary', unless you are communicating with the same device as the sample code, it probably won't work. Therefore, I was probing around with my scope, since I don't currently have a logic analyzer. Planning to get one. $$$$. I just noticed that my SCL line was always low once the STA command was issued. Trying to figure that out. I thought by issuing a STA command and waiting for ACK over and over I would see the SCL line move. Sutton --- In lpc2000@yahoogroups.com, "rtstofer" <rstofer@...> wrote: > > --- In lpc2000@yahoogroups.com, "Sutton Mehaffey" <sutton@> wrote: > > > > I've still having issues with getting I2C to work. I'm not even > > seeing SCL on my scope. I'm using a Embedded Artists prototype board > > with the 2148 board. If I have a hard loop with I2C0CONSET = 0x20 and > > a wait for the SI flag, shouldn't I see SCL on the scope? Or can you > > not issue a START over and over? Assuming, of course, that my initial > > setup of the I2C is correct. Thanks. > > > > Sutton > > > > philips_apps has posted demo code for two different development > platforms but the code itself should work anywhere. See the Files > section here and scan down looking for 'philips_apps' or the file > LPC214x_LPC213x Sample code for Keil.zip - a little more than half way > down. > > In my view, and it isn't universally shared, the chances of getting > I2C to work without a logic analyzer are quite slim. It would be > better to start with code that is known to work even if compiler > specific code had to be changed. > > Richard >
Message
Re: I2C on LPC2148
2006-05-03 by Sutton Mehaffey
Attachments
- No local attachments were found for this message.