RM0453
Figure 79. ADC_AWDx_OUT signal generation (on a single channel)
ADC STATE
Conversion1
EOC FLAG
EOS FLAG
AWDx FLAG
ADCy_AWDx_OUT
- Converted channels: 1 and 2
- Only channel 1 is guarded
18.7.4
Analog Watchdog threshold control
LTx[11:0] and HTx[11:0] can be changed during an analog-to-digital conversion (that is
between the start of the conversion and the end of conversion of the ADC internal state). If
HTx and LTx bits are programmed during the ADC guarded channel conversion, the
watchdog function is masked for this conversion. This mask is cleared when starting a new
conversion, and the resulting new AWD threshold is applied starting the next ADC
conversion result. AWD comparison is performed at each end of conversion. If the current
ADC data are out of the new threshold interval, this does not generated any interrupt or an
ADC_AWDx_OUT signal. The Interrupt and the ADC_AWDx_OUT generation only occurs
at the end of the ADC conversion that started after the threshold update. If
ADC_AWDx_OUT is already asserted, programming the new threshold does not deassert
the ADC_AWDx_OUT signal.
ADC state
LTx, HTx
Comparison
Conversion2
Conversion1
outside
inside
Cleared
by SW
Figure 80. Analog watchdog threshold update
Conversion
XXXX
Conversion2
Conversion1
outside
Conversion
Conversion
Threshold updated
XXXY
Masked
Active
RM0453 Rev 5
Analog-to-digital converter (ADC)
Conversion2
Conversion1
outside
Cleared
by SW
Conversion
XXXZ
Conversion2
MSv45364V1
Active
MSv45365V1
561/1450
591
Need help?
Do you have a question about the STM32WL5 Series and is the answer not in the manual?
Questions and answers