I think your problem is with the address for READ and WRITE.
The 24LC64 EEPROM needs a WORD size address - even if the actual address is 0.
Change your program to
DEFINE B0 WORD ; Must not be a BYTE size or CONSTANT
B0 = 0
I2CWRITE, DataPin,ClockPin,$A0,B0,[Value]
and so on....
Good luck. I stuffed around with EEPROM for ages and eventualy found that all my errors were due to using BYTES when the chips expected a WORD. The spec sheet for the chip will tell you what it expects. The example in the PBP book is for a smaller EEPROM that only needs a BYTE address.
Regards Bill Legge




Bookmarks