GD32VF103 User Manual
313
When channel 0 is configured in input mode, this bit specifies the CI0 signal polarity.
0: CI0 is non-inverted. Input capture is done on a rising edge of CI0. When used as
extern trigger, CI0 is non-inverted.
1: CI0 is inverted. Input capture is done on a falling edge of CI0. When used as
extern trigger, CI0 is inverted.
0
CH0EN
Channel 0 capture/compare function enable
When channel 0 is configured in output mode, setting this bit enables CH0_O signal
in active state. When channel 0 is configured in input mode, setting this bit enables
the capture event in channel0.
0: Channel 0 disabled
1: Channel 0 enabled
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.