Dear Peter,
I hope you can draw the required timing for the PWM0/1 and PWM2/3 pair so that we can design the timing based on the requirement. For your "two active clamp flyback converters", do you need the complementary signal or you just need PWM0 and PWM2 signal which should have 180 degree shift in order to distribute the energy on balance? Because in some case, it is possible that the PWM signal is high in dead time, we should avoid such case.
If you need complementary signal, it is a bit complicated, but it is feasible. In the case, you can use the Asymmetric PWM Output, set the ICC0/ICC1 bits as 11, while set the SWP23 in PWM_CCTRL as 1, which will swap the PWM2 and PWM3 signals. For example, if the duty cycle of both PWM0/PWM2 are less than 50, you can set in the follwoing:
PWMCNFG=0x00; //complementary mode
PWMICCTRL=0x03; //phase shift mode
PWMCCTRL|=0x02; //set the SWAP23 so that PWM0 and PWM2 phase shift 180 degree
//set the duty cycle of PWM0 and PWM2 less than 50%
PWMCMOD=1000;
PWMVAL0=(duty cycle *1000);
PWMCAL1=0;
PWMVAL2=1000;
PWMVAL3=(50%-duty cycle)*1000;
If the duty cycle is greater than 50% as you expected, you can set as following:
PWMCNFG=0x00; //complementary mode
PWMICCTRL=0x03; //phase shift mode
PWMCCTRL|=0x02; //set the SWAP23 so that PWM0 and PWM2 phase shift 180 degree
//set the duty cycle of PWM0 and PWM2 less than 50%
PWMCMOD=1000;
PWMVAL0=1000;
PWMCAL1=1000*(duty cycle -50%);
PWMVAL2=1000*(duty cycle-50%);
PWMVAL3=0;
Pls have a try.
If you do not need the complementary signal for example PWM1/PWM3, it is easy, clear the SWAP23, but set the CINV2 bit, then compute the VAL0/VAL1/VAL2/VAL3 value, the theory is the same.
Hope it can help you
BR
Xiangjun Rong