http://www.avrfreaks.net/index.php?n...57055&start=20
just a quick google , may be worth a look
http://www.avrfreaks.net/index.php?n...57055&start=20
just a quick google , may be worth a look
Use a FET to control the power supply, the FET will be controlled by the PIC.
When you give the PIC the command to kill the FET jump to a routine to write whatever is needed to the EEPROM, then kill the FET.
This thread has a couple schematics and discussion that should help.
http://www.picbasic.co.uk/forum/showthread.php?t=19293
Dave
Always wear safety glasses while programming.
If you have a spare ADC pin available, than you can place a diode (1N4148 for example) and an electrolitic capacitor on the Vdd line to your pic. With the ADC you will monitor the power supply and when you detect a low ( you will establish the safe value) you will jump to the saving routine and write to eeprom all the necessary value the pic will need at start.
An example of what I mean can be seen in the attached hand drawing.
Cheers
Al.
All progress began with an idea
Bookmarks