WCH CH32V003 Series Reference Manual page 80

Table of Contents

Advertisement

CH32V003 Reference Manual
20
EXTTRIG
[19:17]
EXTSEL
16
Reserved
15
JEXTTRIG
[14:12]
JEXTSEL
11
ALIGN
[10:9]
Reserved
8
DMA
[7:4]
Reserved
3
RSTCAL
2
CAL
1
CONT
0
ADON
V1.3
0 by software after the conversion starts.
External trigger transition mode enable for the rule
channel.
RW
1: Use of external events to initiate conversions.
0: Turn off the external event activation function.
External trigger event selection for initiating rule channel
conversion.
000: TRGO event for timer 1.
001: CH1 event of timer 1.
010: CH2 event of timer 1.
RW
011: TRGO event of timer 2.
100: CH1 event of timer 2.
101: CH2 event of timer 2.
110: PD3/PC2 events.
111: SWSTART software trigger.
RO
Reserved
External trigger transition mode enable for the injected
channel.
RW
1: Use of external events to initiate conversions.
0: Turn off the external event activation function.
External trigger event selection for initiating injection
channel conversion.
000: CH3 event of timer 1.
001: CH4 event of timer 1.
010: CH3 event of timer 2.
RW
011: CH4 event of timer 2.
100.
101.
110: PD1/PA2
111: JSWSTART software trigger.
Data alignment.
RW
1: left-aligned; 0: right-aligned.
RO
Reserved
Direct Memory Access (DMA) mode enable.
RW
1: Enables DMA mode.
0: Turn off DMA mode.
RO
Reserved
Reset calibration, this bit is set by software and cleared by
hardware after the reset is completed.
1: Initialization of the calibration registers.
RW
0: Calibration register is initialized.
Note: If RSTCAL is set while conversion is in progress,
additional cycles are required to clear the calibration
register.
A/D calibration, this bit is set by software and cleared to 0
by hardware at the end of calibration.
RW
1: Start of calibration.
0: Calibration is complete.
Continuous conversion enable.
1: Continuous conversion mode.
RW
0: Single conversion mode.
If this bit is set, the conversion will continue until the bit is
cleared.
On/off A/D converter
When this bit is 0, writing 1 will wake up the ADC from
power-down mode; when this bit is 1, writing 1 will start
RW
the conversion.
1: Turn on the ADC and start the conversion.
0: Turn off ADC conversion/calibration and enter power-
80
http://wch.cn
0
0
0
0
0
0
0
0
0
0
0
0
0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents