Indicating weak batteries

If the controller is directly powered from the batteries then it is possible to measure the voltage of the internal reference vs. VCC. This in turn allows to infer VCC without any external components. However if the controller is powered through some regulator this method will most probably fail.

Udo