Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 19th November 2003, 02:09 PM   #1
Default Non-volitale Memory

I have a request for a product with non-volitale memory. The problem is every time they unplug their product they loose all of their preprogrammed setpoints. The PIC microcontroller is powered by a switching 5Volt power supply (on the board) then to a voltage regulator. If I were to put a +5 volt battery in parallel with the PIC microcontroller would that do the trick ? If so what battery would you suggest?




T
tml1220 is offline  
Old 19th November 2003, 05:20 PM   #2
Default

Using a battery is not a good idea. A PIC in normal execution mode consumes not less than 5mA which means it will drain most Ni-Cd, Ni-Mh batteries in few hours. To store your program variables use I2C EEPROMs like 24Cxx (say 24C02). It will take only two I/O pins from your PIC and coding is also simple.

Other idea is to use battery while sending your PIC in "Power Down" mode when it is idle. This saves a lot of power.
__________________
"There is no way to peace, peace is the way!"
kinjalgp is offline  
Old 19th November 2003, 10:26 PM   #3
Default Re: Non-volitale Memory

Quote:
Originally Posted by tml1220
I have a request for a product with non-volitale memory. The problem is every time they unplug their product they loose all of their preprogrammed setpoints. The PIC microcontroller is powered by a switching 5Volt power supply (on the board) then to a voltage regulator. If I were to put a +5 volt battery in parallel with the PIC microcontroller would that do the trick ? If so what battery would you suggest?
T
What kind of PIC are you using? . Some pic's have EEPROM built in.
Exo is offline  
Reply

Thread Tools
Display Modes




All times are GMT. The time now is 02:58 AM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker