Changing DACSOURCE from 0 to 1 to 0 to 1 to 0 to 1... does NOT update the RAMPMAXREF_ACTIVE registers from the RAMPMAXREF_SHDW registers. Is this a useful clue? I still want to try to understand how to use the ramp in the way it is intented. there is another mode of operation in this project where the Ramp would be useful for stabilizing when the unit hits a comparator current limit (other mode of operating from what I've been testing here). yes, PWMSYNCSEL is set for both PWM1 and 2. EPwm1Regs.HRPCTL.bit.PWMSYNCSEL = 1; // PWM SYNC generated at CTR = ZRO for synchronizing internal ramp EPwm2Regs.HRPCTL.bit.PWMSYNCSEL = 1; // PWM SYNC generated at CTR = ZRO for synchronizing internal ramp Is there anything else in the High Res PWM module that needs to be set for PWMSYNC to latch shadow to active for the ramp? will the following type of sync pulse work for latching the ramp shadow to active registers? // DACEVT1 generates DCAEVT1.sync pulse for PWM1 EPwm1Regs.DCACTL.bit.EVT1SYNCE=1; // DACEVT1 generates DCAEVT1.sync pulse for PWM1 EPwm2Regs.DCACTL.bit.EVT1SYNCE=1; thanks Greg
↧