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.

LAUNCHXL-F280049C: DRV8317HEVM

Part Number: LAUNCHXL-F280049C
Other Parts Discussed in Thread: DRV8317HEVM, DRV8317

When I use DRV8317HEVM and LAUNCHXL-F280049C to control PMSM by is05_motor_id_coff, unexpected overcurrent occurs. the detail are as below:

  1. in 20KHz PWM case, the current can be raised up to 3.5A RMS and can be hold for 3 to 4 minutes
  2. in 30KHz or higher PWM case, the current can't be push to 3.5A RMS as software protection, and the higher the PWM frequency, the smaller the maximum current. I notice that the parameter “motorVars.faultNow.moduleOverCurrent ” is set to 1, which means the over current protection(OCP) is occurred in software, however ,the over current protection of DRV8317 does not happen , as the LED2 which indicates DRV8317’s fault is off, and does it means that the current can be raised up further for DRV8317?. is there method to shutdown the protection in software. motorVars.dacValH has been set to 4095, motorVars.dacValLhas been set to 1.

protection code as below:

{
uint16_t cmpssCnt;

for(cmpssCnt = 0; cmpssCnt < HAL_NUM_CMPSS_CURRENT; cmpssCnt++)
{
HAL_setCMPSSDACValueHigh(halHandle,
cmpssCnt, motorVars.dacValH);

HAL_setCMPSSDACValueLow(halHandle,
cmpssCnt, motorVars.dacValL);
}
}

if(HAL_getPwmEnableStatus(halHandle) == true)
{
if(HAL_getTripFaults(halHandle) != 0)
{
GPIO_writePin(59, 1); //turn off LED when overcurrent occurs
motorVars.faultNow.bit.moduleOverCurrent = 1;
}
}

  • Hi Zorn,

    The 3.5A RMS you're meaning is the motor phase current, correct? You must be getting higher phase currents when using 30KHz PWM instead of 20KHz, as the actual over-current (CMPSS) threshold wouldn't be changing.

    You cannot set CMPSS DAC threshold higher than 4095, as you know. You can try addressing this at the input to the CMPSS / ADC by changing the DRV8317 gains.

    Best,

    Kevin