RM0091
18.6.4
TIM16 and TIM17 status register (TIM16_SR and TIM17_SR)
Address offset: 0x10
Reset value: 0x0000
15
14
13
Res.
Res.
Res.
Res.
Bits 15:10 Reserved, always read as 0.
Bit 9 CC1OF: Capture/Compare 1 overcapture flag
Bit 8 Reserved, always read as 0.
Bit 7 BIF: Break interrupt flag
Bit 6 TIF: Trigger interrupt flag
Bit 5 COMIF: COM interrupt flag
Bits 4:2 Reserved, always read as 0.
Bit 1 CC1IF: Capture/Compare 1 interrupt flag
12
11
10
9
Res.
Res.
CC1OF
rc_w0
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
This flag is set by hardware as soon as the break input goes active. It can be cleared by
software if the break input is not active.
0: No break event occurred
1: An active level has been detected on the break input
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
This flag is set by hardware on a COM event (once the capture/compare control bits –CCxE,
CCxNE, OCxM– have been updated). It is cleared by software.
0: No COM event occurred
1: COM interrupt pending
If channel CC1 is configured as output:
This flag is set by hardware when the counter matches the compare value, with some
exception in center-aligned mode (refer to the CMS bits in the TIMx_CR1 register
description). It is cleared by software.
0: No match.
1: The content of the counter TIMx_CNT matches the content of the TIMx_CCR1 register.
When the contents of TIMx_CCR1 are greater than the contents of TIMx_ARR, the CC1IF
bit goes high on the counter overflow (in upcounting and up/down-counting modes) or
underflow (in downcounting mode)
If channel CC1 is configured as input:
This bit is set by hardware on a capture. It is cleared by software or by reading the
TIMx_CCR1 register.
0: No input capture occurred
1: The counter value has been captured in TIMx_CCR1 register (An edge has been
detected on IC1 which matches the selected polarity)
Doc ID 018940 Rev 1
General-purpose timers (TIM15/16/17)
8
7
6
5
Res.
BIF
TIF
COMIF
rc_w0
rc_w0
rc_w0
4
3
2
1
Res.
Res.
Res.
CC1IF
rc_w0
0
UIF
rc_w0
425/742
Need help?
Do you have a question about the STM32F05 series and is the answer not in the manual?
Questions and answers