![Cmsemicon BAT32G1 9 Series Скачать руководство пользователя страница 518](http://html1.mh-extra.com/html/cmsemicon/bat32g1-9-series/bat32g1-9-series_user-manual_2627609518.webp)
BAT32G1x9 user manual | Chapter 15 A/D converter
518 / 1149
Rev.1.02
15.4.11 Hardware-triggered wait mode (scan mode, continuous 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" while 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). The next A/D conversion
automatically starts from the set channel immediately after the end of the 4 -channel A/D conversion.
④
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 registers are overwritten or rewritten during the conversion process, the current A/D
conversion is immediately aborted and the scan conversion starts with the channel re -specified by
the ADS registers.
⑥
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 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-30 Example of Operation sequence of hardware-triggered wait modes (scan mode, continuous transition
mode).
p
o
w
e
r
s
o
u
rc
e
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
set 1 to ADCE bit
generate hardware trigger
hardware trigger
do not accept trigger
trigger idle
generate hardware trigger
during A/D conversion
operation
clear ADCE bit to 0
do not accept trigger
modify ADS (from ANI0 to ANI4)
during A/D conversion
clear ADCS bit to 0
during conversion
rewrite ADCS bit to 1
during A/D conversion
operation
trigger idle
4 interrupts generated in 1 complete scan
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