[[ファームウェア関数一覧>ファームウェア関数一覧#d5c56b4f]] *TIM_SelectOutputTrigger [#sc97e50b] #contents **ヘッダ宣言 [#s62d397c] **関数プロトタイプ [#x1a6b7d5] void TIM_SelectOutputTrigger(TIM_TypeDef* TIMx, uint16_t TIM_TRGOSource) **動作 [#h96aeba6] -タイマのトリガ・出力モードの選択をします。 **引数 [#xbdde195] -TIMx&br; タイマ周辺回路をTIM1~TIM8から指定します。&br; &br; -TIM_TRGOSource&br; トリガ・出力モードのソースを以下のマクロから選択します。&br; TIM6とTIM7はTIM_TRGOSource_Reset,TIM_TRGOSource_Enable又はTIM_TRGOSource_Update のみをトリガ出力に出来ます。&br; #include(Macro/TIM_TRGOSource,notitle) &br; |CENTER:TIM_TRGOSource|CENTER:説明|h |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, &br;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).| &br; **出力値 [#lee0b797] -無し **戻り値 [#u265b0c6] -無し **呼び出し関数 [#r2feeecd] -無し **サンプル [#j1f3b3b4] /* Selects the update event as TRGO for TIM1 */ TIM_SelectOutputTrigger(TIM1, TIM_TRGOSource_Update); **参照 [#n5afd92c] -STMマイコン徹底入門 P. -STMマイコン徹底入門 P.206