![Cmsemicon BAT32G1 9 Series Скачать руководство пользователя страница 513](http://html1.mh-extra.com/html/cmsemicon/bat32g1-9-series/bat32g1-9-series_user-manual_2627609513.webp)
BAT32G1x9 user manual | Chapter 15 A/D converter
513 / 1149
Rev.1.02
15.4.6 Hardware-triggered no-wait mode (select mode, single-shot transition mode)
①
In the stopped state, enter the ADCE position "1" of the A/D converter's mode register 0 (ADM0) into
the A/D transition standby state.
②
After counting the settling wait time (1us) by software, the ADCS position of the ADM0 register is "1"
and enters the hardware-triggered standby state (this stage does not start the transition). When the
hardware triggers standby, the A/D conversion does not start even if the ADCS position "1" is
placed.
③
If the input hardware is triggered in a state where the ADCS bit is "1", A/D conversion is performed
on the analog input specified by the analog input channel specified by the register (ADS).
④
If the A/D conversion is complete, the conversion result is saved to the A/D conversion result
register (ADCR, ADCRH) and an A/D transition end interrupt request signal is generated (INTAD)
。
⑤
After the A/D conversion ends, the ADCS bit remains in the "1" state and enters the A/D conversion
standby state.
⑥
If the input hardware is triggered during the conversion, the current A/D conversion is aborted
immediately and the conversion is restarted.
⑦
If the ADS registers are overwritten or rewritten during the conversion process, the current A/D
conversion is immediately aborted and the analog inputs reassigned by the ADS registers are A/D
converted.
⑧
If you rewrite "1" for the ADCS bit during the conversion process, the current A/D conversion is
immediately aborted and the conversion restarts.
⑨
If the ADCS position is "0" during the conversion, the current A/D conversion stops immediately and
then enters the A/D transition standby state. However, in this state the A/D converter does not enter
the stopped state.
⑩
If the ADCE position is "0" in the A/D conversion standby state, the A/D converter enters the stopped
state. When the ADCS bit is "0", even the input hardware trigger is ignored and the A/D conversion
does not begin.
Figure15-25 Example of Operation sequence of hardware triggering no wait mode (select mode, single-shot
transition mode).
set 1 to ADCE bit
generate hardware trigger
generate hardware
trigger during A/D
conversion operation
clear ADCE bit to 0
rewrit e ADCS bit t o 1 during A/D
conversion operat ion
clear ADCS bit to 0 during
conversion
do not accept trigger
auto restart
conversion when
conversion completes
auto restart
conversion when
conversion completes
auto restart
conversion when
conversion completes
conversion completes
A/D conversion state
stop
converting
idle conversion
idle conversion
idle
conversion
idle
conversion
idle
conversion
(ANI1)
idle
conversion
stop
converting
modify ADS (from ANI0 to
ANI1) during A/D conversion
set 1 to ADCS bit
do not accept trigger
trigger idle
hardware trigger