4 years ago.

Inverting a PWM signal


I want to have 2 PWM outputs; one inverted from the other, preferably without any external hardware. I am using the NUCLEOF401RE board. Is there a way to do this just by using the inverted channel on the same timer? (I have tried this to no luck) If not, whats the best way to approach this?

The pictures below are from the MBED site.



Thanks for any advice,


1 Answer

4 years ago.

Your idea is correct but I'm not sure why "no luck". Can you post up your code so we can see how you enabled the "N" channel of the same PWM?