This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi All,
Will greatly appreciate if someone can provide some references where I can find source code to read the Microchip 24AA02 EEPROM. I need code that works with the USI on the MSP430G2402. Already have I2C stuff working that uses the USCI on a MSP430F5438A. Specifically need code that uses the USI on the G2402 for the Microchip EEPROM 24AA02.
I have been debugging some code that I derived from the example project "msp430g2xx2_usi_06". I can see the ACKs from the 24AA02 for the address and read commands. But all data bytes that I read from the 24AA02 come back as 0xFF. Any suggestions as to why I only read back 0xFF will be appreciated.
Thanks in advance.
Brian,
Certain that there is valid data at the location I am trying to read. Reading addresses 0xFA though 0xFF (six bytes) which have the manufacturer code and a unique ID lasered into the EEPROM.
Have verified that the data getting written to the slave EEPROM is correct. For example, first I write a 0xA0 to tell the eeprom that I am going to perform a write operation. Then I write the address byte 0xFA to set the eeprom's address register. I receive ACKs for both bytes from the eeprom. Then I write the command 0xA1 to the eeprom to tell it that I want to read data. Again I receive the ACK bit from the eeprom. Finally I read in 6 bytes. But all six bytes come in as 0xFF.
I have tried two different boards thinking maybe the eeprom part on one was bad. Second board behaves exact same way.
Any thoughts/suggestions?
**Attention** This is a public forum