Skip to main content
Visitor II
November 14, 2024
Question

Output comparison pulse problem

  • November 14, 2024
  • 2 replies
  • 746 views

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.

S__101253122.jpg

    This topic has been closed for replies.

    2 replies

    ST Employee
    November 15, 2024

    Hello @hao, welcome to ST community, 

    Could you share your TIM8 configuration? 

    haoAuthor
    Visitor II
    November 16, 2024

    My configuration in tim8 is as follows

    messageImage_1731749127824.jpg

    messageImage_1731749180078.jpgmessageImage_1731749266167.jpg

    ST Employee
    November 21, 2024

    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?