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