EasyManua.ls Logo

Cmsemicon CMS32L051 - Hardware Trigger Wait Mode (Scan Mode, Single Conversion Mode)

Default Icon
703 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
V1.2.2
CMS32L051 User Manual |Chapter 11 A/D Converter
www.mcu.com.cn 294 / 703
11.4.12 Hardware trigger wait mode (scan mode, single conversion mode)
(1) In the stop state, the ADCE bit of the mode register 0 (ADM0) of the A/D converter is 1 into a
hardware-triggered standby state.
(2) If hardware triggers are entered in hardware-triggered standby, A/D conversion is performed on the
four analog input channels specified by the analog input channel specified registers (ADS) from scan
0 to scan 3. Automatically puts the ADCS bit of the ADM0 register 1 after the input hardware
triggers. A/D conversion is performed sequentially from the analog input channels specified by Scan
0.
(3) A/D conversion of 4 analog input channels in succession. Whenever the A/D conversion ends, the
conversion results are saved to the A/D conversion result register (ADCR, ADCRH) and an A/D
conversion end interrupt request signal is generated ( INTAD).
(4) After the A/D conversion is complete, the ADCS bit automatically clears 0 and the A/D converter
enters a stopped state.
(5) If the input hardware triggers during the conversion, the current A/D conversion is aborted
immediately and then the scan conversion is re-started from the original channel.
(6) If the ADS registers are overwritten or overridden during the conversion, the current A/D conversion
is aborted immediately and the conversion is then scanned from the channel respecified by the ADS
registers.
(7) If you rewrite the ADCS bit 1 during the conversion process, the current A/D conversion is aborted
immediately, and the conversion is scanned from the initial channel.
(8) If the ADCS bit is 0 during the transition, the current A/D transition is aborted immediately, then
enters a hardware-triggered standby state, and the A/D converter enters a stopped state. When the
ADCE bit is 0, even the input hardware trigger is ignored and the A/D conversion does not begin.
Figure11-27 Timing example of hardware trigger wait mode (scan mode, single conversion mode)
power
source
power
source
power
source
power
source
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

Table of Contents

Related product manuals