Simplified access to Microchip 24LCxx Serial EEPROM devices (I2C)
This library provides a simplified I2C access to a Microchip 24LCxx Serial EEPROM device. This sample illustrates how to use this library and the schema below shows the minimal implementation to run this sample. The I2C device address is 0xA0 + 0x01, where:
- 0xA0 is the Microphip device address;
- 0x01 is the configurable address set by <A0:A2> (In the schema below, A0=1 and A2=A3=0).
Note that you have toprovide the configurable address to the C24LCxx_I2C class constructor. The Microphip device address will be added automatically.
Note that if the LPC1768 is powered in 3.3V and the Microchip 24LCxx Serial EEPROM device could be powered at 3.3V or 5V.
In this case, you shall use a bi-directional level shifter for I2C-bus. Please refer to AN97055 (http://ics.nxp.com/support/documents/interface/pdf/an97055.pdf)
Microchip 24LCxx Serial EEPROM device reference:
- 24LC256: DS21203K
- 24LC64 : DS21189D
For I2C details, please visit http://www.datelec.fr/fiches/I2C.htm
4 comments on Simplified access to Microchip 24LCxx Serial EEPROM devices (I2C):
Please login to post comments.