Erase all data in EEPROM

3 posts / 0 new
Last post
Michael
megatron's picture
Offline
Joined: 28/02/2012
Posts: 3
Points: 165
Erase all data in EEPROM

How do I erase all data in EEPROM in a easy way?

 

I'am making a RFID-reader and I can save/erase ID if I push down buttons, but I would like to erase all ID pushing down another button. I'am saving the number of ID in place 0 in EEPROM, and i was thinking about just changing the number of ID to zero but in that case I have to change all other functions. I think it's better to just erase all. But how? 

sathyamoorthy
sathyamoorthy's picture
Offline
Joined: 15/12/2010
Posts: 15
Points: 65

you have to pass the UV rays to that

mohan
mohansaini's picture
Offline
Joined: 19/08/2010
Posts: 10
Points: 1030

I think by default all bytes of an EEPROM has FF instead of 0. using UV light is not feasible isn'tit so yo can use your simple write function

and can pass data 0XFF and length how much bytes you want to erase/write by FF.

Login or register to post comments
You are here