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/TMS320F28377S: HRPWM with Deadband on both Outputs

Part Number: TMS320F28377S


Tool/software: Code Composer Studio

Hello,

is it possible to use HR on PWMA and PWMB in Deadband mode?

I dont want to invert one of the HR Signals, because I need the deadtime between the pulses. Actual only one PWM (PWM B) is working in high resolution. The other one only works in normal resolution.

I guess it isnt possible, like it is mentioned in different threads.

e2e.ti.com/.../631723

e2e.ti.com/.../347057

Best regards 

Dominik Moss

  • Hi Dominik,

    Yes, it is possible. The threads you referenced are for older devices which only supported one HR channel. Your device supports both A and B HR channels.

    The CMPAHR register is for the A channel output. The CMPBHR register is for the B channel output. They are not related to CMPA and CMPB. In retrospect, they could have been named a bit clearer.

    Regards,
    Kris
  • Hello Kris,

    thank you for the answer. I can use both with high resolution.

    But my problem is, that i want to use the deadband functionality. I like to have the signal EPWMB in HR and EPWMA generated from the deadband (if this isnt possible i also can switch A and B).
    In my setup EPWMA is not in HR. Is it possible to configure EPWMA, generate in addiction to the EPWMB with the deadband, in HR?

    I doesnt really understand the cooperation of the HR and the deadband. If EPWMB is in HR and EPWMB is the source of EPWMA in the deadband section, why is EPWMA not in HR?

    I'm working in up-down counter mode with TBPRD=250 and the EPWMA has steps of 0,4 %.( => normal resolution)

    // Deadband
    EPwm2Regs.DBCTL.bit.IN_MODE = 3;
    EPwm2Regs.DBCTL.bit.OUT_MODE = 3;
    EPwm2Regs.DBCTL.bit.POLSEL = 2;
    EPwm2Regs.DBCTL.bit.OUTSWAP = 3;
    EPwm2Regs.DBRED.bit.DBRED = 15;
    EPwm2Regs.DBFED.bit.DBFED = 15;


    // HR
    EALLOW;
    EPwm2Regs.HRCNFG.all =0x0;
    EPwm2Regs.HRCNFG.bit.HRLOAD=2;
    EPwm2Regs.HRCNFG.bit.AUTOCONV=0;
    EPwm2Regs.HRCNFG.bit.EDGMODEB=1;
    EPwm2Regs.HRCNFG.bit.CTLMODEB = HR_CMP;
    //EPwm2Regs.HRCNFG.bit.EDGMODE=1; // not used actual makes no difference
    //EPwm2Regs.HRCNFG.bit.CTLMODE = HR_CMP; // not used actual makes no difference
  • Hi Dominik,

    The output of the deadband submodule will output an A channel and a B channel waveforms. The source of these waveforms when input to the deadband isn't important- just whatever is generated by the deadband module.

    Each of those signals will then pass through CMPAHR (for Channel A) and CMPBHR (for Channel B). Channel A and Channel B here are the outputs of the deadband submodule.

    Regards,
    Kris