wm8350 Wolfson Microelectronics plc, wm8350 Datasheet - Page 179

no-image

wm8350

Manufacturer Part Number
wm8350
Description
Wolfson Audioplus? Stereo Codec With Power Management
Manufacturer
Wolfson Microelectronics plc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
wm8350G
Manufacturer:
WOLFSON
Quantity:
20 000
Part Number:
wm8350GEB/RVLRG
Manufacturer:
WOLFSON
Quantity:
20 000
Production Data
19.6 DIGITAL COMPARATORS
w
The WM8350 has four digital comparators which may be used to compare AUXADC measurement
data against programmable threshold values. Each comparator has an associated interrupt flag, as
described in Section 19.7, which indicates that the associated data is beyond the threshold value.
The digital comparators are enabled using the DCMPn_ENA register bits as described in Table 118.
The source data for each comparator is selected using the DCMPn_SRCSEL register bits; this
selects one of the eight AUXADC channels for each comparator. Note that, if required, the same
AUXADC channel may be selected for more than one comparator; this would allow more than one
threshold to be monitored on the same AUXADC channel.
The DCMPn_GT register bits select whether an interrupt will be indicated when the measured value
is above the threshold or when the measured value is below the threshold.
The threshold DCMPn_THR is a 12-bit code for each comparator. This field follows the same voltage
scaling and voltage reference as the associated AUXADC channel source.
R12 (0Ch)
Power Mgmt (5)
or
R163 (A3h)
Generic
Comparator
Control
R164 (A4h)
Generic
comparator 1
R165 (A5h)
Generic
Comparator 2
R166 (A6h)
Generic
Comparator 3
R167 (A7h)
Generic
Comparator 4
Note: n is a number between 1 and 4 that identifies the individual comparator
Note: The Comparator Enable bits can each be accessed through two separate control registers.
Reading from or writing to either register location has the same effect.
Table 118 AUXADC Digital Comparator Control
ADDRESS
15:13
11:0
BIT
12
3
2
1
0
DCMP4_ENA
DCMP3_ENA
DCMP2_ENA
DCMP1_ENA
DCMPn_SRCS
EL [2:0]
DCMPn_GT
DCMPn_THR
[11:0]
LABEL
DEFAULT
000h
000
0
0
0
0
0
Digital comparator 4 enable
0 = disabled
1 = enabled
Digital comparator 3 enable
0 = disabled
1 = enabled
Digital comparator 2 enable
0 = disabled
1 = enabled
Digital comparator 1 enable
0 = disabled
1 = enabled
DCOMPn source select.
000 = AUX1
001 = AUX2
010 = AUX3
011 = AUX4
100 = USB
101 = LINE
110 = BATT
111 = TEMP
DCOMPn interrupt control
0 = interrupt when the source is
less than threshold
1 = interrupt when the source is
greater than threshold
DCOMPn threshold
(12-bit unsigned binary number)
PD, June 2009, Rev 4.1
DESCRIPTION
WM8350
179

Related parts for wm8350