3.6. PIC16 C I2C Serial Bus

• I2C simulation test system

• I2C control, address, and data bytes

The inter-integrated circuit (I2C) synchronous serial bus provides a means of exchanging data between peripheral devices and microcontrollers using software addressing. This means that only two signals are required, data and clock (see Section 1.4 for details).

The test system shown in Figure 3.9 has only one I2C peripheral device, the 24AA256 serial flash memory chip, to keep it as simple as possible. Serial memory is a common feature of applications that require additional data storage, such as a data logger. It allows the internal EEPROM of the PIC to be expanded using only two I/O pins. The downside is that the memory access is rather slow, with ...

Get Programming 8-bit PIC Microcontrollers in C now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.