BAT32G1x9 user manual | Chapter 15 A/D converter
515 / 1149
Rev.1.02
15.4.8 Hardware-triggered no-wait mode (scan mode, single-shot conversion 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 pos ition of the ADM0 register "1"
enters the hardware-trigger 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 the ADCS bit "1", scan 0 to 4 of scan 3 specified by the analog
input channel specified register (ADS). A/D conversion of analog input channels. A/D conversion is
performed sequentially from the analog input channel specified by scan 0.
④
A/D conversion of 4 analog input channels is performed continuously. Whenever the A/D conversion
ends, the conversion result is saved to the A/D conversion result register (ADCR, ADCRH) and an
A/D is generated Conversion End Interrupt Request Signal (INTAD).
⑤
After the A/D conversion of the 4 channels is completed, 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 process, the current A/D conversion is
aborted immediately and the conversion is restarted from the original channel.
⑦
If the ADS register is overwritten or rewritten during the conversion process, the current A/D
conversion is immediately aborted and the A/D conversion is performed from the initial channel re -
specified by the ADS register.
⑧
If you rewrite "1" for the ADCS bit during the conversion process, the current A/D conversion is
immediately aborted and the conversion starts again from the original channel.
⑨
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 converte r 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-27 Operation sequence of hardware triggering no wait mode (scan mode, single transition mode).
set 1 to ADCE bit
generate hardware trigger
hardware trigger
set 1 to ADCS bit
do not accept trigger
trigger idle
generate hardware
trigger during A/D
conversion operation
clear ADCE bit to 0
clear ADCS bit to 0
during conversion
do not accept trigger
modif y ADS (from ANI 0 t o
ANI4) during A/D conversion
clear ADCS bit to 0 during
conversion
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
conversion
idle
conversion
idle
stop
converting
idle
conversion
4 interrupts generated in 1
complete scan
4 interrupts generated in 1
complete scan
4 interrupts generated in 1
complete scan