GD32A50x User Manual
374
Refer to CH0IF description
1
CH0IF
Channel 0 capture/compare interrupt flag
This flag is set by hardware and cleared by software.
If channel 0 is in input mode, this flag is set when a capture event occurs. If channel
0 is in output mode, this flag is set when a compare event occurs.
If channel 0 is set to input mode, this bit will be reset by reading TIMERx_CH0CV.
0: No channel 0 interrupt occurred
1: Channel 0 interrupt occurred
0
UPIF
Update interrupt flag
This bit is set by hardware when an update event occurs and cleared by software.
0: No update interrupt occurred
1: Update interrupt occurred
Software event generation register (TIMERx_SWEVG)
Address offset: 0x14
Reset value: 0x0000 0000
This register has to be accessed by word (32-bit).
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
CH3COM
ADDG
CH2COM
ADDG
CH1COM
ADDG
CH0COM
ADDG
Reserved
MCH3G
MCH2G
MCH1G
MCH0G
Reserved
w
w
w
w
w
w
w
w
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reserved
BRKG
TRGG
CMTG
CH3G
CH2G
CH1G
CH0G
UPG
w
w
w
w
w
w
w
w
Bits
Fields
Descriptions
31
CH3COMADDG
Channel 3 additional compare event generation.
Refer to CH0COMADDG description.
30
CH2COMADDG
Channel 2 additional compare event generation.
Refer to CH0COMADDG description.
29
CH1COMADDG
Channel 1 additional compare event generation.
Refer to CH0COMADDG description.
28
CH0COMADDG
Channel 0 additional compare event generation.
This bit is set by software to generate a compare event in channel 0 additional , it is
automatically cleared by hardware.
When this bit is set, the CH0COMADDIF flag will be set, and the corresponding
interrupt will be sent if enabled.
0: No generate a channel 0 additional compare event
1: Generate a channel 0 additional compare event