General-purpose timers (TIM)
when the trigger signal (TRGI) is high
ï€ TIM_SlaveMode_Trigger : The counter starts at a
rising edge of the trigger TRGI
ï€ TIM_SlaveMode_External1 : Rising edges of the
selected trigger (TRGI) clock the counter
ï€ TIM_SlaveMode_Combined_ResetTrigger : Rising
edge of the selected trigger input (TRGI) reinitializes the
counter, generates an update of the registers and starts
the counter.
22.2.17.5 TIM_SelectMasterSlaveMode
void TIM_SelectMasterSlaveMode ( TIM_TypeDef * TIMx,
uint16_t TIM_MasterSlaveMode)
Sets or Resets the TIMx Master/Slave Mode.
ï‚· TIMx : where x can be 1, 2, 3, 4, 8 or 15 to select the TIM
peripheral.
ï‚· TIM_MasterSlaveMode : specifies the Timer Master Slave
Mode. This parameter can be one of the following values:
ï€ TIM_MasterSlaveMode_Enable : synchronization
between the current timer and its slaves (through TRGO)
ï€ TIM_MasterSlaveMode_Disable : No action
22.2.17.6 TIM_ETRConfig
void TIM_ETRConfig ( TIM_TypeDef * TIMx, uint16_t
TIM_ExtTRGPrescaler, uint16_t TIM_ExtTRGPolarity, uint16_t
ExtTRGFilter)
Configures the TIMx External Trigger (ETR).
ï‚· TIMx : where x can be 1, 2, 3, 4 or 8 to select the TIM
peripheral.
ï‚· TIM_ExtTRGPrescaler : The external Trigger Prescaler.