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

OT: SuperCap for SD memory 'loss of power' write completion

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



Joined: 08 Oct 2003
Posts: 26

View user's profile Send private message

OT: SuperCap for SD memory 'loss of power' write completion
PostPosted: Thu Jan 06, 2005 1:15 am     Reply with quote

I'm contemplating using a double layer capacitor with a power hi-side switch (like the TI TPS2081) which will detect inadvertent loss of the main supply voltage and subsequently switch to the supercap.

The super cap will then power the uC and SD card until the uC finishes performing a possible write to the SD card. At this point, the uC goes to sleep and any SD card flashing runs to completion.

I would appreciate any input from anyone has any experience -or- references to peruse concerning this topology?
libor



Joined: 14 Dec 2004
Posts: 288
Location: Hungary

View user's profile Send private message

loss of power eeprom write
PostPosted: Thu Jan 06, 2005 4:16 am     Reply with quote

I use the normal smoothing electrolithyc capacitor for a similar problem. My device has a 220VAV power supply: it has a 220V to 9VAC transformer, a greatz, a 4700uF smoothing cap, and a 5V voltage reg.
A voltage divider direct after the transformer on the 9VAC (before the greatz) connected to the on-board comparator of the PIC serves as a zero-cross detector every 1/50 sec (i made a kind of a software counter watchdog that gets reset at every AC zerocrossing in an interrupt (as a by-effect this pulse also synchronizes my software real-time clock))
If a zerocross was missing, my program knows that the mains power has gone and I have only the power in relative large capacitor that has to decay from 9V to 6-7 VAC before the voltage regulator gives up yielding 5V. With all outside large consumers switched of at the beginning of this 'emergency' save, I have ca. 1 sec time of normal operation of PIC left. I use this time to save some operating parameters to eeprom before the power is completely lost.
Your SD card consumes much more power, and you need perhaps more than 1 sec, so if you have to use a much larger cap, it is less expensive to implement at the lower (regulated) voltage at 5V or 3V.
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