Skip to main content
Visitor II
January 31, 2024
Question

PWM Generation Issue

  • January 31, 2024
  • 3 replies
  • 1191 views

Hi team,

Can you help for resolve the below PWM generation issue,

we are using STM32H7A3ZIT6 controller, in that for the PWM generation configured Advanced Timer 1 with the below configuration and we are getting the PWM wave like below pic. But we need exact square wave PWM. 

can you please help to resolve this issue, and can you suggest what kind of parameter we need to configure?

 

we configure presale value as 63:

M_Sukumar_4-1706698690517.png       M_Sukumar_0-1706698605036.png

 

we configure presale value as 1: 

M_Sukumar_5-1706698874523.png    M_Sukumar_6-1706698904203.png

Note :-

But we need set clock cycle a 20ms,

 

 

    This topic has been closed for replies.

    3 replies

    Super User
    January 31, 2024

    Are you sure your scope probes are properly compensated?

    https://resources.pcb.cadence.com/blog/what-is-oscilloscope-probe-compensation 

    https://www.rohde-schwarz.com/uk/products/test-and-measurement/essentials-test-equipment/digital-oscilloscopes/understanding-probe-compensation_254520.html

    https://www.youtube.com/watch?v=5IqqJVIHmN8 

     

    You'll also need to show your schematic - what is the external circuitry on the PWM output pin?

     

    BTW: Your scope must have a screenshot facility - that would give far clearer results than photographs!

    Super User
    January 31, 2024

    Your scope settings show the channel is AC coupled. Set it to DC coupled instead.

    TDK_0-1706710749846.png

    The PWM signal is most likely just fine.

    ST Employee
    February 6, 2024

    Hi @M_Sukumar 

     

    The forum moderator had marked your post as needing a little more investigation and direct support. An online support case has been created on your behalf, please stand by for just a moment and you will hear from us.

     

    Regards,

    Billy