BAT32G1x9 user manual | Chapter 15 A/D converter
519 / 1149
Rev.1.02
15.4.12 Hardware-triggered wait mode (scan 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 is triggered in the hardware-triggered standby state, A/D conversion is
performed on the four analog input channels specified by the analog input channel specified register
(ADS) scan 0 to scan 3. The ADCS position of the ADM0 register is automatically "1" after the input
hardware is triggered. 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 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 immediately
aborted and the conversion is scanned again starting 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 scan conversion begins with the channel reass igned by
the ADS register.
⑦
If you rewrite "1" for the ADCS bit during the conversion, the current A/D conversion is immediately
aborted and the conversion is scanned starting from the initial channel.
⑧
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-31 An example of a Operation sequence in which hardware triggers a wait mode (scan mode, single-shot
conversion mode).
p
o
w
e
r
s
o
u
rc
e
p
o
w
e
r
s
o
u
rc
e
p
o
w
e
r
so
u
rce
p
o
w
e
r
s
o
u
rc
e
A/D conversion state
stop
converting
idle
conversion
set 1 to ADCE bit
generate hardware trigger
hardware trigger
do not accept trigger
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
clear ADCE bit to 0
do not accept trigger
clear ADCS bit to 0
during conversion
rewrite ADCS bit to 1
during A/D conversion
operation
trigger idle
modify ADS (from ANI0 to
ANI4) during A/D conversion
stop
converting
idle
conversion
stop
converting
stop
converting
4 interrupts generated in 1 complete scan
4 interrupts generated in 1 complete scan
4 interrupts generated in 1 complete scan
power source
power source stablization wait cycles
standby
conversi
on