31-08-2017, 01:11 PM
This application note is an example of how to use the IIC module in Freescale MCUs. The IIC module can be used in master or slave mode, respectively. In this case, the master mode communicates with the serial EEPROM because the IIC bus is mainly used for communication between an MCU and an IIC peripheral device. The IIC bus can communicate directly between two MCUs, but the SPI bus is better for this task. This application note summarizes the common IIC bus states and definitions and provides an example of how to communicate with serial EEPROMs (24C16 and 24C512). You can easily use another IIC device instead of an EEPROM, but you must change the IIC address byte that characterizes the slave device.