
Production Data
WM9712L
w
PD Rev 4.0 December 2003
49
The WM9712L 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 any
one of three device pins 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).
The comparator output signals are passed to the GPIO logic block (see “GPIO and Interrupt Control”
section), where they can be used to send an interrupt to the CPU via the AC-Link or via the IRQ pin,
and / or to wake up the WM9712L from sleep mode. COMP1/AUX1 (pin 29) corresponds to GPIO bit
15 and COMP2/AUX2 (pin30) to bit 14.
REGISTER
ADDRESS
4Eh
BIT
LABEL
DEFAULT
DESCRIPTION
15
CP1
1
COMP1 Polarity (see also “GPIO and Interrupt
Control”)
0: Alarm when COMP1 voltage is above VREF
1: Alarm when COMP1 voltage is below VREF
COMP2 Polarity (see also “GPIO and Interrupt
Control”)
0: Alarm when COMP2 voltage is above VREF
1: Alarm when COMP2 voltage is below VREF
Low Battery Alarm Delay
000: No delay
001: 0.17s (2
13
= 8192 AC-Link frames)
010: 0.34s (2
14
= 16384 AC-Link frames)
011: 0.68s (2
15
= 32768 AC-Link frames)
100: 1.4s (2
16
= 65536 AC-Link frames)
101: 2.7s (2
17
= 131072 AC-Link frames)
110: 5.5s (2
18
= 262144 AC-Link frames)
111: 10.9s (2
19
= 524288 AC-Link frames)
14
CP2
1
58h
15:13
COMP2
DEL
0
Table 35 Comparator Control
REGISTER
ADDRESS
5Ch
Additional
Analogue
Functions
BIT
LABEL
DEFAULT
DESCRIPTION
Comparator 1 Reference Voltage
0
VREF = AVDD/2
1
WIPER/AUX4 (pin 12)
Comparator 1 Signal Source
00
AVDD/2 when C1REF=’1’. Otherwise
comparator 1 is powered down
01
COMP1/AUX1 (pin 29)
10
COMP2/AUX2 (pin 30)
11
BMON/AUX3 (pin 31)
Comparator 2 Reference Voltage
0
VREF = AVDD/2
1
WIPER/AUX4 (pin 12)
Comparator 2 Signal Source
00
AVDD/2 when C2REF=’1’. Otherwise
comparator 2 is powered down
01
COMP1/AUX1 (pin 29)
10
COMP2/AUX2 (pin 30)
11
BMON/AUX3 (pin 31)
14
C1REF
0
13:12
C1SRC
00
11
C2REF
0
10:9
C2SRC
00
Table 36 Comparator Reference and Source Control