Other Parts Discussed in Thread: C2000WARE
The code in hv1phdcac_board.c at lines 596-615 (in setupBoardProtection()) configures TRIP5 to trip PWM1B and PWM2B:
EPWM_selectDigitalCompareTripInput(INV_PWM1_BASE, EPWM_DC_TRIP_TRIPIN5, EPWM_DC_TYPE_DCBH); EPWM_setTripZoneDigitalCompareEventCondition(INV_PWM1_BASE, EPWM_TZ_DC_OUTPUT_B1, EPWM_TZ_EVENT_DCXH_HIGH); EPWM_setDigitalCompareEventSource(INV_PWM1_BASE, EPWM_DC_MODULE_B, EPWM_DC_EVENT_1, EPWM_DC_EVENT_SOURCE_ORIG_SIGNAL); EPWM_setDigitalCompareEventSyncMode(INV_PWM1_BASE, EPWM_DC_MODULE_B, EPWM_DC_EVENT_1, EPWM_DC_EVENT_INPUT_SYNCED); EPWM_enableTripZoneSignals(INV_PWM1_BASE, EPWM_TZ_SIGNAL_DCBEVT1); EPWM_selectDigitalCompareTripInput(INV_PWM2_BASE, EPWM_DC_TRIP_TRIPIN5, EPWM_DC_TYPE_DCBH); EPWM_setTripZoneDigitalCompareEventCondition(INV_PWM2_BASE, EPWM_TZ_DC_OUTPUT_B1, EPWM_TZ_EVENT_DCXH_HIGH); EPWM_setDigitalCompareEventSource(INV_PWM2_BASE, EPWM_DC_MODULE_B, EPWM_DC_EVENT_1, EPWM_DC_EVENT_SOURCE_ORIG_SIGNAL); EPWM_setDigitalCompareEventSyncMode(INV_PWM2_BASE, EPWM_DC_MODULE_B, EPWM_DC_EVENT_1, EPWM_DC_EVENT_INPUT_SYNCED); EPWM_enableTripZoneSignals(INV_PWM2_BASE, EPWM_TZ_SIGNAL_DCBEVT1);
However, I couldn't find any code that sets up an input for TRIP5 (TRIP4 is set up to come from a CMPSS or SDFM filter comparator).
What is the source of TRIP5 (or should this code also use TRIP4)?