2024-11-14
05:08 AM
- last edited on
2024-11-14
11:42 PM
by
Maxime_MARCHETT
On the stm32h750, I want to use 4 channels to implement pwm waves with different phases in the output comparison mode of tim8. Chanel's mode selection switches on match. The stages are 0% 25% 50% 75%. When the phase is zero (sConfigOC.Pulse = 1-1), the waveform does not flip, while other channels flip according to the set phase.
This post has been translated from Chinese to comply with the ST Community guidelines.
2024-11-15 07:53 AM
Hello @hao, welcome to ST community,
Could you share your TIM8 configuration?
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-11-16 01:30 AM
My configuration in tim8 is as follows
2024-11-21 02:40 AM
Hello @hao,
For channel1, the counter starts at 0 and immediately matches the compare value (0) -since it's configured as toggle on match- then the counter starts counting up (to reach 999), there is no further match within the same period, and the output remains in its toggled state
Is that clear?
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.