Problem in EEPROM Sequential read

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problem in EEPROM Sequential read

3,049 Views
KeshavaGN
Contributor V

Hi all.

I'm working with EEPROM (through I2C) driver.

I can write and read a single byte from EEPROM.

However, if i try "Sequential Read" (Multibyte Read),

I face problem in reading:

I can read values from Address: 0x000 to 0x0FF correctly.

But all values beyond 0x0FF will be wrong (shows all values as 0xFF).

Even if i read from , say ,  0x0FA to 0x105,

values from 0x0FA to 0x0FF will be correct, but values from 0x100 to 0x105 will be wrong. (ie: 0xFF).

It is NOT the problem with EEPROM WRITE. Because if i use "Selective Read" (Single Byte Read), I'm getting correct read data.

Lines from EEPROM datasheet:

Sequential Read

If, after receiving data sent by the Slave, the Master
responds with ACK, then the Slave will continue
transmitting until the Master responds with NoACK
followed by STOP. During Sequential Read the
internal byte address is automatically incremented up to the
end of memory, where it then wraps around to the beginning
of memory.

(My EEPROM Memory is from 0x000 to 0x7FF)

What may be the problem here?

Thanks.

Regards,

Keshava G N

Labels (2)
0 Kudos
Reply
3 Replies

1,619 Views
RodBorras
NXP Employee
NXP Employee

Hi,

Would you mind running the following test? Please do a sequential read of 2304 bytes (0x800 + 0x100), starting at EEPROM address 0x000.

The sequential read should wrap around, so the last 256 bytes should be identical to the first 256.

If that does not work, then we can assume something is wrong with the I2C interface.

Thanks,

Rod.

0 Kudos
Reply

1,619 Views
KeshavaGN
Contributor V

Hi RodBorras ,

Thank you for quick response.

I will do the tests you suggested and will let you know the results.

Thanks.

With regards,

Keshava G N

1,620 Views
pradyumnakammar
Contributor III

im new to KL05 writing a code to communicte with EEPROM via IIC.

I'm using KEIL to write the code

guidance needed ...

thank you

0 Kudos
Reply