If I have to do this
EPwm2Regs.CMPA.half.CMPA = (Uint16)(myValue * myValue2 / myValue 3); EPwm2Regs.CMPB = (Uint16)(myValue * myValue2 / myValue 3);
Is it ok to do this instead?
EPwm2Regs.CMPA.half.CMPA = (Uint16)(myValue * myValue2 / myValue 3); EPwm2Regs.CMPB = EPwm2Regs.CMPA.half.CMPA;
A and B are in shadow load mode. Will CMPB have the right value? Or will it have CMPA's old value?