![NXP Semiconductors MPC5605BK Reference Manual Download Page 729](http://html.mh-extra.com/html/nxp-semiconductors/mpc5605bk/mpc5605bk_reference-manual_1721852729.webp)
Chapter 28 Analog-to-Digital Converter (ADC)
MPC5606BK Microcontroller Reference Manual, Rev. 2
Freescale Semiconductor
727
Figure 28-8. Guarded area
After the conversion of the selected channel, a comparison is performed between the converted value and
the threshold values. If the converted value lies outside that guarded area then corresponding threshold
violation interrupts are generated. The comparison result is stored as WTISR[WDG
x
H] and
WTISR[WDG
x
L] as explained in
. Depending on the mask bits WTIMR[MSKWDG
x
L] and
WTIMR[MSKWDG
x
H], an interrupt is generated on threshold violation.
Each channel can be enabled independently from the CWENR registers and can select the watchdog
threshold registers (THRHLR
x
) to be used by programming the CWSELR registers. The threshold
registers selected by the CWSELR[WSEL_CH
x
] provides the threshold values.
For example, if channel number 15 is to be monitored with the threshold values in THRHLR1, then
CWSELR[WSEL_CH15] is programmed to select THRHLR1 to provide the threshold values. The
channel monitoring is enabled by setting the bit corresponding to channel 15 in the CWENR.
If a converted value for a particular channel lies outside the range specified by threshold values, then the
corresponding bit is set in the Analog Watchdog Out of Range Register (AWORR).
A set of threshold registers (THRHLR
x
) can be linked to several ADC channels. The threshold values to
be selected for a channel need be programmed only once in the CWSELR
x
.
NOTE
If the higher threshold for the analog watchdog is programmed lower than
the lower threshold and the converted value is less than the lower threshold,
then the WDG
x
L interrupt for the low threshold violation is set, else if the
converted value is greater than the lower threshold (consequently also
greater than the higher threshold) then the interrupt WDG
x
H for high
threshold violation is set. Thus, the user should avoid that situation as it
could lead to misinterpretation of the watchdog interrupts.
Table 28-8. Values of WDG
x
H and WDG
x
L fields
WDG
x
H
WDG
x
L
Converted data
1
0
Converted data > THRH
0
1
Converted data < THRL
0
0
THRL
converted data
THRH
THRH
THRL
Analog voltage
Upper threshold
Lower threshold
Guarded area
Summary of Contents for MPC5605BK
Page 2: ...This page is intentionally left blank...
Page 20: ...MPC5606BK Microcontroller Reference Manual Rev 2 20 Freescale Semiconductor...
Page 103: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 103 Clocks and power...
Page 645: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 643 Timers...
Page 715: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 713 ADC system...
Page 787: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 787 Memory...
Page 893: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 893 Integrity...
Page 943: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 943 Debug...