SPRUIW9C October 2021 – March 2024 TMS320F280033 , TMS320F280034 , TMS320F280034-Q1 , TMS320F280036-Q1 , TMS320F280036C-Q1 , TMS320F280037 , TMS320F280037-Q1 , TMS320F280037C , TMS320F280037C-Q1 , TMS320F280038-Q1 , TMS320F280038C-Q1 , TMS320F280039 , TMS320F280039-Q1 , TMS320F280039C , TMS320F280039C-Q1
The Input X-BAR connects the device pins to the module as input. Any GPIO on the device can be configured as an input. The GPIO input qualification can be set to synchronous or asynchronous mode by setting the GPxQSELn register bits. Using synchronized inputs can help with noise immunity but affects the eCAP accuracy by ±2 cycles. The internal pull-ups can be configured in the GPyPUD register. Since the GPIO mode is used, the GPyINV register can invert the signals.
New to the Type 1 eCAP module, a 128:1 input multiplexer must also be configured (see Figure 21-3). This multiplexer can select a variety of inputs detailed in Table 21-1 by configuring ECCTL0.INPUTSEL.
Selection of ECAP Input | ECAP1 INDEX | ECAP2 INDEX | ECAP3 INDEX |
---|---|---|---|
INPUTXBAR1 | 0 | 0 | 0 |
INPUTXBAR2 | 1 | 1 | 1 |
INPUTXBAR3 | 2 | 2 | 2 |
INPUTXBAR4 | 3 | 3 | 3 |
INPUTXBAR5 | 4 | 4 | 4 |
INPUTXBAR6 | 5 | 5 | 5 |
INPUTXBAR7 | 6 | 6 | 6 |
INPUTXBAR8 | 7 | 7 | 7 |
INPUTXBAR9 | 8 | 8 | 8 |
INPUTXBAR10 | 9 | 9 | 9 |
INPUTXBAR11 | 10 | 10 | 10 |
INPUTXBAR12 | 11 | 11 | 11 |
INPUTXBAR13 | 12 | 12 | 12 |
INPUTXBAR14 | 13 | 13 | 13 |
INPUTXBAR15 | 14 | 14 | 14 |
INPUTXBAR16 | 15 | 15 | 15 |
CLB1_OUT14 | 16 | 18 | 16 |
CLB1_OUT15 | 17 | 19 | 17 |
CLB2_OUT14 | 18 | 16 | 18 |
CLB2_OUT15 | 19 | 17 | 19 |
CANA_INT0 | 20 | 20 | 20 |
Reserved | 21-23 | 21-23 | 21-23 |
OUTPUTXBAR1 | 24 | 24 | 24 |
OUTPUTXBAR2 | 25 | 25 | 25 |
OUTPUTXBAR3 | 26 | 26 | 26 |
OUTPUTXBAR4 | 27 | 27 | 27 |
OUTPUTXBAR5 | 28 | 28 | 28 |
OUTPUTXBAR6 | 29 | 29 | 29 |
OUTPUTXBAR7 | 30 | 30 | 30 |
OUTPUTXBAR8 | 31 | 31 | 31 |
Reserved | 32-35 | 32-35 | 32-35 |
ADCCEVT1 | 36 | 36 | 36 |
ADCCEVT2 | 37 | 37 | 37 |
ADCCEVT3 | 38 | 38 | 38 |
ADCCEVT4 | 39 | 39 | 39 |
ADCBEVT1 | 40 | 40 | 40 |
ADCBEVT2 | 41 | 41 | 41 |
ADCBEVT3 | 42 | 42 | 42 |
ADCBEVT4 | 43 | 43 | 43 |
ADCAEVT1 | 44 | 44 | 44 |
ADCAEVT2 | 45 | 45 | 45 |
ADCAEVT3 | 46 | 46 | 46 |
ADCAEVT4 | 47 | 47 | 47 |
FSIRXA_MEASURE | 48 | 48 | 48 |
FSIRXA_MEASURE_RISE | 49 | 49 | 49 |
FSIRXA_MEASURE_FALL | 50 | 50 | 50 |
Reserved | 51-59 | 51-59 | 51-59 |
SD2FLT1_CEVT2 | 60 | 60 | 60 |
SD2FLT2_CEVT2 | 61 | 61 | 61 |
SD2FLT3_CEVT2 | 62 | 62 | 62 |
SD2FLT4_CEVT2 | 63 | 63 | 63 |
SD1FLT1_CEVT2 | 64 | 64 | 64 |
SD1FLT2_CEVT2 | 65 | 65 | 65 |
SD1FLT3_CEVT2 | 66 | 66 | 66 |
SD1FLT4_CEVT2 | 67 | 67 | 67 |
SD2FLT1_COMPZ | 68 | 68 | 68 |
SD2FLT2_COMPZ | 69 | 69 | 69 |
SD2FLT3_COMPZ | 70 | 70 | 70 |
SD2FLT4_COMPZ | 71 | 71 | 71 |
SD1FLT1_COMPZ | 72 | 72 | 72 |
SD1FLT2_COMPZ | 73 | 73 | 73 |
SD1FLT3_COMPZ | 74 | 74 | 74 |
SD1FLT4_COMPZ | 75 | 75 | 75 |
SD2FLT1_CEVT1 | 76 | 76 | 76 |
SD2FLT2_CEVT1 | 77 | 77 | 77 |
SD2FLT3_CEVT1 | 78 | 78 | 78 |
SD2FLT4_CEVT1 | 79 | 79 | 79 |
SD1FLT1_CEVT1 | 80 | 80 | 80 |
SD1FLT2_CEVT1 | 81 | 81 | 81 |
SD1FLT3_CEVT1 | 82 | 82 | 82 |
SD1FLT4_CEVT1 | 83 | 83 | 83 |
SD2FLT1_CEVT1_OR_CEVT2 | 84 | 84 | 84 |
SD2FLT2_CEVT1_OR_CEVT2 | 85 | 85 | 85 |
SD2FLT3_CEVT1_OR_CEVT2 | 86 | 86 | 86 |
SD2FLT4_CEVT1_OR_CEVT2 | 87 | 87 | 87 |
SD1FLT1_CEVT1_OR_CEVT2 | 88 | 88 | 88 |
SD1FLT2_CEVT1_OR_CEVT2 | 89 | 89 | 89 |
SD1FLT3_CEVT1_OR_CEVT2 | 90 | 90 | 90 |
SD1FLT4_CEVT1_OR_CEVT2 | 91 | 91 | 91 |
Reserved | 92-95 | 92-95 | 92-95 |
CMPSS1_CTRIPL | 96 | 96 | 96 |
CMPSS2_CTRIPL | 97 | 97 | 97 |
CMPSS3_CTRIPL | 98 | 98 | 98 |
CMPSS4_CTRIPL | 99 | 99 | 99 |
Reserved | 100-107 | 100-107 | 100-107 |
CMPSS1_CTRIPH | 108 | 108 | 108 |
CMPSS2_CTRIPH | 109 | 109 | 109 |
CMPSS3_CTRIPH | 110 | 110 | 110 |
CMPSS4_CTRIPH | 111 | 111 | 111 |
Reserved | 112-114 | 112-114 | 112-114 |
GPIO8 | 115 | 115 | 115 |
GPIO9 | 116 | 116 | 116 |
GPIO22 | 117 | 117 | 117 |
GPIO23 | 118 | 118 | 118 |
Reserved | 119 | 119 | 119 |
CMPSS1_CTRIPH_OR_CTRIPL | 120 | 120 | 120 |
CMPSS2_CTRIPH_OR_CTRIPL | 121 | 121 | 121 |
CMPSS3_CTRIPH_OR_CTRIPL | 122 | 122 | 122 |
CMPSS4_CTRIPH_OR_CTRIPL | 123 | 123 | 123 |
Reserved | 124-126 | 124-126 | 124-126 |
INPUTXBAR7 | 127 | Reserved | Reserved |
INPUTXBAR8 | Reserved | 127 | Reserved |
INPUTXBAR9 | Reserved | Reserved | 127 |
The Output X-BAR must be used to connect output signals to the OUTPUTXBARx output locations. The GPIO mux must then be configured to connect the OUTPUTXBARx lines to any of several IO pins with the GPIO mux. To avoid glitches on the pins, the GPyGMUX bits must be configured first (while keeping the corresponding GPyMUX bits at the default of zero), followed by writing the GPyMUX register to the desired value.
See the General-Purpose Input/Output (GPIO) chapter for more details on GPIO mux, GPIO settings, and XBAR configuration.