SPRACY3 June 2021 F29H850TU , F29H859TU-Q1 , TMS320F280023C , TMS320F280025C , TMS320F280025C-Q1 , TMS320F280040C-Q1 , TMS320F280041C , TMS320F280041C-Q1 , TMS320F280048C-Q1 , TMS320F280049C , TMS320F280049C-Q1 , TMS320F28076 , TMS320F28379D , TMS320F28379D-Q1 , TMS320F28379S , TMS320F28386D , TMS320F28386D-Q1 , TMS320F28386S , TMS320F28386S-Q1 , TMS320F28388D , TMS320F28388S , TMS320F28P650DH , TMS320F28P650DK , TMS320F28P650SH , TMS320F28P650SK , TMS320F28P659DH-Q1 , TMS320F28P659DK-Q1 , TMS320F28P659SH-Q1
The example shown in Section 4 is the showcase for the trip signal from the GPIO, which refers to the output of the external comparator. Surely, the internal CMPSS can be used to trigger the trip signal. As for the normal operation for CBC protection, only the source of EPWM TRIP4 needs to be changed. For example, if using CMPSS1 high side comparator output for the trip source, the configurations of EPWM X-Bar should be changed as below.
// Configure CMPSS1_CTRIPH as EPWM X-BAR TRIP 4 source
XBAR_setEPWMMuxConfig(XBAR_TRIP4,XBAR_EPWM_MUX00_CMPSS1_CTRIPH);
XBAR_enableEPWMMux(XBAR_TRIP4, XBAR_MUX00);
Note that active low is needed for the CMPSS1_CTRIPH, so the output of comparator CMP1H is inverted during the initialization.
CMPSS_configHighComparator(CMPSS1_BASE, CMPSS_INSRC_DAC | CMPSS_INV_INVERTED);
Besides, the CLB X-BAR should reassign the output of CMP1H to AUXSIG0.
XBAR_setCLBMuxConfig(XBAR_AUXSIG0, XBAR_CLB_MUX00_CMPSS1_CTRIPH);
XBAR_enableCLBMux(XBAR_AUXSIG0, XBAR_MUX00);