ファームウェア関数一覧
TIM_CounterModeConfig †
ヘッダ宣言 †
関数プロトタイプ †
void TIM_CounterModeConfig(TIM_TypeDef* TIMx, uint16_t TIM_CounterMode)
動作 †
引数 †
- TIMx
使用するカウントモードの選択を設定するタイマ周辺回路をTIM1~TIM5,TIM8から指定します。
TIMx | 説明 |
TIM1 | タイマ1 |
TIM2 | タイマ2 |
TIM3 | タイマ3 |
TIM4 | タイマ4 |
TIM5 | タイマ5 |
TIM8 | タイマ8 |
- TIM_CounterMode
タイマのカウンタモードを以下のマクロから選択します。
TIM_CounterMode | 説明 |
TIM_Counter_Up | アップ・カウンタ・モード |
TIM_Counter_Down | ダウン・カウンタ・モード |
TIM_Counter_CenterAligned1 | CenterAligned Mode1 ダウン中のみキャプチャ・コンペア割り込みが発生する |
TIM_Counter_CenterAligned2 | CenterAligned Mode2 アップ中のみキャプチャ・コンペア割り込みが発生する |
TIM_Counter_CenterAligned3 | CenterAligned Mode3 アップ・ダウン共にキャプチャ・コンペア割り込みが発生する |
出力値 †
戻り値 †
場所 †
呼び出し関数 †
サンプル †
/* Selects the Center Aligned counter Mode 1 for the TIM1 */
TIM_CounterModeConfig(TIM1, TIM_Counter_CenterAligned1);
参照 †