Advanced-control timers (TIM1 and TIM8) specific features.
More...
Advanced-control timers (TIM1 and TIM8) specific features.
===============================================================================
Advanced-control timers (TIM1 and TIM8) specific features
===============================================================================
===================================================================
TIM Driver: how to use the Break feature
===================================================================
After configuring the Timer channel(s) in the appropriate Output Compare mode:
1. Fill the TIM_BDTRInitStruct with the desired parameters for the Timer
Break Polarity, dead time, Lock level, the OSSI/OSSR State and the
AOE(automatic output enable).
2. Call TIM_BDTRConfig(TIMx, &TIM_BDTRInitStruct) to configure the Timer
3. Enable the Main Output using TIM_CtrlPWMOutputs(TIM1, ENABLE)
4. Once the break even occurs, the Timer's output signals are put in reset
state or in a known state (according to the configuration made in
TIM_BDTRConfig() function).
Configures the Break feature, dead time, Lock level, OSSI/OSSR State and the AOE(automatic output enable).
- Parameters
-
TIMx,: | where x can be 1 or 8 to select the TIM |
TIM_BDTRInitStruct,: | pointer to a TIM_BDTRInitTypeDef structure that contains the BDTR Register configuration information for the TIM peripheral. |
- Return values
-
Fills each TIM_BDTRInitStruct member with its default value.
- Parameters
-
- Return values
-
void TIM_CCPreloadControl |
( |
TIM_TypeDef * |
TIMx, |
|
|
FunctionalState |
NewState |
|
) |
| |
Sets or Resets the TIM peripheral Capture Compare Preload Control bit.
- Parameters
-
TIMx,: | where x can be 1 or 8 to select the TIMx peripheral |
NewState,: | new state of the Capture Compare Preload Control bit This parameter can be: ENABLE or DISABLE. |
- Return values
-
void TIM_CtrlPWMOutputs |
( |
TIM_TypeDef * |
TIMx, |
|
|
FunctionalState |
NewState |
|
) |
| |
Enables or disables the TIM peripheral Main Outputs.
- Parameters
-
TIMx,: | where x can be 1 or 8 to select the TIMx peripheral. |
NewState,: | new state of the TIM peripheral Main Outputs. This parameter can be: ENABLE or DISABLE. |
- Return values
-
void TIM_SelectCOM |
( |
TIM_TypeDef * |
TIMx, |
|
|
FunctionalState |
NewState |
|
) |
| |
Selects the TIM peripheral Commutation event.
- Parameters
-
TIMx,: | where x can be 1 or 8 to select the TIMx peripheral |
NewState,: | new state of the Commutation event. This parameter can be: ENABLE or DISABLE. |
- Return values
-