A method for measuring and filtering analog signals in a battery
protection algorithm is achieved. A clock signal having a fixed period is
generated. Analog signals are sampled to create sampled digital signals.
The sampling is synchronized with the clock signal. The analog signals
are sampled such that no two analog signals are sampled during a single
fixed period. The sampled digital signals are filtered such that stored
versions of the sampled digital signals are updated whenever the sampled
digital signals transition to new states and remain in these new states
for a defined number of the samplings. A circuit for measuring and
filtering analog signals is in a battery protection circuit is also
achieved. Sampling circuits are placed into standby mode when not
sampling.