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.

CCS/TMS320F28335: AQCSFRC and AQSFRC do not work

Part Number: TMS320F28335


Tool/software: Code Composer Studio

Hi,

I wanted to use AQCSFRC/AQSFRC to set the initial PWM(both epwmA and epwmB) to low before the interruption started working. Yet neither of them worked. I got a high level and a low level.

codes for AQCSFRC:

EPwm1Regs.AQCSFRC.all = 0x05;
EPwm2Regs.AQCSFRC.all = 0x05;
EPwm3Regs.AQCSFRC.all = 0x05;

codes for AQSFRC:

EPwm1Regs.AQSFRC.all = 0xED;
EPwm2Regs.AQSFRC.all = 0xED;
EPwm3Regs.AQSFRC.all = 0xED;

Should I configure other registers?

Thanks.

Keting

  • Keting,

    What other PWM sub-modules have you configured? Each of the modules work on the PWMA and PWMB channels sequentially.

    The Action Qualifier (AQ) takes effect first, so all of the other sub-modules could be forcing one of the signals high. I would look at the DeadBand (DB) and Trip-Zone(TZ) sub-modules first. The DB has the ability to create complimentary signals, and if you have it configured in this mode then using AQCSFRC will always force one channel high and one low. You can correct this by forcing both signals low in the TZ sub-module.

    Regards,
    Cody 

  • Hi Cody,

    It's the dead band. Thank you so much!

    Regards,

    Keting