The I²C bus is the most popular of the three current serial EEPROM protocols because of its simplicity, high signal density, and unique write protect (WP) pin characteristics. This illustration shows the typical pin-out of an I²C device with pins 1 through 3 as address pins A0, A1, and A2. Pin 4 is designated as ground, Vcc, while pin 5 is the data line, SDA. The clock signal SCL is at pin 6, pin 7 is WP, and pin 8 is voltage, VSS. An advantage of the I²C protocol is that it only requires two signal lines for clock and data as opposed to other protocols that require four signal lines between the EEPROM and the master device.

In this post we are using the ST Microelectronics I2C EEPROM 24C16 [datasheet:http://www.st.com/content/ccc/resource/technical/document/datasheet/a2/2d/80/cb/91/59/43/9a/DM00061111.pdf/files/DM00061111.pdf/jcr:content/translations/en.DM00061111.pdf] along with Freescale SKEAZ128LH4. Below is a simple library to read and write a byte.

 

 

 

Author

Write A Comment