AnsweredAssumed Answered

LPC8N04 I2C and SPI module

Question asked by Simon Zhang on Jun 13, 2018
Latest reply on Jun 22, 2018 by Audrey Jam


I developed my project with LPC8N04, and I got from NXP. There are only I2C and SPI API in this package.

Could anyone show some demo code(init , read/write) for using I2C and SPI in LPC8N04 ?

For example I don't know what is mean IOCON_FUNC_0(0,1,2....) in Chip_IOCON_SetPinConfig(LPC_IOCON, (IOCON_PIN_T)0, IOCON_FUNC_0 | IOCON_RMODE_INACT); and how to set SCL and SDA pin.