General-purpose timer (TIMx) RM0008
316/690
13.4.5 Status register (TIMx_SR)
Address offset: 0x10
Reset value: 0x0000
Bit 2 CC2IE: Capture/Compare 2 interrupt enable.
0: CC2 interrupt disabled.
1: CC2 interrupt enabled.
Bit 1 CC1IE: Capture/Compare 1 interrupt enable.
0: CC1 interrupt disabled.
1: CC1 interrupt enabled.
Bit 0 UIE: Update interrupt enable.
0: Update interrupt disabled.
1: Update interrupt enabled.
1514131211109876543210
Reserved
CC4
OF
CC3
OF
CC2
OF
CC1
OF
Reserved
TIF
Res
CC4IF CC3IF CC2IF CC1IF UIF
rc_w0 rc_w0 rc_w0 rc_w0 rc_w0 rc_w0 rc_w0 rc_w0 rc_w0 rc_w0
Bit 15:13 Reserved, always read as 0.
Bit 12 CC4OF: Capture/Compare 4 Overcapture Flag.
refer to CC1OF description
Bit 11 CC3OF: Capture/Compare 3 Overcapture Flag.
refer to CC1OF description
Bit 10 CC2OF: Capture/Compare 2 Overcapture Flag.
refer to CC1OF description
Bit 9 CC1OF: Capture/Compare 1 Overcapture Flag.
This flag is set by hardware only when the corresponding channel is configured in input capture
mode. It is cleared by software by writing it to ‘0’.
0: No overcapture has been detected.
1: The counter value has been captured in TIMx_CCR1 register while CC1IF flag was already set
Bits 8:7 Reserved, always read as 0.
Bit 6 TIF: Trigger interrupt Flag.
This flag is set by hardware on trigger event (active edge detected on TRGI input when the slave
mode controller is enabled in all modes but gated mode, both edges in case gated mode is selected).
It is cleared by software.
0: No trigger event occurred.
1: Trigger interrupt pending.
Bit 5 Reserved, always read as 0
Bit 4 CC4IF: Capture/Compare 4 interrupt Flag.
refer to CC1IF description
Bit 3 CC3IF: Capture/Compare 3 interrupt Flag.
refer to CC1IF description