Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/30/01 17:39
Read: times


 
#16162 - T89c51Rd2 eeprom reads 0 until written
My T89C51RD2 reads "00" for every eeprom
address until I write any byte anywhere in the eeprom.

If I execute the write routine with the "52 -A2" command commented out, it still reads eveything as "00", so I do not think I am using the SFR's wrong. Un-commenting the "52->A2" command allows the write to occur, and from then on I can read from the eeprom normally, until a reset or power fail.

Has anyone seen this problem before ?

To answer the obvious:
I set EECON to 0x02 before reading, every time.
AUXR is untouched.
I verified the listing, and it is writing/reading in a way consistent with the datasheet. (dptr access to XDATA, etc.)

List of 2 messages in thread
TopicAuthorDate
T89c51Rd2 eeprom reads 0 until written            01/01/70 00:00      
RE: T89c51Rd2 eeprom reads 0 until written            01/01/70 00:00      

Back to Subject List