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.

TMS320F28069F: Doubt about PWM

Part Number: TMS320F28069F
Other Parts Discussed in Thread: TMS320F28069, DRV8353

Hello,

I'm working in a custom HW to implement a PMSM motor control based on Instaspin libraries, DRV8353 driver and TMS320F28069 micro. Unfortunaley there is an error in the board because the pwm signals to the High side mosfets have been routed to the low side signal and the pwm signals for low side PWM have been routed to the high side. This can probably be solved by the use of wrapping in the gate resistors next to the mosfet, but if possible I would like to avoid that. Is there any way to do that by Software? I think that Instaspin labs calculate just the period for the high side PWM and the applies the complementary to the low side PWM. Can the GPIO1 be modified to act like PWM_L instead of PWM_H? If not, is there any way to invert the PWM output so that the PWM is active low (The driver can manage active values for both high and low sides)?

Thank you in advance 

Borja

  • You might change the codes as the below for the AQCTLA register in the HAL_setupPwms() in hal.c.

    // setup the Action-Qualifier Output A Register (AQCTLA)
    PWM_setActionQual_CntUp_CmpA_PwmA(obj->pwmHandle[cnt],PWM_ActionQual_Clear);
    PWM_setActionQual_CntDown_CmpA_PwmA(obj->pwmHandle[cnt],PWM_ActionQual_Set);