2019-11-05 07:18 PM
i am using NUCLEO-G474RE board, TIM1 to output PWM wave, it works fine ,i can see the pwm wave through scope, but when i use
HAL_TIM_PWM_Stop(&htim1, TIM_CHANNEL_3);
HAL_TIMEx_PWMN_Stop(&htim1, TIM_CHANNEL_3);
to stop PWM , there is a attenuated waveform in each PWM output, the board does not connect anything.
in my opinion , the pwm should be shut down immediately, why this happens
2021-05-27 07:18 AM
Hi CJi ,
The function HAL_TIM_PWM_Stop() set the GPIOs into input (high impedance) mode. Therefore you see the residual voltage on pins (discharging the pin).
Regards
Igor