![Nations N32G43 Series Скачать руководство пользователя страница 387](http://html1.mh-extra.com/html/nations/n32g43-series/n32g43-series_user-manual_3408051387.webp)
Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
364
/
631
ADC starts to convert, and the conversion end flag will be set to 1 after the conversion is completed.
Figure 17-4 Timing diagram
Analog watchdog
The analog watchdog can be enabled on the regular channel by setting ADC_CTRL1.AWDGERCH to 1, or the
analog watchdog on the injection channel can be enabled by setting ADC_CTRL1.AWDGEJCH to 1. The high
threshold of the analog watchdog can be set by configuring ADC_WDGHIGH.HTH, and the low threshold of the
analog watchdog can be set by configuring ADC_WDGLOW.LTH. The threshold of the analog watchdog has nothing
to do with the way of data alignment, because the comparison of the ADC's conversion value with the threshold is
done before the alignment . When the value of ADC analog conversion is higher than the high threshold of the analog
watchdog or lower than the low threshold of the analog watchdog, the analog watchdog flag (ADC_STS.AWDG)
will be set to 1, if ADC_CTRL1.AWDGIEN has been configured to 1, an interrupt will be generated at this time. The
analog watchdog can be controlled for one or more channels by configuring ADC_CTRL1.AWDGSGLEN and
ADC_CTRL1.AWDGCH[4:0].
Table 17-2 Analog watchdog channel selection
channel
ADC_CTRL1 register control bit
AWDGSGLEN
AWDGERCH
AWDGEJCH
There is none
Any value
0
0
All injection channels
0
0
1
All regular channels
0
1
0
All injection and regular channels
0
1
1
Set ON to 1
ADC_CLK
ADC Conversion
Next ADC Conversion
Conversion Time
(
total conv time
)
ADC
ENDC
Start first
conversion
t
STAB
Start next conversion
ADC power on
ENDC is set to 0 by software