BAT32G1x9 user manual | Chapter 15 A/D converter
512 / 1149
Rev.1.02
15.4.5 Hardware-triggered no-wait mode (select mode, continuous 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",
Entering hardware triggers standby (this phase 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)
。
Start the next A/D conversion immediately after the A/D conversion is complete.
⑤
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 is immediately aborted
and then enters the A/D conversion 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-24 Hardware triggers an example of a Operation sequence in a wait-free mode (select mode, continuous
transition mode).
set 1 to ADCE bit
set 1 to ADCS bit
generate hardware trigger
generate hardware
trigger during A/D
conversion operation
rewrit e ADCS bit t o 1 during A/D
conversion operat ion
clear ADCS bit to 0 during
conversion
do not accept trigger
clear ADCE bit to 0
do not accept trigger
trigger idle
hardware trigger
modify ADS (from ANI0
to ANI1) during A/D
conversion
A/D conversion state
stop
converting
idle
conversion
start next
cnversion when
A/D conversion
completes
auto restart
conversion when
conversion completes
auto restart
conversion when
conversion completes
auto restart
conversion when
conversion completes
idle
conversion
stop
converting