Dear sirs I have one counter variable updating on every 1 second.I have to store that variable in perment memory location.so that I will use that counter after power OFF and ON hardware.but I want value of that variable is last value befour Power OFF the H/W.I want also start counting from last value (not from zero).
Plz suggest me which memory area is sutable to store such variale which is updating at every 1 second.Because it may affect read write cycle life of flash memories. Here are some memories that I know 1)On chip flash LPC2378 2)On chip RTC battary backup ram of LPC2378 3)External flash 4)External EEPROM.
Thanks&Regards Parineeta India
You must always supply voltage to the Vbat input if you intend to use the RTC or the 2kB of RAM - even if you do not require them to retain data when the chip is unpowered.
"So I think that I am not consuming lot of battary power.Is am right ?"
Have you looked at the documentation?
They claim that in active mode (not really defined) the current is 20uA if the DC-DC is on and 28uA if the DC-DC is off.
If "active mode" happens to be that the core is powered, then there are no figure at all to specify how much current the chip requires on Vbat when the core isn't powered.
But as you can see, the current specified is quite high. If we assume that it draws 28uA when the core isn't powered too, then you would need 20mAh/month or 240mAh/year. This makes it problematic with a small button cell, unless you know that the device spends most time powered. Remember that you must also take into account the self-discharge of the battery. And if it does spend most time powered, you must still make sure that it takes the Vbat power from the main supply during that time, and reserves the battery for the time when there is a power loss or your unit is disconnected and shelved.
Now you need to go back to NXP and ask them what Ibatt-act means, and what value there is for a corresponding Ibatt-nonact... It isn't too fun to implement a critical function without all information documented.