EasyManua.ls Logo

ST STM32F31xx

ST STM32F31xx
584 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
Loading...
General-purpose timers (TIM)
UM1581
498/584
DocID023800 Rev 1
22.2.15.4 TIM_ClearFlag
Function Name
void TIM_ClearFlag ( TIM_TypeDef * TIMx, uint16_t
TIM_FLAG)
Function Description
Clears the TIMx's pending flags.
Parameters
TIMx : where x can be 1, 2, 3, 4, 6, 7, 8, 15, 16 or 17 to
select the TIM peripheral.
TIM_FLAG : specifies the flag bit to clear. This parameter
can be any combination of the following values:
TIM_FLAG_Update : TIM update Flag
TIM_FLAG_CC1 : TIM Capture Compare 1 Flag
TIM_FLAG_CC2 : TIM Capture Compare 2 Flag
TIM_FLAG_CC3 : TIM Capture Compare 3 Flag
TIM_FLAG_CC4 : TIM Capture Compare 4 Flag
TIM_FLAG_CC5 : TIM Capture Compare 5 Flag
TIM_FLAG_CC6 : TIM Capture Compare 6 Flag
TIM_FLAG_COM : TIM Commutation Flag
TIM_FLAG_Trigger : TIM Trigger Flag
TIM_FLAG_Break : TIM Break Flag
TIM_FLAG_CC1OF : TIM Capture Compare 1 over
capture Flag
TIM_FLAG_CC2OF : TIM Capture Compare 2 over
capture Flag
TIM_FLAG_CC3OF : TIM Capture Compare 3 over
capture Flag
TIM_FLAG_CC4OF : TIM Capture Compare 4 over
capture Flag
Return values
None.
Notes
TIM6 and TIM7 can have only one update flag.
TIM_FLAG_COM and TIM_FLAG_Break are used only with
TIM1 and TIM8.
22.2.15.5 TIM_GetITStatus
Function Name
ITStatus TIM_GetITStatus ( TIM_TypeDef * TIMx, uint16_t
TIM_IT)
Function Description
Checks whether the TIM interrupt has occurred or not.
Parameters
TIMx : where x can be 1, 2, 3, 4, 6, 7, 8, 15, 16 or 17 to
select the TIM peripheral.
TIM_IT : specifies the TIM interrupt source to check. This
parameter can be one of the following values:

Table of Contents

Related product manuals