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.
What exactly do you want to invert in that signal? A PWM signal is basically the same as any inversion I could think of, so why bother inverting?
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;