CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

What are the chances of a data corruption ??

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
arunb



Joined: 08 Sep 2003
Posts: 492
Location: India

View user's profile Send private message Send e-mail

What are the chances of a data corruption ??
PostPosted: Wed Nov 22, 2006 7:51 am     Reply with quote

Hi,

If the +5V line is gradually reduced to zero , with the PIC actively writing to the internal EEPROM, will the data being written be corrupted ??

I have used POR, Brown out detect and Power up timer...
thanks
arunb
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Wed Nov 22, 2006 8:32 am     Reply with quote

Obvious reply is YES

Your question is very short and we doesn´t know details regarding your hardware, your code, etc:

- Whats the reason for the described situation ?
- Is this an unexpected situation ?
- Do you have the ability to detect power fail ?
- How many bytes are you trying to store in EEPROM while power is falling down ?
- Did you add some extra capacitance in the power supply to slow down the fall. ?
- Wich microcontroller are you using?

Humberto
Ttelmah
Guest







PostPosted: Wed Nov 22, 2006 8:50 am     Reply with quote

Humberto has really covered it.
The 'key' though is that writes take a known time. There is a specified minimum operating voltage for the processor to operate. You talk about 'using brownout detect'. Is this _LVD_, or brownout reset?. The former will allow you to detect a supply voltage drop, and if you know the consumption of the circuit, and the size of the supply capacitor, you can then know how long you can keep operating. The latter resets the chip, and will itself interfere with a write...

Best Wishes
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group