void TIM_SelectOutputTrigger(TIM_TypeDef* TIMx, uint_t16 TIM_TRGOSource)
TIM_TRGOSource | 説明 |
TIM_TRGOSource_Reset | The UG bit in the TIM_EGR register is used as the trigger output(TRGO). |
TIM_TRGOSource_Enable | The Counter Enable CEN is used as the trigger output (TRGO). |
TIM_TRGOSource_Update | The update event is selected as the trigger output (TRGO). |
TIM_TRGOSource_OC1 | The trigger output sends a positive pulse when the CC1IF flag is to be set, as soon as a capture or compare match occurs (TRGO). |
TIM_TRGOSource_OC1Ref | OC1REF signal is used as the trigger output (TRGO). |
TIM_TRGOSource_OC2Ref | OC2REF signal is used as the trigger output (TRGO). |
TIM_TRGOSource_OC3Ref | OC3REF signal is used as the trigger output (TRGO). |
TIM_TRGOSource_OC4Ref | OC4REF signal is used as the trigger output (TRGO). |
/* Selects the update event as TRGO for TIM1 */ TIM_SelectOutputTrigger(TIM1, TIM_TRGOSource_Update);