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.

TMS320F28375D: Connecting EPWMs to CMPSS to trip for protection

Part Number: TMS320F28375D

I am using some TI FCL motor sample code that has the following lines:

Fullscreen
1
2
3
4
5
6
7
8
9
// Enable Muxes for ored input of CMPSS1H and 1L, mux for Mux0x
//cmpss1 - tripH or tripL
XBAR_setEPWMMuxConfig(XBAR_TRIP4, XBAR_EPWM_MUX00_CMPSS1_CTRIPH_OR_L);
//cmpss3 - tripH or tripL
XBAR_setEPWMMuxConfig(XBAR_TRIP4, XBAR_EPWM_MUX04_CMPSS3_CTRIPH_OR_L);
//cmpss6 - tripH or tripL
XBAR_setEPWMMuxConfig(XBAR_TRIP4, XBAR_EPWM_MUX10_CMPSS6_CTRIPH_OR_L);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

The motor is hooked to three phases on EPWM1, EPWM2, and EPWM3. For some reason CMPSS1, CMPSS3, and CMPSS6 were chosen to check for overcurrent.  My question is can any CMPSS be used for any EPWM unit?  For example, can I use CMPSS1, CMPSS2, and CMPSS3 or any other combination?

Regards,

Neil

  • I just figured it out.  The CMPSS register corresponds with the ADC input that is used to trigger overcurrent.  In this example, CMPSS3 connects with ADCINB3.  Found it in section 7 of the Datasheet.