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/LAUNCHXL-F28027F: Dead time

Part Number: LAUNCHXL-F28027F
Other Parts Discussed in Thread: DRV8301

Tool/software: Code Composer Studio

I'm migrating from a design in which dead time was generated by the DRV8301 gate driver to one which does not, hence I need to set up the instaspin labs so that the F28027F PWM outputs provide the required dead time.

How and where do I add the required declaration to the code?

  • Hello,
    I am writing to let you know that a C2000 team member has been assigned to this post. We will try our best to address your query. But since one of our sites is affected by bad weather, there may be a delay in response.

    Regards
    Baskaran
  • Refer to the pwm configuration in void HAL_setupPwms() in hal.c, you only need to change the value of HAL_PWM_DBRED_CNT and HAL_PWM_DBFED_CNT in hal.h based on the driver and FET specification. Besides, you need to set right active level based driver also, and change the configuration in HAL_setupPwms() if the active level is not high.

    // setup the Dead-Band Rising Edge Delay Register (DBRED)
    PWM_setDeadBandRisingEdgeDelay(obj->pwmHandle[cnt],HAL_PWM_DBRED_CNT);

    // setup the Dead-Band Falling Edge Delay Register (DBFED)
    PWM_setDeadBandFallingEdgeDelay(obj->pwmHandle[cnt],HAL_PWM_DBFED_CNT);