This application note presents an example of communication using the ST7 I2C peripheral in slave mode. The ST7 microcontroller is used as a slave and can communicate with any master. This slave, through the I2C interface, receives data bytes from the master implementing error management and returns them. This application has been realized with a ST72264,7-bit, general call and 10-bit addressing mode.
The document presents a routine for managing the I2C slave mode on the ST7 microcontroller family. It details how the device communicates with any master through the I2C interface, implementing error management and data return mechanisms. The example specifically utilizes the ST72264 model in 7-bit general call and 10-bit addressing modes.
The goal is to present a useful example of communication using the I2C peripheral of the ST7 microcontroller as a slave.
Communication requires only two signals: SCL (Serial clock line) and SDA (Serial data line).
Both the Start and Stop conditions are sent by the master device.