I have a center aligned PWM function on my application. I can tune duty cycle.
So my high level corresponds @ +VDD (3.3V) and my low level corresponds à VSS.
But, i would like that the high level correspond @+5.5V (provides by external alimentation of application) and my level @ GND.
Is it possible to configure the direction PWM port while cycle.
TMP1CH0 Port Direction= Input (High Impedance) while counter up
TMP1CH0 Port Direction= Output (GND provide by µC) while counter down.
I connect a pull up on this TPM1CH0 pin.
Thanks you for your help
David
If I understand what you are trying to do, it sounds like using a low-side switch would be more appropriate. You would use the PWM output to control the low-side switch.