cancel
Showing results for 
Search instead for 
Did you mean: 

Inverting PWM signal

e d
Associate II
Posted on January 23, 2018 at 21:51

Is there a quick and clever way of inverting a PWM signal in software (I am using timer 2 of the Discovery Kit board/STM32L100)? Was looking for the complementary feature but I don't want a pair of PWMs, just the inverted of the original signal (top).

Thanks in advance!

0690X00000609TBQAY.png
11 REPLIES 11
Posted on January 24, 2018 at 22:00

The load on this signal is about 100 mW.

Do you mean milliwatts?

Can you please express it in terms of load resistance, and compare it to the datasheet pullup value? In other words, if the pullup can pull the load up, it's enough to switch it on even if  you still use CCxE=0 for PWM on.

JW

Posted on January 24, 2018 at 22:38

I see what you mean now. This looks nice! Takes a little bit manipulation but it might work. Thanks!