Advanced-control timers (TIM1)
RM0365
523/1080
DocID025202 Rev 7
20.4.5 TIM1
status
register (TIMx_SR)
Address offset: 0x10
Reset value: 0x0000 0000
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
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
CC6IF
CC5IF
rc_w0
rc_w0
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Res.
Res.
Res.
CC4OF CC3OF CC2OF CC1OF
B2IF
BIF
TIF
COMIF 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
rc_w0
rc_w0
rc_w0
Bits 31:18 Reserved, must be kept at reset value.
Bit 17
CC6IF
: Compare 6 interrupt flag
Refer to CC1IF description (Note: Channel 6 can only be configured as output)
Bit 16
CC5IF
: Compare 5 interrupt flag
Refer to CC1IF description (Note: Channel 5 can only be configured as output)
Bits 15:13 Reserved, must be kept at reset value.
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
Bit 8
B2IF
: Break 2 interrupt flag
This flag is set by hardware as soon as the break 2 input goes active. It can be cleared by
software if the break 2 input is not active.
0: No break event occurred.
1: An active level has been detected on the break 2 input. An interrupt is generated if BIE=1
in the TIMx_DIER register.