C28x-ePWM
Assign ePWM signals to GPIO pins.
The ePWM X-BAR brings signals to the ePWM modules. Specifically, the ePWM X-BAR is connected to the Digital Compare (DC) submodule of each ePWM module for actions such as tripzones and syncing. You can set the following parameters for ePWM:
- EPWM clock divider (EPWMCLKDIV)
Select the ePWM clock divider. This parameter is available only for F2807x, F2837x, F2838x, and F28P65x processors.
- Select the 'EPWM clock divider (EPWMCLKDIV)' option used for CPU1
Available only for CPU2 of dual C28x core processors. Its value must be the same as the value of the parameter EPWM clock divider (EPWMCLKDIV) selected in CPU1.
- TZx Input X-BAR
Indicates the trip-zone input X-BAR.
Note
This parameter appears only for specific processors.
- TZx pin assignment
Assign the trip-zone input x (TZx) to a GPIO pin.
Note
For F2807x, F2837x, F28004x, F280013x, F280015x, F2838x and F28P65x processors the
TZx pin assignment
is disabled.The TZ# pin assignments are available only for TI F280x processors.
- TRIP# MUX select
Select the MUX to map the signal to the MUX output.
Selecting Disable all will indicate that all MUXes are disabled and the TRIP X-BAR# is not configured.
This parameter appears only for specific processors.
- Select MUX input
Select the input to the MUX selected in
TRIP# MUX select
.Note
The F2807x, F2837x, F2838x, F28002x, F28004x, F28003x, F280013x, F280015x, F2838x and F28P65x processors support ePWM X-BAR. For more information, refer to TI Technical Reference Manual of there respective processors.
Select the input signals for the MUX which is sent to the ePWM module. You can select one signal per MUX. The input signal to the MUX varies based on the MUX selected and processor.
The following table lists the TRIP MUX select and Select MUX input for C28x processor F2838x. The row headers 0-3 represent the Select MUX input and column headers 0-31 represent the TRIP MUX select.
ePWM X-BAR Mux Configuration Table - F2838x
Select MUX INPUT 0 1 2 3 TRIP# MUX select 0 CMPSS1.CTRIPH CMPSS1.CTRIPH_OR_ CTRIPL ADCAEVT1 ECAP1.OUT 1 CMPSS1.CTRIPL INPUTXBAR1 CLB1_4.1 ADCCEVT1 2 CMPSS2.CTRIPH CMPSS2.CTRIPH_OR_ CTRIPL ADCAEVT2 ECAP2.OUT 3 CMPSS2.CTRIPL INPUTXBAR2 CLB1_5.1 ADCCEVT2 4 CMPSS3.CTRIPH CMPSS3.CTRIPH_OR_ CTRIPL ADCAEVT3 ECAP3.OUT 5 CMPSS3.CTRIPL INPUTXBAR3 CLB2_4.1 ADCCEVT3 6 CMPSS4.CTRIPH CMPSS4.CTRIPH_OR_ CTRIPL ADCAEVT4 ECAP4.OUT 7 CMPSS4.CTRIPL INPUTXBAR4 CLB2_5.1 ADCCEVT4 8 CMPSS5.CTRIPH CMPSS5.CTRIPH_OR_ CTRIPL ADCBEVT1 ECAP5.OUT 9 CMPSS5.CTRIPL INPUTXBAR5 CLB3_4.1 ADCDEVT1 10 CMPSS6.CTRIPH CMPSS6.CTRIPH_OR_ CTRIPL ADCBEVT2 ECAP6.OUT 11 CMPSS6.CTRIPL INPUTXBAR6 CLB3_5.1 ADCDEVT2 12 CMPSS7.CTRIPH CMPSS7.CTRIPH_OR_ CTRIPL ADCBEVT3 ECAP7.OUT 13 CMPSS7.CTRIPL ADCSOCA CLB4_4.1 ADCDEVT3 14 CMPSS8.CTRIPH CMPSS8.CTRIPH_OR_ CTRIPL ADCBEVT4 EXTSYNCOUT 15 CMPSS8.CTRIPL ADCSOCB CLB4_5.1 ADCDEVT4 16 SD1FLT1.COMPH SD1FLT1.COMPH_OR_ COMPL Reserved ERRORSTS.ERROR 17 SD1FLT1.COMPL INPUTXBAR7 CLB5_4.1 CPU1.CLA1HALT 18 SD1FLT2.COMPH SD1FLT2.COMPH_OR_ COMPL ECATSYNC0 19 SD1FLT2.COMPL INPUTXBAR8 CLB5_5.1 ECATSYNC1 20 SD1FLT3.COMPH SD1FLT3.COMPH_OR_ COMPL Reserved Reserved 21 SD1FLT3.COMPL INPUTXBAR9 CLB6_4.1 Reserved 22 SD1FLT4.COMPH SD1FLT4.COMPH_OR_ COMPL Reserved Reserved 23 SD1FLT4.COMPL INPUTXBAR10 CLB6_5.1 Reserved 24 SD2FLT1.COMPH SD2FLT1.COMPH_OR_ COMPL Reserved Reserved 25 SD2FLT1.COMPL INPUTXBAR11 MCANA.FEVT0 CLB7_4.1 26 SD2FLT2.COMPH SD2FLT2.COMPH_OR_ COMPL Reserved Reserved 27 SD2FLT2.COMPL INPUTXBAR12 MCANA.FEVT1 CLB7_5.1 28 SD2FLT3.COMPH SD2FLT3.COMPH_OR_ COMPL Reserved Reserved 29 SD2FLT3.COMPL INPUTXBAR13 MCANA.FEVT2 CLB8_4.1 30 SD2FLT4.COMPH SD2FLT4.COMPH_OR_ COMPL Reserved Reserved 31 SD2FLT4.COMPL INPUTXBAR14 Reserved CLB8_5.1 ePWM X-BAR Mux Configuration Table - F28004x
Select MUX INPUT 0 1 2 3 TRIP# MUX select 0 CMPSS1.CTRIPH CMPSS1.CTRIPH_OR_CTRIPL ADCAEVT1 ECAP1OUT 1 CMPSS1.CTRIPL INPUTXBAR1 CLB1_OUT4 ADCCEVT1 2 CMPSS2.CTRIPH CMPSS2.CTRIPH_OR_CTRIPL ADCAEVT2 ECAP2OUT 3 CMPSS2.CTRIPL INPUTXBAR2 CLB1_OUT5 ADCCEVT2 4 CMPSS3.CTRIPH CMPSS3.CTRIPH_OR_CTRIPL ADCAEVT3 ECAP3OUT 5 CMPSS3.CTRIPL INPUTXBAR3 CLB2_OUT4 ADCCEVT3 6 CMPSS4.CTRIPH CMPSS4.CTRIPH_OR_CTRIPL ADCAEVT4 ECAP4OUT 7 CMPSS4.CTRIPL INPUTXBAR4 CLB2_OUT5 ADCCEVT4 8 CMPSS5.CTRIPH CMPSS5.CTRIPH_OR_CTRIPL ADCBEVT1 ECAP5OUT 9 CMPSS5.CTRIPL INPUTXBAR5 CLB3_OUT4 Reserved 10 CMPSS6.CTRIPH CMPSS6.CTRIPH_OR_CTRIPL ADCBEVT2 ECAP6OUT 11 CMPSS6.CTRIPL INPUTXBAR6 CLB3_OUT5 Reserved 12 CMPSS7.CTRIPH CMPSS7.CTRIPH_OR_CTRIPL ADCBEVT3 ECAP7OUT 13 CMPSS7.CTRIPL ADCSOCAO CLB4_OUT4 Reserved 14 Reserved Reserved ADCBEVT4 EXTSYNCOUT 15 Reserved ADCSOCBO CLB4_OUT5 Reserved 16 SD1FLT1.COMPH SD1FLT1.COMPH_OR_COMPL Reserved Reserved 17 SD1FLT1.COMPL INPUT7 Reserved CLAHALT 18 SD1FLT2.COMPH SD1FLT2.COMPH_OR_COMPL Reserved Reserved 19 SD1FLT2.COMPL INPUT8 Reserved Reserved 20 SD1FLT3.COMPH SD1FLT3.COMPH_OR_COMPL Reserved Reserved 21 SD1FLT3.COMPL INPUT9 Reserved Reserved 22 SD1FLT4.COMPH SD1FLT4.COMPH_OR_COMPL Reserved Reserved 23 SD1FLT4.COMPL INPUT10 Reserved Reserved 24 Reserved Reserved Reserved Reserved 25 Reserved INPUT11 Reserved Reserved 26 Reserved Reserved Reserved Reserved 27 Reserved INPUT12 Reserved Reserved 28 Reserved Reserved Reserved Reserved 29 Reserved INPUT13 Reserved Reserved 30 Reserved Reserved Reserved Reserved 31 Reserved INPUT14 Reserved Reserved ePWM X-BAR MUX Configuration Table - F2807x and F2837x
Select MUX INPUT 0 1 2 3 TRIP# MUX select 0 CMPSS1.CTRIPH CMPSS1.CTRIPH_OR_CTRIPL ADCAEVT1 ECAP1OUT 1 CMPSS1.CTRIPL INPUTXBAR1 CLB1_OUT4 ADCCEVT1 2 CMPSS2.CTRIPH CMPSS2.CTRIPH_OR_CTRIPL ADCAEVT2 ECAP2OUT 3 CMPSS2.CTRIPL INPUTXBAR2 CLB1_OUT5 ADCCEVT2 4 CMPSS3.CTRIPH CMPSS3.CTRIPH_OR_CTRIPL ADCAEVT3 ECAP3OUT 5 CMPSS3.CTRIPL INPUTXBAR3 CLB2_OUT4 ADCCEVT3 6 CMPSS4.CTRIPH CMPSS4.CTRIPH_OR_CTRIPL ADCAEVT4 ECAP4OUT 7 CMPSS4.CTRIPL INPUTXBAR4 CLB2_OUT5 ADCCEVT4 8 CMPSS5.CTRIPH CMPSS5.CTRIPH_OR_CTRIPL ADCBEVT1 ECAP5OUT 9 CMPSS5.CTRIPL INPUTXBAR5 CLB3_OUT4 ADCDEVT1 10 CMPSS6.CTRIPH CMPSS6.CTRIPH_OR_CTRIPL ADCBEVT2 ECAP6OUT 11 CMPSS6.CTRIPL INPUTXBAR6 CLB3_OUT5 ADCDEVT2 12 CMPSS7.CTRIPH CMPSS7.CTRIPH_OR_CTRIPL ADCBEVT3 13 CMPSS7.CTRIPL ADCSOCAO CLB4_OUT4 ADCDEVT3 14 CMPSS8.CTRIPH CMPSS8.CTRIPH_OR_CTRIPL ADCBEVT4 EXTSYNCOUT 15 CMPSS8.CTRIPL ADCSOCBO CLB4_OUT5 ADCDEVT4 16 SD1FLT1.COMPH SD1FLT1.COMPH_OR_COMPL Reserved Reserved 17 SD1FLT1.COMPL Reserved Reserved Reserved 18 SD1FLT2.COMPH SD1FLT2.COMPH_OR_COMPL Reserved Reserved 19 SD1FLT2.COMPL Reserved Reserved Reserved 20 SD1FLT3.COMPH SD1FLT3.COMPH_OR_COMPL Reserved Reserved 21 SD1FLT3.COMPL Reserved Reserved Reserved 22 SD1FLT4.COMPH SD1FLT4.COMPH_OR_COMPL Reserved Reserved 23 SD1FLT4.COMPL Reserved Reserved Reserved 24 SD2FLT1.COMPH SD2FLT1.COMPH_OR_COMPL Reserved Reserved 25 SD2FLT1.COMPL Reserved Reserved Reserved 26 SD2FLT2.COMPH SD2FLT2.COMPH_OR_COMPL Reserved Reserved 27 SD2FLT2.COMPL Reserved Reserved Reserved 28 SD2FLT3.COMPH SD2FLT3.COMPH_OR_COMPL Reserved Reserved 29 SD2FLT3.COMPL Reserved Reserved Reserved 30 SD2FLT4.COMPH SD2FLT4.COMPH_OR_COMPL Reserved Reserved 31 SD2FLT4.COMPL Reserved Reserved Reserved Note
Ensure the selected MUX input peripheral is enabled.
- TRIP# MUX (MUX 0->31)
Indicates the input signal selected for each MUX. For example, XXXX1XXXXXXXXXXXXXXXXXXXXXXXXXX indicates that input signal 1 was selected for MUX 4. X indicates that the MUX is disabled and no signal from the MUX will be sent to the ePWM X-BAR output.
All the signals which are selected will be logically OR'd and sent to the TRIP# signal of ePWM.
This parameter appears only for specific processors.
- TRIP# MUX (MUX 32->63)
Indicates the input signal selected for each MUX. X indicates that the MUX is disabled and no signal from the MUX will be sent to the ePWM X-BAR output.
All the signals which are selected will be logically OR'd and sent to the TRIP# signal of ePWM.
Note
This parameter appears only for specific processors.
- RESET TRIP# MUX
Resets the signal selection for the MUX done so far.
Resets the TRIP# MUX (MUX 0->31) and Select MUX input inputs.
- Invert TRIP# output
Enable to invert the TRIP output signal to the ePWM.
- SYNCI Input X-BAR
Select the input X-BAR for SYNCI.
This parameter appears only for specific processors.
- SYNCI pin assignment
Indicates the GPIO pin for the ePWM external input.
For F2807x, F2837x, F28004x and F2838x processors the SYNCI pin assignment is disabled as this is configured directly through Input X-BAR.
- EXTSYNCOUT source selection
Indicates the external SYNCOUT source selection for the ePWM SYNCOUT and eCAP SYNCOUT.
Note
The default EXTSYNCOUT source selection value varies based on the processor selected.
For processors F2838x/F28003x/F28002x, EXTSYNCOUT option can be used to send synchronization output from eCAP in a model without ePWM blocks.
- ePWMxSYNCIN source selection
Indicates the EPWMxSYNCIN Source Select Register (synchronization input pulse) for the ePWM SYNCOUT and eCAP SYNCOUT. You can also set the SYNCIN to
Disabled
.Note
The default ePWMxSYNCIN source selection value varies based on the processor selected.
For processors F28004x/F2837xD/F2837xS/F2807x, EXTSYNCIN1 and EXTSYNCIN2 are mapped to Input X-BAR 5 and Input X-BAR 6 respectively.
- SYNCO pin assignment
Assign the ePWM external sync pulse output (SYNCO) to a GPIO pin.
Note
SYNCI and SYNCO pin assignments are available for TI F28044, TI F280x, TI Delfino F2833x, TI Delfino F2834x, TI Piccolo F2802x, TI Piccolo F2803x, TI Piccolo F2806 processors.
- PWM#x pin assignment
Assign the GPIO pin to the PWM#x module.
- GPTRIP#SEL pin assignment(GPIO0~63)
Assign the ePWM trip-zone input to a GPIO pin.
Note
The GPTRIP#SEL pin assignment is available only for TI Concerto F28M35x/F28M36x processors.
- PWM1SYNCI/ GPTRIP6SEL pin assignment
Assign the ePWM sync pulse input (SYNCI) to a GPIO pin.
Note
The PWM1SYNCI/GPTRIP#SEL pin assignments are available only for TI Concerto F28M35x/F28M36x processors.
- DCxHTRIPSEL (Enter Hex value between 0 and 0x6FFF) / DCBHTRIPSEL (Enter Hex value between 0 and 0x6FFF)
Assign the Digital Compare A high trip input to a GPIO pin.
Note
DCxHTRIPSel pin assignment is available only for TI Concerto F28M35x/F28M36x processors.
- DCxLTRIPSEL (Enter Hex value between 0 and 0x6FFF) / DCBLTRIPSEL (Enter Hex value between 0 and 0x6FFF)
Assign the Digital Compare A low trip input to a GPIO pin.
Note
The DCxLTRIPSEL pin assignment is available only for TI Concerto F28M35x/F28M36x processors.