Skip to main content
Shreekant Tembhekar
Associate
January 23, 2019
Question

Complementary PWM at active low.

I have generated complementary PWM signal on STM32L496ZGtx. I used TIM1CH1 and TIM1CH1N. I am using one pulse mode so that every 1 second, I generate complementary signal. However one channel starts at active HIGH and another starts at active LOW. How should I start and end both the channels at active low? See attached image.

This topic has been closed for replies.

4 replies

waclawek.jan
Super User
January 23, 2019

After end of the burst, set TIM1_CCER.CC1NP, and before beginning clear it again.

JW

Shreekant Tembhekar
Associate
January 28, 2019

what is CC1NP?

waclawek.jan
Super User
January 28, 2019

0690X000006DFnPQAW.png

JW

S.Ma
Principal
January 23, 2019

1N means negated signal with possible slight time skew for driving power mos in 3 phase motot control.

Instead, if you need more control and flexibility, why not use 2 non inverted timer channels?