24LCxx Serial EEPROM
A0 |
1 |
-24LC-
-XX- |
8 |
VCC |
A1 |
2 |
7 |
!WC |
A2 |
3 |
6 |
SCL |
GND |
4 |
5 |
SDA |
|
Pin
Names and functions
A0 -
A2 |
Address Inputs |
!WC |
Write-Control |
SDA, SCL |
I2C bus |
Vcc |
Power (2V5 to 5V5 DC) |
GND |
Ground |
|
Address = |
1 |
0 |
1 |
0 |
a2 |
a1 |
a0 |
r/!w |
When I first started using this type of chip I found they
insist you NACK the last byte read. If not, the next read
sequence would not return data from the expected address. The
Stop and Start conditions do not reset the internal states.
Addressing is slightly tricky, in that devices with more than
256 bytes act like several 256-byte devices in a single package.
The 24LC02 responds to all addresses starting with 1010, ignoring
pins 1 to 3. Some EEPROMs had their address internally grounded,
ignoring pins 1 to 3 anyway.