A battery monitor for use with a battery includes an input configured to
receive a voltage from the battery, an analog to digital converter (ADC)
coupled to the input and configured to convert analog voltages received
through the input into digital indications of levels of the analog
voltage, and a processor coupled to the ADC to receive the digital
indications of the levels of the analog voltage of the battery and
configured to manipulate the received digital indications to reduce
inaccuracies introduced by the ADC in the received digital indications of
the levels of the analog voltage relative to actual levels of the analog
voltage during discharge of the battery, the processor being further
configured to provide an output indicative of a determined level of the
analog voltage.