The PCF8582C-2 is a 256×8 bit CMOS EEPROM. It contains less memory than some PIC Processors! As have a few of these chips, I use them as a benchmark for the Router and PIC I2C interfaces.
Reading or writing to these chips involves sending the word address (0-255) before reading or writing the data byte.
After the first data byte has been read, simply reading from the chip will produce the next byte.
In the mods to Blassic on the Router, I have created a function to set the I2C chip address – “poke 34,ADRESSS” where ADDRESS is 0-255 will set up for reading or writing an I2C device The PCF8582C is at $50 (80 decimal) if all of its address lines are held low.
After this, 1 byte may be read from the chip by “x=peek(256+WORD)” where WORD = 0 to 255.
A byte may be written by “poke 256+WORD,data”
After Reading 1 byte as above, further bytes may be read simply by “x=peek (35)” inside the EEPROM, the WORD address is incremented after each read.
+==u==+
A0 1 8 5v
A1 2 7 PTC / Not used
A2 3 6 SLC
0V 4 5 SDA
+=====+
PCF8582C-2 Pinout