seyyah
Advanced Member level 2
I have a value ( 4 value actually - 4x8=32bits) that i should protect in every case, so i keep it in eprom. That value changes frequently, so i cannot write it to the eprom at every change occurs. I decided to write it when a power failure occurs. So i detect the failure and write it at that time once. For this purpose i supply a big enough capacitor for pics supply. As far as i know, writing to one eprom cell requires 4 ms and 4 of them take 16 ms. As you can see from the figure that there's plenty of time to write it. Sensing the power failure takes ~100-200 usecs. But it can only write one eprom value at most. What may be the problem and how can i solve it?