RM0366
These thresholds are programmed in bits HT1[11:0] and LT1[11:0] of the ADCx_TR1
register for the analog watchdog 1. When converting data with a resolution of less than 12
bits (according to bits RES[1:0]), the LSB of the programmed thresholds must be kept
cleared because the internal comparison is always performed on the full 12-bit raw
converted data (left aligned).
Table 39
analog watchdog 1.
Resolution
(bit
RES[1:0])
00: 12-bit
01: 10-bit
10: 8-bit
11: 6-bit
1. The watchdog comparison is performed on the raw converted data before any alignment calculation and
before applying any offsets (the data which is compared is not signed).
Description of analog watchdog 2 and 3
The second and third analog watchdogs are more flexible and can guard several selected
channels by programming the corresponding bits in AWDxCH[18:1] (x=2,3).
The corresponding watchdog is enabled when any bit of AWDxCH[18:0] (x=2,3) is set.
They are limited to a resolution of 8 bits and only the 8 MSBs of the thresholds can be
programmed into HTx[7:0] and LTx[7:0].
performed for all the possible resolutions.
Resolution
(bits
RES[1:0])
00: 12-bit
01: 10-bit
10: 8-bit
11: 6-bit
describes how the comparison is performed for all the possible resolutions for
Table 39. Analog watchdog 1 comparison
Analog watchdog comparison
between:
Raw converted
(1)
data, left aligned
DATA[11:0]
DATA[11:2],00
DATA[11:4],0000
DATA[11:6],000000
Table 40. Analog watchdog 2 and 3 comparison
Analog watchdog comparison between:
Raw converted data,
(1)
left aligned
DATA[11:4]
DATA[11:4]
DATA[11:4]
DATA[11:6],00
Thresholds
LT1[11:0] and
HT1[11:0]
LT1[11:0] and
User must configure LT1[1:0] and HT1[1:0] to
HT1[11:0]
00
LT1[11:0] and
User must configure LT1[3:0] and HT1[3:0] to
HT1[11:0]
0000
LT1[11:0] and
User must configure LT1[5:0] and HT1[5:0] to
HT1[11:0]
000000
Table 40
describes how the comparison is
Thresholds
LTx[7:0] and
HTx[7:0]
LTx[7:0] and
HTx[7:0]
LTx[7:0] and
HTx[7:0]
LTx[7:0] and
HTx[7:0]
RM0366 Rev 5
Analog-to-digital converters (ADC)
Comments
-
Comments
DATA[3:0] are not relevant for the
comparison
DATA[3:2] are not relevant for the
comparison
-
User must configure LTx[1:0] and
HTx[1:0] to 00
237/874
277
Need help?
Do you have a question about the STM32F301 6 Series and is the answer not in the manual?