
CH32V003
Reference Manual
V1.3
95
10.3.10 Timer synchronization mode
Timers are capable of outputting clock pulses (TRGO) and 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 10-2.
Table 10-2 TIMx internal trigger connections
From timer
ITR0(TS=000)
ITR1(TS=001) ITR2(TS=010) ITR3(TS=011)
TIM1
TIM2
TIM2
TIM1
10.3.11 Debug mode
When the system enters debug mode, the timer continues to run or stops according to the settings of the DBG
module.
10.4 Register description
Table 10-3 TIM1-related registers list
Name
Access address
Description
Reset value
R16_TIM1_CTLR1
0x40012C00
Control register 1
0x0000
R16_TIM1_CTLR2
0x40012C04
Control register 2
0x0000
R16_TIM1_SMCFGR
0x40012C08
Slave mode control register
0x0000
R16_TIM1_DMAINTENR
0x40012C0C
DMA/interrupt enable register
0x0000
R16_TIM1_INTFR
0x40012C10
Interrupt status register
0x0000
R16_TIM1_SWEVGR
0x40012C14
Event generation register
0x0000
R16_TIM1_CHCTLR1
0x40012C18
Compare/capture control register 1
0x0000
R16_TIM1_CHCTLR2
0x40012C1C
Compare/capture control register 2
0x0000
R16_TIM1_CCER
0x40012C20
Compare/capture enable register
0x0000
R16_TIM1_CNT
0x40012C24
Counters
0x0000
R16_TIM1_PSC
0x40012C28
Counting clock prescaler
0x0000
R16_TIM1_ATRLR
0x40012C2C
Auto-reload value register
0x0000
R16_TIM1_RPTCR
0x40012C30
Recurring count value register
0x0000
R16_TIM1_CH1CVR
0x40012C34
Compare/capture register 1
0x0000
R16_TIM1_CH2CVR
0x40012C38
Compare/capture register 2
0x0000
R16_TIM1_CH3CVR
0x40012C3C
Compare/capture register 3
0x0000
R16_TIM1_CH4CVR
0x40012C40
Compare/capture register 4
0x0000
R16_TIM1_BDTR
0x40012C44
Brake and deadband registers
0x0000
R16_TIM1_DMACFGR
0x40012C48
DMA control register
0x0000
R16_TIM1_DMAADR
0x40012C4C
DMA
address
register
for
continuous mode
0x0000
10.4.1 Control Register 1 (TIM1_CTLR1)
Offset address: 0x00
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
CAP
LVL
TMR
_CAP
_OV_
EN
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