PIC running while battery declines
Hello KevJ,
I am not saying Microchip have a problem but they are not specifying anything below 2.0 volts. I will now have to experiment with my loggers on the bench with a resistor across the battery to hasten its decay and see what happens as the voltage falls and the internal impedance of the battery goes up. Just dropping the supply voltage to simulate a decaying battery will not cut it as the real battery internal impedance will vary considerably as the battery decays and I won't see that by just winding down the supply voltage from a bench supply.
It would be nice if any of the PICs had a bandgap reference that the programmer could access. That way you could calculate the battery voltage and put in a software halt before the battery collapsed. I can't see how to measure battery volts via a direct connect PIC ADC referenced off Vdd. There needs to be a voltage reference somewhere in the circuit. The Brownout Detector can flag a 2.0 volt dip so there must be a reference buried inside the PIC somewhere - I just can't see where to find it.
At 1.5 volts you are off the data sheet and will have to build your own maps of what works and what does not.
Cheers
Brian