Hi, the LPC2148 sample software library in the files section has an example for I2C as well and it does not just toggle the port pins. It is written for the ARM Real-View compiler but it should not be too difficult to use the C-file and the H-file from the example. Bob --- In lpc2000@yahoogroups.com, "Sutton Mehaffey" <sutton@...> wrote: > > I'm still trying to interface a Serial RAM chip with a LPC2148 and am > making some progress. I received some sample 'C' code from the RAM > chip manufacturer, but wanted you experts to clarify some points. > > In the 'C' code, it appears that all the manipulation is done to the > SDA and SCL lines directly. I'm assuming that all that is done > internal to the 2148 when you write START, STOP, and ACK commands > directly to the I2C registers and I don't have to mess with any of > that stuff. Right? What I am getting at is that this code probably > won't help me any except for the procedural aspect of how to address > the chip, which appears to be correct in my case. > > Another ? I have is that in the user manual, it always says 'When your > data has been sent and the acknowledgement has been received, then > ....', is the ACK the SI bit? Or do I have do anything else besides > clear the SI bit to 'get the acknowledgement'? Not clear on that... > > Sutton > > Sutton >
Message
Re: I2C ?
2006-03-09 by lpc2100_fan
Attachments
- No local attachments were found for this message.