
CH32V003
Reference Manual
V1.3
119
11.3.8 Timer synchronization mode
Timers are capable of outputting clock pulses (TRGO) and also receiving inputs from other timers (ITRx). The
source of ITRx (TRGO from other timers) is different for different timers. The timer internal trigger
connections are shown in Table 11-2.
Table 11-2 GTPM internal trigger connection
From timer
ITR0(TS=000)
ITR1(TS=001) ITR2(TS=010) ITR3(TS=011)
TIM2
TIM1
TIM1
TIM2
11.3.9 Debug mode
When the system enters the debug mode, the timer can be controlled to continue running or stop according to
the setting of DBG module.
11.4 Register Description
Table 11-3 TIM2-related registers list
Name
Offset address
Description
Reset value
R16_TIM2_CTLR1
0x40000000
TIM2 control register1
0x0000
R16_TIM2_CTLR2
0x40000004
TIM2 control register2
0x0000
R16_TIM2_SMCFGR
0x40000008
TIM2 Slave mode control register
0x0000
R16_TIM2_DMAINTENR
0x4000000C
TIM2
DMA/interrupt
enable
register
0x0000
R16_TIM2_INTFR
0x40000010
TIM2 interrupt status register
0x0000
R16_TIM2_SWEVGR
0x40000014
TIM2 event generation register
0x0000
R16_TIM2_CHCTLR1
0x40000018
TIM2
compare/capture
control
register1
0x0000
R16_TIM2_CHCTLR2
0x4000001C
TIM2
compare/capture
control
register2
0x0000
R16_TIM2_CCER
0x40000020
TIM2 compare/capture enable register
0x0000
R16_TIM2_CNT
0x40000024
TIM2 counter
0x0000
R16_TIM2_PSC
0x40000028
TIM2 count clock prescaler
0x0000
R16_TIM2_ATRLR
0x4000002C
TIM2 auto-reload register
0x0000
R16_TIM2_CH1CVR
0x40000034
TIM2 compare/capture register1
0x0000
R16_TIM2_CH2CVR
0x40000038
TIM2 compare/capture register2
0x0000
R16_TIM2_CH3CVR
0x4000003C
TIM2 compare/capture register3
0x0000
R16_TIM2_CH4CVR
0x40000040
TIM2 compare/capture register4
0x0000
R16_TIM2_DMACFGR
0x40000048
TIM2 DMA control register
0x0000
R16_TIM2_DMAADR
0x4000004C
TIM2 DMA address register in
continuous mode
0x0000
11.4.1 Control Register 1 (TIM2_CTLR1)
Offset address: 0x00
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
CAPL
VL
CAP
OV
Reserved
CKD[1:0] ARP
E
CMS[1:0] DIR OPM URS UDIS CEN
Bit
Name
Access
Description
Reset
value
15
CAPLVL
RW
In double-edge capture mode, the capture level
indication is enabled.
0