EasyManuals Logo

ST STM8S Reference Manual

ST STM8S
449 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #192 background imageLoading...
Page #192 background image
16-bit advanced control timer (TIM1) RM0016
192/449 Doc ID 14587 Rev 8
17.7.6 Status register 1 (TIM1_SR1)
Address offset: 0x05
Reset value: 0x00
76543210
BIF TIF COMIF CC4IF CC3IF CC2IF CC1IF UIF
rc_w0 rc_w0 rc_w0 rc_w0 rc_w0 rc_w0 rc_w0 rc_w0
Bit 7 BIF: Break interrupt flag
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 has occurred
1: An active level has been detected on the break input
Bit 6 TIF: Trigger interrupt flag
This flag is set by hardware on a trigger event (the active edge is detected on a TRGI signal, both
edges are detected if trigger gated mode is selected). It is cleared by software.
0: No trigger event has occurred
1: Trigger interrupt pending
Bit 5 COMIF: Commutation interrupt flag
This flag is set by hardware on a COM (when capture/compare control bits - CCiE, CCiNE, OCiM -
have been updated). It is cleared by software.
0: No COM has occurred
1: COM interrupt pending
Bit 4 CC4IF: Capture/compare 4 interrupt flag
Refer to CC1IF description
Bit 3 CC3IF: Capture/compare 3 interrupt flag
Refer to CC1IF description
Bit 2 CC2IF: Capture/compare 2 interrupt flag
Refer to CC1IF description
Bit 1 CC1IF: Capture/compare 1 interrupt flag
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 from TIM1_CR1 register description). It is cleared by
software.
0: No match
1: The content of the counter register TIM1_CNT matches the content of the TIM1_CCR1 register
Note: In center-aligned mode, the counter is considered to count up when its value is 0 and to count
down when it is equal to the ARR value (it counts up from 0 to ARR-1 and counts down from
ARR to 1). These two values are not flagged for all values of the CMS bits. However, the CC1IF
bit is set when CNT reaches the ARR value, when the compare value is greater than the auto-
reload value (CCR1>ARR).
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 TIM1_CCR1L
register.
0: No input capture has occurred
1: The counter value has been captured in the TIM1_CCR1 register (an edge has been detected on
IC1 which matches the selected polarity).

Table of Contents

Other manuals for ST STM8S

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM8S and is the answer not in the manual?

ST STM8S Specifications

General IconGeneral
BrandST
ModelSTM8S
CategoryMicrocontrollers
LanguageEnglish

Related product manuals