10 years, 5 months ago.

Adjusting the phase of a waveform

Hi,

I'm trying to control the phase of a 12.8kHz square wave generated by the LCP1768. I was wondering what would be the best software method to adjust the phase of the output waveform

Thanks

1 Answer

10 years, 5 months ago.

Probably the best way is to use a PWM output in dual edge mode. Then you can control both the moment of the rising and falling edge. But the default library doesn't do that, so you will need to dive into the user manual.