cancel
Showing results for 
Search instead for 
Did you mean: 

How I can invert the pwm pulse in (stm32h745ziQ-nucleo)?

Sm.2
Associate II

I am using the stm32h745ziq-nucleo board. I want to invert the pwm pulse .

could you please help me by sending the related code snippet to do this.

Thanks &Regards

sm

2 REPLIES 2
Simon.T
ST Employee

Hello,

To change the PWM polarity you need to put the CH Polarity as "Low" in the TIMER parameter settings.

BR,

Simon

Hi @Simon.T​ ,

Thanks for your Quick Reply. Its worked for me by changing the polarity.

In future In my hardware I may have 2 individual controllers Both may not be start at same time. How do I synchronize both the controllers. And How can I find the falling edge of one controller and gives the input to the other controller.

How can I modify the software code and What are the hardware connections need to be make.

Please help me out by saying the clear picture.. I f you send me one example with that .. that would be great.

Thank you.

T&R

sm.