www.geehy.com Page 120
Field
Name
R/W
Description
situations:
(1) UD=0 on TMRx_CTRL1 register, and when the value of the
repeat counter overruns/underruns, an update event will be
generated;
(2) URSSEL=0 and UD=0 on TMRx_CTRL1 register, configure
UEG=1 on TMRx_CEG register to generate update event, and the
counter needs to be initialized by software;
(3) URSSEL=0 and UD=0 on TMRx_CTRL1 register, generate
update event when the counter is initialized by trigger event.
1
CC1IFLG
RC_W0
Capture/Compare Channel1 Interrupt Flag
When the capture/compare channel 1 is configured as output:
0: No matching occurred
1: The value of TMRx_CNT matches the value of TMRx_CC1
When the capture/compare channel 1 is configured as input:
0: Input capture did not occur
1: Input capture occurred
When capture event occurs, the bit is set to 1 by hardware, and it
can be cleared by software or cleared when reading TMRx_CC1
register.
2
CC2IFLG
RC_W0
Captuer/Compare Channel2 Interrupt Flag
Refer to STS_CC1IFLG
3
CC3IFLG
RC_W0
Capture/Compare Channel3 Interrupt Flag
Refer to STS_CC1IFLG
4
CC4IFLG
RC_W0
Captuer/Compare Channel4 Interrupt Flag
Refer to STS_CC1IFLG
5
COMIFLG
RC_W0
COM Event Interrupt Generate Flag
0: COM event does not occur
1: COM interrupt waits for response
After COM event is generated, this bit is set to 1 by hardware and
cleared by software.
6
TRGIFLG
RC_W0
Trigger Event Interrupt Generate Flag
0: Trigger event interrupt did not occur
1: Trigger event interrupt occurred
After Trigger event is generated, this bit is set to 1 by hardware and
cleared by software.
7
BRKIFLG
RC_W0
Break Event Interrupt Generate Flag
0: Break event does not occur
1: Break event occurs
When break input is valid, this bit is set to 1 by hardware; when
break input is invalid, this bit can be cleared by software.
8
Reserved
9
CC1RCFLG
RC_W0
Capture/compare Channel1 Repetition Capture Flag
0: Repeat capture does not occur
1: Repeat capture occurs
The value of the counter is captured to TMRx_CC1 register, and
CC1IFLG=1; this bit is set to 1 by hardware and cleared by
software only when the channel is configured as input capture.
10
CC2RCFLG
RC_W0
Capture/compare Channel2 Repetition Capture Flag
Refer to STS_CC1RCFLG
11
CC3RCFLG
RC_W0
Capture/compare Channel3 Repetition Capture Flag
Refer to STS_CC1RCFLG
12
CC4RCFLG
RC_W0
Capture/compare Channel4 Repetition Capture Flag
Refer to STS_CC1RCFLG
15:13
Reserved
Control event generation register (TMRx_CEG)
Offset address: 0x14
Reset value: 0x0000