After stopping a PWM Output (HAL_TIM_PWM_Stop) the signal is slowly decreasing instead of switching instantly to low (0 Volt).
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-09-26 4:55 AM
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-09-26 5:31 AM
That function probably disables the PWM through clearing TIMx_CCER.CCyE, which threestates the output.
Change mode from PWM to one of the Forced in repective TIMx_CCMRz.OCyM.
I don't Cube/HAL.
JW
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-04-10 4:20 AM
I know that if you put duty = 0 with the HAL function, the stop is immediate. I haven't tried any other method at all. It seems waclwek.jan is right and the output remains in three-state for a while.
