BAT32G1x9 user manual | Chapter 15 A/D converter
517 / 1149
Rev.1.02
15.4.10 Hardware-triggered wait mode (select mode, single-shot transition mode)
①
In the stopped state, enter the hardware-triggered standby state by placing the ADCE position "1" of
the ADM0's mode register 0 (ADM0).
②
If the input hardware trigger is in hardware-triggered standby, A/D conversion is performed on the
analog input specified by the analog input channel specified by the register (ADS). The ADCS
position of the ADM0 register is automatically "1" while the input hardware is triggered.
③
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 is complete, the ADCS bit is automatically cleared to "0" and the A/D
converter enters the stopped 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 is aborted immediately,
then the hardware triggers the standby state, and the A/D converter enters the stopped state. When
the ADCE bit is "0", even the input hardware trigger is ignored and the A/D conversion does not
begin.
Figure15-29 Operation sequence of hardware trigger wait mode (select mode, single-shot transition mode).
p
o
w
e
r
so
u
rce
p
o
w
e
r
so
u
rce
p
o
w
e
r
so
u
rce
p
o
w
e
r
so
u
rce
p
o
w
e
r
so
u
rce
A/D conversion state
stop
converting
idle
conversion
set 1 to ADCE bit
generate hardware trigger
hardware trigger
do not accept trigger
trigger idle
clear ADCE bit to 0
do not accept trigger
modify ADS (from ANI0 to
ANI1) during A/D conversion
clear ADCS bit to 0
during conversion
rewrite ADCS bit to 1
during A/D conversion
operation
trigger idle
generate hardware trigger
during A/D conversion
operation
auto restart
conversion when
conversion
completes
conversion completes
auto restart
conversion when
conversion
completes
auto restart
conversion when
conversion
completes
idle
conversion
idle
conversion
idle
conversion
idle
conversion
idle
conversion
stop
converting
power source
power source stablization wait cycles