SPRUI33H November 2015 – June 2024 TMS320F280040-Q1 , TMS320F280040C-Q1 , TMS320F280041 , TMS320F280041-Q1 , TMS320F280041C , TMS320F280041C-Q1 , TMS320F280045 , TMS320F280048-Q1 , TMS320F280048C-Q1 , TMS320F280049 , TMS320F280049-Q1 , TMS320F280049C , TMS320F280049C-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 19-3). This multiplexer can select a variety of inputs detailed in Table 19-1 by configuring ECCTL0.INPUTSEL.
Selection of ECAP Input | ECAP1 INDEX | ECAP2 INDEX | ECAP3 INDEX | ECAP4 INDEX | ECAP5 INDEX | ECAP6 INDEX | ECAP7 INDEX |
---|---|---|---|---|---|---|---|
INPUTXBAR1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
INPUTXBAR2 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
INPUTXBAR3 | 2 | 2 | 2 | 2 | 2 | 2 | 2 |
INPUTXBAR4 | 3 | 3 | 3 | 3 | 3 | 3 | 3 |
INPUTXBAR5 | 4 | 4 | 4 | 4 | 4 | 4 | 4 |
INPUTXBAR6 | 5 | 5 | 5 | 5 | 5 | 5 | 5 |
INPUTXBAR7 | 6 | 6 | 6 | 6 | 6 | 6 | 6 |
INPUTXBAR8 | 7 | 7 | 7 | 7 | 7 | 7 | 7 |
INPUTXBAR9 | 8 | 8 | 8 | 8 | 8 | 8 | 8 |
INPUTXBAR10 | 9 | 9 | 9 | 9 | 9 | 9 | 9 |
INPUTXBAR11 | 10 | 10 | 10 | 10 | 10 | 10 | 10 |
INPUTXBAR12 | 11 | 11 | 11 | 11 | 11 | 11 | 11 |
INPUTXBAR13 | 12 | 12 | 12 | 12 | 12 | 12 | 12 |
INPUTXBAR14 | 13 | 13 | 13 | 13 | 13 | 13 | 13 |
INPUTXBAR15 | 14 | 14 | 14 | 14 | 14 | 14 | 14 |
INPUTXBAR16 | 15 | 15 | 15 | 15 | 15 | 15 | 15 |
CLB1_OUT14 | 16 | 16 | Reserved | Reserved | Reserved | Reserved | Reserved |
CLB1_OUT15 | 17 | 17 | Reserved | Reserved | Reserved | Reserved | Reserved |
CLB2_OUT14 | 18 | 18 | 16 | 16 | 16 | Reserved | Reserved |
CLB2_OUT15 | 19 | 19 | 17 | 17 | 17 | Reserved | Reserved |
CLB3_OUT14 | Reserved | Reserved | Reserved | Reserved | Reserved | 16 | 16 |
CLB3_OUT15 | Reserved | Reserved | Reserved | Reserved | Reserved | 17 | 17 |
CLB4_OUT14 | Reserved | Reserved | Reserved | Reserved | Reserved | 18 | 18 |
CLB4_OUT15 | Reserved | Reserved | Reserved | Reserved | Reserved | 19 | 19 |
CANA_INT0 | 20 | 20 | 20 | 20 | 20 | 20 | 20 |
CANB_INT0 | 21 | 21 | 21 | 21 | 21 | 21 | 21 |
Reserved | 22 | 22 | 22 | 22 | 22 | 22 | 22 |
ECAP1_DELAY_CLK | 23 | Reserved | Reserved | Reserved | Reserved | Reserved | Reserved |
ECAP2_DELAY_CLK | Reserved | 23 | Reserved | Reserved | Reserved | Reserved | Reserved |
ECAP3_DELAY_CLK | Reserved | Reserved | 23 | Reserved | Reserved | Reserved | Reserved |
ECAP4_DELAY_CLK | Reserved | Reserved | Reserved | 23 | Reserved | Reserved | Reserved |
ECAP5_DELAY_CLK | Reserved | Reserved | Reserved | Reserved | 23 | Reserved | Reserved |
ECAP6_DELAY_CLK | Reserved | Reserved | Reserved | Reserved | Reserved | Reserved | 23 |
ECAP7_DELAY_CLK | Reserved | Reserved | Reserved | Reserved | Reserved | 23 | Reserved |
OUTPUTXBAR1 | 24 | 24 | 24 | 24 | 24 | 24 | 24 |
OUTPUTXBAR2 | 25 | 25 | 25 | 25 | 25 | 25 | 25 |
OUTPUTXBAR3 | 26 | 26 | 26 | 26 | 26 | 26 | 26 |
OUTPUTXBAR4 | 27 | 27 | 27 | 27 | 27 | 27 | 27 |
OUTPUTXBAR5 | 28 | 28 | 28 | 28 | 28 | 28 | 28 |
OUTPUTXBAR6 | 29 | 29 | 29 | 29 | 29 | 29 | 29 |
OUTPUTXBAR7 | 30 | 30 | 30 | 30 | 30 | 30 | 30 |
OUTPUTXBAR8 | 31 | 31 | 31 | 31 | 31 | 31 | 31 |
Reserved | 32-35 | 32-35 | 32-35 | 32-35 | 32-35 | 32-35 | 32-35 |
ADCCEVT1 | 36 | 36 | 36 | 36 | 36 | 36 | 36 |
ADCCEVT2 | 37 | 37 | 37 | 37 | 37 | 37 | 37 |
ADCCEVT3 | 38 | 38 | 38 | 38 | 38 | 38 | 38 |
ADCCEVT4 | 39 | 39 | 39 | 39 | 39 | 39 | 39 |
ADCBEVT1 | 40 | 40 | 40 | 40 | 40 | 40 | 40 |
ADCBEVT2 | 41 | 41 | 41 | 41 | 41 | 41 | 41 |
ADCBEVT3 | 42 | 42 | 42 | 42 | 42 | 42 | 42 |
ADCBEVT4 | 43 | 43 | 43 | 43 | 43 | 43 | 43 |
ADCAEVT1 | 44 | 44 | 44 | 44 | 44 | 44 | 44 |
ADCAEVT2 | 45 | 45 | 45 | 45 | 45 | 45 | 45 |
ADCAEVT3 | 46 | 46 | 46 | 46 | 46 | 46 | 46 |
ADCAEVT4 | 47 | 47 | 47 | 47 | 47 | 47 | 47 |
FSIRXA_MEASURE | 48 | 48 | 48 | 48 | 48 | 48 | 48 |
FSIRXA_MEASURE_RISE | 49 | 49 | 49 | 49 | 49 | 49 | 49 |
FSIRXA_MEASURE_FALL | 50 | 50 | 50 | 50 | 50 | 50 | 50 |
Reserved | 51-63 | 51-63 | 51-63 | 51-63 | 51-63 | 51-63 | 51-63 |
SD1FLT1_COMPL | 64 | 64 | 64 | 64 | 64 | 64 | 64 |
SD1FLT2_COMPL | 65 | 65 | 65 | 65 | 65 | 65 | 65 |
SD1FLT3_COMPL | 66 | 66 | 66 | 66 | 66 | 66 | 66 |
SD1FLT4_COMPL | 67 | 67 | 67 | 67 | 67 | 67 | 67 |
Reserved | 68-71 | 68-71 | 68-71 | 68-71 | 68-71 | 68-71 | 68-71 |
SD1FLT1_COMPZ | 72 | 72 | 72 | 72 | 72 | 72 | 72 |
SD1FLT2_COMPZ | 73 | 73 | 73 | 73 | 73 | 73 | 73 |
SD1FLT3_COMPZ | 74 | 74 | 74 | 74 | 74 | 74 | 74 |
SD1FLT4_COMPZ | 75 | 75 | 75 | 75 | 75 | 75 | 75 |
Reserved | 76-79 | 76-79 | 76-79 | 76-79 | 76-79 | 76-79 | 76-79 |
SD1FLT1_COMPH | 80 | 80 | 80 | 80 | 80 | 80 | 80 |
SD1FLT2_COMPH | 81 | 81 | 81 | 81 | 81 | 81 | 81 |
SD1FLT3_COMPH | 82 | 82 | 82 | 82 | 82 | 82 | 82 |
SD1FLT4_COMPH | 83 | 83 | 83 | 83 | 83 | 83 | 83 |
Reserved | 84-87 | 84-87 | 84-87 | 84-87 | 84-87 | 84-87 | 84-87 |
SD1FLT1_COMPH_OR_COMPL | 88 | 88 | 88 | 88 | 88 | 88 | 88 |
SD1FLT2_COMPH_OR_COMPL | 89 | 89 | 89 | 89 | 89 | 89 | 89 |
SD1FLT3_COMPH_OR_COMPL | 90 | 90 | 90 | 90 | 90 | 90 | 90 |
SD1FLT4_COMPH_OR_COMPL | 91 | 91 | 91 | 91 | 91 | 91 | 91 |
Reserved | 92-95 | 92-95 | 92-95 | 92-95 | 92-95 | 92-95 | 92-95 |
CMPSS1_CTRIPL | 96 | 96 | 96 | 96 | 96 | 96 | 96 |
CMPSS2_CTRIPL | 97 | 97 | 97 | 97 | 97 | 97 | 97 |
CMPSS3_CTRIPL | 98 | 98 | 98 | 98 | 98 | 98 | 98 |
CMPSS4_CTRIPL | 99 | 99 | 99 | 99 | 99 | 99 | 99 |
CMPSS5_CTRIPL | 100 | 100 | 100 | 100 | 100 | 100 | 100 |
CMPSS6_CTRIPL | 101 | 101 | 101 | 101 | 101 | 101 | 101 |
CMPS7_CTRIPL | 102 | 102 | 102 | 102 | 102 | 102 | 102 |
Reserved | 103-107 | 103-107 | 103-107 | 103-107 | 103-107 | 103-107 | 103-107 |
CMPSS1_CTRIPH | 108 | 108 | 108 | 108 | 108 | 108 | 108 |
CMPSS2_CTRIPH | 109 | 109 | 109 | 109 | 109 | 109 | 109 |
CMPSS3_CTRIPH | 110 | 110 | 110 | 110 | 110 | 110 | 110 |
CMPSS4_CTRIPH | 111 | 111 | 111 | 111 | 111 | 111 | 111 |
CMPSS5_CTRIPH | 112 | 112 | 112 | 112 | 112 | 112 | 112 |
CMPSS6_CTRIPH | 113 | 113 | 113 | 113 | 113 | 113 | 113 |
CMPSS7_CTRIPH | 114 | 114 | 114 | 114 | 114 | 114 | 114 |
Reserved | 115-119 | 115-119 | 115-119 | 115-119 | 115-119 | 115-119 | 115-119 |
CMPSS1_CTRIPH_OR_CTRIPL | 120 | 120 | 120 | 120 | 120 | 120 | 120 |
CMPSS2_CTRIPH_OR_CTRIPL | 121 | 121 | 121 | 121 | 121 | 121 | 121 |
CMPSS3_CTRIPH_OR_CTRIPL | 122 | 122 | 122 | 122 | 122 | 122 | 122 |
CMPSS4_CTRIPH_OR_CTRIPL | 123 | 123 | 123 | 123 | 123 | 123 | 123 |
CMPSS5_CTRIPH_OR_CTRIPL | 124 | 124 | 124 | 124 | 124 | 124 | 124 |
CMPSS6_CTRIPH_OR_CTRIPL | 125 | 125 | 125 | 125 | 125 | 125 | 125 |
CMPSS7_CTRIPH_OR_CTRIPL | 126 | 126 | 126 | 126 | 126 | 126 | 126 |
Reserved | 127 | 127 | 127 | 127 | 127 | 127 | 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.