Skip to main content
Tobe
Senior III
April 5, 2024
Question

Timer pwm complementary for BLDC

  • April 5, 2024
  • 1 reply
  • 1002 views

I trying to figure out, how i should set up the complementary channels to achieve the signals, shown in the picture.

If i would activate them (tim_oc1n), they would have a pwm, like the normal channel (just inverted). So i think it is only possible to switch them between off state run mode ( OSSR - high or low) and normal pin configuration (high or low). But doing this, i can just use the normal pin function anyway.

Did i miss something?

1 reply

Tobe
TobeAuthor
Senior III
April 6, 2024

I have now tried having the complementary outputs inactive, and changing the polarity. It does not do anything. I would have expected the inactive output to the the opposite level as if activated, but it just stays low.

The manual says when CCxNE = 0:  "output enabled with inactive state" and further "tim_ocxn=CCxNP". But when chaning the CCxNP (polarity) it does nothing at all....