Content originally posted in LPCWare by rocketdawg on Thu Dec 18 12:57:42 MST 2014
First, you posted a LPC1800 question in an LPC800 forum.
Yes you can monitor the voltage by wiring the battery to an ADC pin.
This will probably reduce the life of the battery due to leakage in the ADC path.
my data sheet shows an 1.2M input impedance.
You will have to verify that with the electrical specs in the user manual or data sheet.
if an ADC pin causes too much drain, then you might have to buffer it with some very high impedance switch.
But you should only be running on the RTC battery when the device loses power.
normal one has a diode in series with the Battery so that if VDD is present, then the RTC is powered off VDD.
if you lose power, then RTC runs off Battery.
So life running on battery only @ 2 uA battery current draw, a BR2330 should last ~ 10 years, a BR1632 maybe 7 years.