GD32VF103 User Manual
323
15.3.5.
TIMERx registers(x=5,6)
TIMER5 base address: 0x40001000
TIMER6 base address: 0x40001400
Control register 0 (TIMERx_CTL0)
Address offset: 0x00
Reset value: 0x0000
This register can be accessed by half-word (16-bit) or word (32-bit)
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reserved
ARSE
Reserved
SPM
UPS
UPDIS
CEN
rw
rw
rw
rw
rw
Bits
Fields
Descriptions
15:8
Reserved
Must be kept at reset value
7
ARSE
Auto-reload shadow enable
0: The shadow register for TIMERx_CAR register is disabled
1: The shadow register for TIMERx_CAR register is enabled
6:4
Reserved
Must be kept at reset value
3
SPM
Single pulse mode.
0: Single pulse mode disable. Counter continues after update event.
1: Single pulse mode enable. The CEN is cleared by hardware and the counter
stops at next update event.
2
UPS
Update source
This bit is used to select the update event sources by software.
0: When enabled, any of the following events generate an update interrupt or DMA
request:
The UPG bit is set
The counter generates an overflow or underflow event
The slave mode controller generates an update event.
1: When enabled, only counter overflow/underflow generates an update interrupt or
DMA request.
1
UPDIS
Update disable.
This bit is used to enable or disable the update event generation.
0: update event enable. The update event is generate and the buffered registers are
loaded with their preloaded values when one of the following events occurs:
The UPG bit is set
The counter generates an overflow or underflow event