| Electronic Components Datasheet Search |
|
UM0097 Datasheet(PDF) 115 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0097 Datasheet(HTML) 115 Page - STMicroelectronics |
|
115 / 229 page ![]() UM0097 Peripheral firmware overview 115/229 TIM_OPModeConfig Example: This example illustrates how to configure the TIM3 one pulse mode to generate an external wave with a pulse length of 0xABC in terms of timer period. The pulse generation is activated by a rising edge on the input capture A pin. { ... TIM_OPModeConfig (TIM3, 0xABC, TIM_HIGH, TIM_LOW, TIM_RISING); ... } Function Name TIM_OPModeConfig Function Prototype void TIM_OPModeConfig (TIM_TypeDef *TIMx, u16 XpulseLength, TIM_Logic_Levels XLevel1, TIM_Logic_Levels XLevel2, TIM_Clock_Edges Xedge); Behavior Description This routine is used to configure the one pulse mode. Input Parameter 1 TIMx specifies the TIM to be configured. Refer to TIM values on page 103 for more details on the allowed values of this parameter. Input Parameter 2 XpulseLength: specifies the pulse length. Input Parameter 3 XLevel1: specifies the output level on the OCMPA pin during the pulse. Refer to Logic levels enumeration on page 105 for more details on the allowed values of this parameter. Input Parameter 4 XLevel2: specifies the output level on the OCMPB pin after the pulse. Refer to Logic levels enumeration on page 105 for more details on the allowed values of this parameter. Input Parameter 5 Xedge: specifies the edge to be detected by the input capture A pin. Refer to Clock edges enumeration on page 104 for more details on the allowed values of this parameter. – TIM_RISING: a rising edge will activate the one pulse mode – TIM_FALLING: a falling edge will activate the one pulse mode Output Parameter None Return Value None Required preconditions None Called Functions None |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |