08-08-2012 04:56 AM
hi... i am working on a project in which i have to write & Read EEPROM "Microchip 24LC16" at different locations. I am using NI 8451 card for read/write. I connect SDA, SCL & GND of EEPROM & NI-Card to each other. I tried two different i2c example code.
1. General I2C Read/Write vi..
2. Microchip 24lc512 Read/write script .vi.
i am able to perform read & write through both example but facing different problem with each code.
Problem in first code
1. when i write 5 bytes or more than 3 bytes at 03CD location it writes & read it but as i Switch OFF the EEPROM & then Switch ON & try to read at location 03CD i find only 3 bytes(from 03CD to 03CF) & other bytes become zero.
2. I try to write 16 bytes on different location i.e. 03D0, 03E0, 03F0. but i lost all the data when i read EEPROM after doing switch OFF & ON.
Problem in second code
1. when i write some bytes at a particular location ( say 03CD) & then perform read at any other location, i get same data which i wrote at 03CD.
2. after writing at location 03CD, when i try to write at any other location it overwrite the last written bytes.
Is there any specific code available for this particular EEPROM ? if yes then please send me the code.
Please give me any solution, i have tried all my efforts .
10-20-2017 05:22 PM
Hi,
I hope this finds you well. I am having similar issues with my EEPROM device. When I write to memory location A, and read from a different memory location B, I get the value that was written to A. Did you manage to solve your problem ? If so, do you could you explain what the issue was. Your assistance will be highly appreciated.
Warm regards
Judas Masela