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:
- in 20KHz PWM case, the current can be raised up to 3.5A RMS and can be hold for 3 to 4 minutes
- 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;
}
}