
CH32V003
Reference Manual
V1.3
120
0: Turn off the indication function
1: Enables the indication function.
Note: When enabled, [17] of CHxCVR indicates the
level corresponding to the capture value.
14
CAPOV
RW
Capture value mode configuration.
0: The capture value is the actual counter value
1: The CHxCVR value is 0xFFFF when a counter
overflow is generated before capture.
0
[13:10] Reserved
RO Reserved
0
[9:8]
CKD
RW
These 2 bits define the division ratio between the timer
clock (CK_INT) frequency, the sampling clock used by
the digital filter.
00: Tdts=Tck_int;
01: Tdts= 2xTck_int;
10: Tdts= 4xTck_int;
11
:
Reserved.
0
7
ARPE
RW
Auto-reload preload enable bit.
1: Enables the Auto-reload value register (ATRLR).
0: Auto-reload value register (ATRLR) is disabled.
0
[6:5]
CMS
RW
Central alignment mode selection.
00: Edge-aligned mode. The counter counts up or down
based on the direction bit (DIR).
01: Central alignment mode 1. The counter counts up
and down alternately. The output compare interrupt flag
bit of the channel configured as output (CCxS=00 in the
CHCTLRx register) is set only when the counter counts
down.
10: Central alignment mode 2. The counter counts up
and down alternately. The output compare interrupt flag
bit of the channel configured as output (CCxS=00 in the
CHCTLRx register) is set only when the counter counts
up.
11: Central alignment mode 3. The counter counts up
and down alternately. The output compare interrupt flag
bit of the channel configured as output (CCxS=00 in the
CHCTLRx register) is set when the counter counts both
up and down.
Note: When the counter is enabled (CEN=1), the
transition from edge-aligned mode to center-aligned
mode is not allowed.
0
4
DIR
RW
Counting direction.
0: the counter's counting mode is incremental.
1: The counting mode of the counter is decimal
counting.
Note: This bit is not valid when the counter is
configured in central alignment mode or encoder mode.
0
3
OPM
RW
Single pulse mode.
1: the counter stops when the next update event
(clearing the CEN bit) occurs.
0: The counter does not stop when the next update event
occurs.
0
2
URS
RW
Update request source, by which the software selects
the source of the UEV event.
1: if an update interrupt or DMA request is enabled,
only an update interrupt or DMA request is generated if
the counter overflows/underflows.
0: If an update interrupt or DMA request is enabled, the
update interrupt or DMA request is generated by any of
the following events.
0