Synchronize PWM on DUE

I have an Arduino DUE and I am trying to use it as a motor controller to do some very specific types of control. I am using Digital output channels 2-7 to actuate my FET bridge. I need to for example turn on channel 2 and 7 and have them come on at the same time with delays or lag and when the turn off to have the same response.

Does anyone know how to synchronize these channels together so that for any combination, I can have a pair come on and off at precisely the same time? Using analogWrite as-is does not give this desired response.


The DUE's complimentary PWM (PWMC) is suited for this. You'll also be able to set the dead time. I'm not sure if there's any library for this, so you'll need to review the datasheet for specifics.