I've discovered a problem when using a PIC18F67J60 and 24FC512 EEPROM.
I've had this project in the field for several months now, and am just recently getting problems when I try to read a byte from the EEPROM. The code looked like this:
I2CREAD SDA,SCL,RD,(BCONFIG+KEY),[VTYPE]
PAUSE 5
The EEPROM holds "1" in this location, but has recently started to return "0".
If I do the addition first, the problem goes away, and the EEPROM returns "1" reliably!
MEM=BCONFIG+KEY
I2CREAD SDA,SCL,RD,MEM,[VTYPE]
PAUSE 5
I have just switched from ver 2.50 to 2.60, and some of these units have been recompiled using the new compiler. I have no other explaination for why this might be happening. Has anyone else determined that the math had best be done prior to the actual read? (Changing the pause time has no effect by the way.)
Just curious.
Bookmarks