This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28379D: Shadow Registers CMPA and TBPRD don´t work

Part Number: TMS320F28379D

Hello,

I´ve got a problem with the shadow registers in the ePWM Module. I´ve configured them, that CMPA-Register, TBPRD-Register and AQCTLA-Register are loaded on TBCTR=ZRO. I write them once every Period.

I observed the registers in debugging mode and noticed that the shadow registers aren´t used. The values are directly written to the active registers.

This is how I configured the shadow registers:

    EPwm2Regs.CMPCTL.bit.SHDWAMODE = CC_SHADOW;    // Load registers every ZERO
    EPwm2Regs.CMPCTL.bit.SHDWBMODE = CC_SHADOW;
    EPwm2Regs.TBCTL.bit.PRDLD = 0;
    EPwm2Regs.CMPCTL.bit.LOADAMODE = CC_CTR_ZERO;
    EPwm2Regs.CMPCTL.bit.LOADBMODE = CC_CTR_ZERO;
    EPwm2Regs.AQCTL.bit.SHDWAQAMODE = 1;
    EPwm2Regs.AQCTL.bit.LDAQAMODE = 0;
    EPwm2Regs.AQCTL.bit.LDAQASYNC = 0;

Usually the shadow registers should be used and loaded into the active registers on TBCTR=ZRO, right?

I hope you can help me with my problem.

Best Regards,

Jens