GD32VF103 User Manual
326
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reserved
UPG
w
Bits
Fields
Descriptions
15:1
Reserved
Must be kept at reset value.
0
UPG
This bit can be set by software, and cleared by hardware automatically. When this
bit is set, the counter is cleared. The prescaler counter is cleared at the same time.
0: No generate an update event
1: Generate an update event
Counter register (TIMERx_CNT)
Address offset: 0x24
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
CNT[15:0]
rw
Bits
Fields
Descriptions
15:0
CNT[15:0]
This bit-filed indicates the current counter value. Writing to this bit-filed can change
the value of the counter.
Prescaler register (TIMERx_PSC)
Address offset: 0x28
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
PSC[15:0]
rw
Bits
Fields
Descriptions
15:0
PSC[15:0]
Prescaler value of the counter clock
The PSC clock is divided by (PSC+1) to generate the counter clock. The value of
this bit-filed will be loaded to the corresponding shadow register at every update
event.