Page 1 of 1

EEPROM write problems with dsPIC30F4013

Posted: Fri Mar 22, 2013 3:20 pm
by leoo
Hi,

After re-programming the chip with a test programme I set up to test Eeprom read/write, I can write an integer value, e.g. 1234, to Eeprom mem location 1 and read it back. No problem. If I then write a different integer value, e.g. 2345, to the same location (mem location 1), the value read back is 0. I have to re-programme to be able to write to location 1 again. This happens at every memory location I try.

Has this got something to do with having to delete the memory location contents first before writing to it? If so, how do I delete the memory contents?

Kind regards.
Leo

Re: EEPROM write problems with dsPIC30F4013

Posted: Fri Mar 22, 2013 3:28 pm
by Enamul
Has this got something to do with having to delete the memory location contents first before writing to it? If so, how do I delete the memory contents?
No you don't.

Can you please post a simple program to demonstrate the issue so that we can have a look what's going wrong?

Re: EEPROM write problems with dsPIC30F4013

Posted: Fri Mar 22, 2013 5:06 pm
by leoo
Hi,
The following example works as a simulation, but doesn't work in practice.

Kind regards.
Leo