
CH32V003
Reference Manual
V1.3
100
101: Filtered timer input 1 (TI1FP1).
110: Filtered timer input 2 (TI2FP2).
111: External trigger input (ETRF).
The above only changes when SMS is 0.
Note: See Table 10-2 for details.
3
Reserved
RO Reserved
0
[2:0]
SMS
RW
Input mode selection field. Selects the clock and trigger
mode of the core counter.
000: driven by the internal clock CK_INT.
001: encoder mode 1, where the core counter
increments or decrements the count at the edge of
TI2FP2 depending on the level of TI1FP1.
010: encoder mode 2, where the core counter
increments or decrements the count at the edge of
TI1FP1, depending on the level of TI2FP2.
011: encoder mode 3, where the core counter
increments and decrements the count on the edges of
TI1FP1 and TI2FP2 depending on the input level of
another signal; 100: reset mode, where the rising edge
of the trigger input (TRGI) will initialize the counter
and
generate a signal to update the registers.
101: Gated mode, when the trigger input (TRGI) is
high, the counter clock is turned on; at the trigger input
becomes low, the counter is stopped, and the counter
starts and stops are controlled.
110: trigger mode, where the counter is started on the
rising edge of the trigger input TRGI and only the start
of the counter is controlled.
111: External clock mode 1, rising edge of the selected
trigger input (TRGI) drives the counter.
0
10.4.4 DMA/interrupt enable register (TIM1_DMAINTENR)
Offset address: 0x0C
15
14
13
12
11
10
9
8
7 6
5
4
3
2
1
0
Reserve
d
TD
E
COMD
E
CC4D
E
CC3D
E
CC2D
E
CC1D
E
UD
E
BI
E
TI
E
COMI
E
CC4I
E
CC3I
E
CC2I
E
CC1I
E
UI
E
Bit
Name
Access
Description
Reset
value
15
Reserved
RO Reserved
0
14
TDE
RW
Trigger the DMA request enable bit.
1: Allowing DMA requests to be triggered.
0: Triggering of DMA requests is prohibited.
0
13
COMDE
RW
DMA request enable bit of COM.
1: Allow DMA requests for COM.
0: DMA request for COM is disabled.
0
12
CC4DE
RW
Compare the DMA request enable bit of capture
channel 4.
1: allows comparison of DMA requests for capture
channel 4.
0: Disable comparison of DMA requests for capture
channel 4.
0b
11
CC3DE
RW
Compare the DMA request enable bit of capture
channel 3.
1: allows comparison of DMA requests for capture
channel 3.
0: Disable comparison of DMA requests for capture
0