Skip to main content
BKarl
Associate II
September 26, 2018
Question

After stopping a PWM Output (HAL_TIM_PWM_Stop) the signal is slowly decreasing instead of switching instantly to low (0 Volt).

  • September 26, 2018
  • 2 replies
  • 935 views

..

    This topic has been closed for replies.

    2 replies

    waclawek.jan
    Super User
    September 26, 2018

    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

    quintanabarcia.pablo
    Associate II
    April 10, 2019

    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.