WM9714L_06 WOLFSON [Wolfson Microelectronics plc], WM9714L_06 Datasheet - Page 58

no-image

WM9714L_06

Manufacturer Part Number
WM9714L_06
Description
AC 97 Audio CODEC
Manufacturer
WOLFSON [Wolfson Microelectronics plc]
Datasheet
WM9714L
ADDITIONAL FEATURES
BATTERY ALARM AND ANALOGUE COMPARATORS
w
The battery alarm function differs from battery measurement in that it does not actually measure the
battery voltage. Battery alarm only indicates “OK”, “Low” or “Dead”. The advantage of the battery
alarm function is that it does not require a clock and can therefore be used in low-power sleep or
standby modes.
Figure 17 Battery Alarm Example Schematic
The typical schematic for a dual threshold battery alarm is shown above. This alarm has two
thresholds, “dead battery” (COMP1) and “low battery” (COMP2). R1, R2 and R3 set the threshold
voltages. Their values can be up to about 1M
(R1+R2+R3)] to a minimum (higher resistor values may affect the accuracy of the system as leakage
currents into the input pins become significant).
Dead battery alarm: COMP1 triggers when V
A dead battery alarm is the highest priority of interrupt in the system. It should immediately save all
unsaved data and shut down the system. The GP15, GS15 and GW15 bits must be set to generate
this interrupt.
Low battery alarm: COMP2 triggers when V
A low battery alarm has a lower priority than a dead battery alarm. Since the threshold voltage is
higher than for a dead battery alarm, there is enough power left in the battery to give the user a
warning and/or shut down “gracefully”. When V
alarms are filtered out by the COMP2 delay function.
The purpose of the capacitor C is to remove from the comparator inputs any high frequency noise or
glitches that may be present on the battery (for example, noise generated by a charge pump). It
forms a low pass filter with R1, R2 and R3.
Low pass cutoff f
Provided that the cutoff frequency is several orders of magnitude lower than the noise frequency f
this simple circuit can achieve excellent noise rejection.
Noise rejection [dB] = 20 log (f
The circuit shown above also allows for measuring the battery voltage V
by setting the AUXADC input to be either COMP1 (ADCSEL = 100) or COMP2 (ADCSEL = 101) (see
also Auxiliary ADC Inputs).
The WM9714L has two on-chip comparators that can be used to implement a battery alarm function,
or other functions such as a window comparator. Each comparator has one of its inputs tied to
COMP1 (pin 29) or COMP2 (pin 30), and the other tied to a voltage reference. The voltage reference
can be either internally generated (VREF = AVDD/2) or externally connected on AUX4 (pin 12).
c
[Hz] = 1/ (2 C
n
/ f
c
)
(R1 || (R2+R3)))
BATT
BATT
BATT
< VREF
in order to keep the battery current [I
< VREF
gets close to the low battery threshold, spurious
(R1+R2+R3) / R3
(R1+R2+R3) / (R2+R3)
BATT
. This is achieved simply
PP Rev 3.0 June 2006
ALARM
Pre-Production
= V
BATT
58
n
/
,

Related parts for WM9714L_06