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...
UM1581
General-purpose timers (TIM)
DocID023800 Rev 1
503/584
value between 0x0 and 0xF.
Return values
None.
Notes
None.
22.2.16.4 TIM_ETRClockMode1Config
Function Name
void TIM_ETRClockMode1Config ( TIM_TypeDef * TIMx,
uint16_t TIM_ExtTRGPrescaler, uint16_t TIM_ExtTRGPolarity,
uint16_t ExtTRGFilter)
Function Description
Configures the External clock Mode1.
Parameters
TIMx : where x can be 1, 2, 3, 4 or 8 to select the TIM
peripheral.
TIM_ExtTRGPrescaler : The external Trigger Prescaler.
This parameter can be one of the following values:
TIM_ExtTRGPSC_OFF : ETRP Prescaler OFF.
TIM_ExtTRGPSC_DIV2 : ETRP frequency divided by 2.
TIM_ExtTRGPSC_DIV4 : ETRP frequency divided by 4.
TIM_ExtTRGPSC_DIV8 : ETRP frequency divided by 8.
TIM_ExtTRGPolarity : The external Trigger Polarity. This
parameter can be one of the following values:
TIM_ExtTRGPolarity_Inverted : active low or falling
edge active.
TIM_ExtTRGPolarity_NonInverted : active high or
rising edge active.
ExtTRGFilter : External Trigger Filter. This parameter must
be a value between 0x00 and 0x0F
Return values
None.
Notes
None.
22.2.16.5 TIM_ETRClockMode2Config
Function Name
void TIM_ETRClockMode2Config ( TIM_TypeDef * TIMx,
uint16_t TIM_ExtTRGPrescaler, uint16_t TIM_ExtTRGPolarity,
uint16_t ExtTRGFilter)
Function Description
Configures the External clock Mode2.
Parameters
TIMx : where x can be 1, 2, 3, 4 or 8 to select the TIM

Table of Contents

Related product manuals