NUCLEO-G474RE pwm issue
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-11-05 7: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
Labels:
- Labels:
-
STM32G4 Series
-
TIM
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-05-27 7: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
