Hello, im working with a C167 µController, and i want to generate an inverted PWM output signal with the PWM modul. Does anyone know how its working? Thanks for your help.
The output of the PWM peripheral is exclusive or-ed with the corresponding bit in the port register. You can invert the signal by writing that bit to a 1. For example if you are using P7.0.
P7 |= 0x0001;