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/TMS320F28069F: ePWM signals routed wrong on PCB, software solution?

Part Number: TMS320F28069F

Tool/software: Code Composer Studio

Hi!

I made a mistake in my PCB layout and for some reason routed the ePWM signals for one phase leg in my inverter circuit wrong. EPWM6A is now connected to the gate driver pin for input voltage B and EPWM6B to input voltage A.. 

I was hoping to make up for this misstake somehow on the software part. For example is there a way to make the output of GPIO10 the output of GPIO11? Or force the signals to be high instead of low and vice versa? I am using up-down count mode and active high complementary in the ePWM module.

Best regards,

Adam

  • Adam,

    each PWM output usually has a few different GPIOs that it can be connected to. GPIO 11 does not have the ability to output ePWM6A.

    If you simply want to swap the behavior of the ePWMxA and ePWMxB that can be done in the Dead-Band submodule. Try using Active Low Complementary and see if that would work for your needs. You may need to invert some logic in your code.

    Regards,
    Cody

  • Hi Cody,

    I think I solved it. I changed

    EPwm6Regs.AQCTLA.bit.CAU = AQ_SET;

    EPwm6Regs.AQCTLA.bit.CAD = AQ_CLEAR;

    to

    EPwm6Regs.AQCTLA.bit.CAU = AQ_CLEAR;

    EPwm6Regs.AQCTLA.bit.CAD = AQ_SET;

    and now the signals acts as I want to! 

  • Great to hear, yeah there are a lot of was to invert the signals in the ePWM module, luckily your mistake was a ePWMxA and ePWMxB swap, it would have been more difficult if it hadnt been a A/B pair!

    Regadrs,
    Cody