??? 03/03/04 11:56 Read: times |
#65867 - LPC932 with simple I2C peripherals |
Hello,
I want to connect simple peripherals (like memory and RTC) to the LPC932 via I2C bus. The LPC932 is always master, and polling is sufficient (I don't want SI to generate interrupts in this application). The application notes of the LPC932 (and other Philips controllers with a similar I2C controller) contain only interrupt driven examples and C code. I am looking for "simplest-as-possible" assembly code just for "master transmit" and "master receive" communications with only basic/crude error handling capabilities (code space is critical). My first tries with master transmit seemingly work fine, however there are some problems with the master receive mode - the incoming data at I2DAT seems to be one byte late (or I missed one SI event - the documentation is somewhat unclear in this concern...). Can anyone help? TIA, Tilmann |