Part Number: TMS320F280025
Tool/software:
Hello, expert:
During the process of using the MotorControl_SDK, when I read void HAL_setupMtrFaults(HAL_MTR_Handle handle), the following questions arose:
//enable DC TRIP combinational input EPWM_enableDigitalCompareTripCombinationInput(obj->pwmHandle[cnt], MTR1_DCTRIPIN, EPWM_DC_TYPE_DCAH); EPWM_enableDigitalCompareTripCombinationInput(obj->pwmHandle[cnt], MTR1_DCTRIPIN, EPWM_DC_TYPE_DCBH);
The above code enables the DC module, uses DCAH and DCBH, and is connected to the TRIP7 channel. However:
// Trigger event when DCAH is High EPWM_setTripZoneDigitalCompareEventCondition(obj->pwmHandle[cnt], EPWM_TZ_DC_OUTPUT_A1, EPWM_TZ_EVENT_DCXH_HIGH); // Trigger event when DCBH is High EPWM_setTripZoneDigitalCompareEventCondition(obj->pwmHandle[cnt], EPWM_TZ_DC_OUTPUT_B1, EPWM_TZ_EVENT_DCXL_HIGH);
Although the comment part of the above code shows that events are generated when DCAH and DCBH are set to High respectively, the macro definition used in the second function is indeed EPWM_TZ_EVENT_DCXL_HIGH. Is this a typo here?
