ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

microchip 24LC16 EEPROM Read/Write

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 .

 

0 Kudos
Message 1 of 2
(4,299 Views)

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

0 Kudos
Message 2 of 2
(3,333 Views)