![Geehy SEMICONDUCTOR APM32F405 Series Скачать руководство пользователя страница 245](http://html1.mh-extra.com/html/geehy-semiconductor/apm32f405-series/apm32f405-series_user-manual_573630245.webp)
www.geehy.com Page 244
Field
Name
R/W
Description
6
TRGIEN
R/W
Trigger interrupt Enable
0: Disable
1: Enable
15:7
Reserved
State register (TMRx_STS)
Offset address: 0x10
Reset value: 0x0000
Field
Name
R/W
Description
0
UIFLG
RC_W0
Update Event Interrupt Generate Flag
0: Update event interrupt does not occur
1: Update event interrupt occurs
When the counter value is reloaded or reinitialized, an update
event will be generated. The bit is set to 1 by hardware and
cleared by software; update events are generated in the following
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) URSEL=0 and UD=0 on TMRx_CTRL1 register, configure UG
= 1 on TMRx_CEG register to generate update event, and the
counter needs to be initialized by software;
(3) URSEL=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 a 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
Capture/Compare Channel2 new Interrupt Flag
Refer to STS_CC1IFLG
5:3
Reserved
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.
8:7
Reserved
9
CC1RCFLG
RC_W0
Capture/compare Channel1 Repetition Capture Flag
0: Repeat capture does not occur
1: Repeat capture occurs