AnsweredAssumed Answered

Use the I2C in an M4 as slave

Question asked by Dan Dahl on Sep 7, 2018
Latest reply on Sep 25, 2018 by Felipe García

I am trying to get the I2C in an LPC4337 to work as a Slave receiver and having no luck. I have followed the recommended settings from the UM but still does not work. I have an LpcXpresso4337 and I am driving the I2C with an Aardvark I2C/SPI module from Total Phase. I am developing using MCUXpresso 10.2 using the LpcOpen 3.02 library. I have configured the pins in the SCU as I2C and turned on the input buffers. I have configured all 4 slave address registers to the same address and unused mask regs to zero. I am trying to run in interrupt mode. The interrupt is enabled in the NVIC. The CON has I2EN and AA set and all others cleared. When I send a packet I never get an interrupt and the status is stuck at F8. Is there any example code on how to do this?