Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

post power-out eeprom write on PIC 18F452

Status
Not open for further replies.

payrend

Newbie level 4
Joined
Feb 10, 2004
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
41
18f452 pic write

need to write a few eeprom bytes after power loss. What may be my solution alternatives? battery, supercap, ... ? and how to switch back and forth? anybody has practical experience doing it?

regards
 

battery monitor using 18f452

You can use low voltage detection. Take a look at 189 page of 18F452 datasheet. Write few words more about your application. Do you need to save some values in eeprom before pic turns off or you device should continue to work on batteries power supply?
 

write pic eeprom at power fail

hi
use Back up battery that will be connected to PIC IC when power failure condition is detected. The swiching to the battery should be made electronically by using a simple diode. The MC should always monitor the supply voltage as digital input. If it founds zeror while it is powerd ON, then it is working with the battery as the ct supply. In this cas eit shoould save what ever needed and to turn OFF, it could disconnect the battery path by using transistor.

Kindly F.B. if you have any questions

Thanks

Added after 1 minutes:

I forget
Kindly, if this worked with you don't forget tp press the "helped me" button to increase my points

Thanks
 

payrend said:
need to write a few eeprom bytes after power loss. What may be my solution alternatives? battery, supercap, ... ? and how to switch back and forth? anybody has practical experience doing it?

regards

Use a large cap on the output of your regulator. Then a voltage divider on the input side of your regulator, set so you have a high while power is coming in, and when it goes below what the regulator has to have on the input you should have a few writes before the output cap is gone. If not make it even larger..



Ah yes, haven't used this in a while. If you can, use a diode out of your regulator to the microcontroller supply. Most regulators will drain the cap some as they go down, the diode makes sure everything left in the cap goes to the uC..
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top