SPRUIX1B October 2022 – April 2024 TMS320F2800132 , TMS320F2800133 , TMS320F2800135 , TMS320F2800137
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 14-3). This multiplexer can select a variety of inputs detailed in Table 14-1 by configuring ECCTL0.INPUTSEL.
Selection of ECAP Input | ECAP1 INDEX | ECAP2 INDEX |
---|---|---|
INPUTXBAR1 | 0 | 0 |
INPUTXBAR2 | 1 | 1 |
INPUTXBAR3 | 2 | 2 |
INPUTXBAR4 | 3 | 3 |
INPUTXBAR5 | 4 | 4 |
INPUTXBAR6 | 5 | 5 |
INPUTXBAR7 | 6 | 6 |
INPUTXBAR8 | 7 | 7 |
INPUTXBAR9 | 8 | 8 |
INPUTXBAR10 | 9 | 9 |
INPUTXBAR11 | 10 | 10 |
INPUTXBAR12 | 11 | 11 |
INPUTXBAR13 | 12 | 12 |
INPUTXBAR14 | 13 | 13 |
INPUTXBAR15 | 14 | 14 |
INPUTXBAR16 | 15 | 15 |
Reserved | 16-19 | 16-19 |
CANA_INT0 | 20 | 20 |
Reserved | 21-23 | 21-23 |
OUTPUTXBAR1 | 24 | 24 |
OUTPUTXBAR2 | 25 | 25 |
OUTPUTXBAR3 | 26 | 26 |
OUTPUTXBAR4 | 27 | 27 |
OUTPUTXBAR5 | 28 | 28 |
OUTPUTXBAR6 | 29 | 29 |
OUTPUTXBAR7 | 30 | 30 |
OUTPUTXBAR8 | 31 | 31 |
Reserved | 32-35 | 32-35 |
ADCCEVT1 | 36 | 36 |
ADCCEVT2 | 37 | 37 |
ADCCEVT3 | 38 | 38 |
ADCCEVT4 | 39 | 39 |
Reserved | 40-43 | 40-43 |
ADCAEVT1 | 44 | 44 |
ADCAEVT2 | 45 | 45 |
ADCAEVT3 | 46 | 46 |
ADCAEVT4 | 47 | 47 |
Reserved | 48-95 | 48-95 |
CMPSS1_CTRIPL | 96 | 96 |
CMPSS2_CTRIPL | 97 | 97 |
CMPSS3_CTRIPL | 98 | 98 |
CMPSS4_CTRIPL | 99 | 99 |
Reserved | 100-107 | 100-107 |
CMPSS1_CTRIPH | 108 | 108 |
CMPSS2_CTRIPH | 109 | 109 |
CMPSS3_CTRIPH | 110 | 110 |
CMPSS4_CTRIPH | 111 | 111 |
Reserved | 112-114 | 112-114 |
GPIO8 | 115 | 115 |
GPIO9 | 116 | 116 |
GPIO22 | 117 | 117 |
GPIO23 | 118 | 118 |
Reserved | 119 | 119 |
CMPSS1_CTRIPH_OR_CTRIPL | 120 | 120 |
CMPSS2_CTRIPH_OR_CTRIPL | 121 | 121 |
CMPSS3_CTRIPH_OR_CTRIPL | 122 | 122 |
CMPSS4_CTRIPH_OR_CTRIPL | 123 | 123 |
Reserved | 124-126 | 124-126 |
INPUTXBAR7 | 127 | Reserved |
INPUTXBAR8 | Reserved | 127 |
INPUTXBAR9 | Reserved | Reserved |
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.