SPRUII0F May 2019 – June 2024 TMS320F28384D , TMS320F28384D-Q1 , TMS320F28384S , TMS320F28384S-Q1 , TMS320F28386D , TMS320F28386D-Q1 , TMS320F28386S , TMS320F28386S-Q1 , TMS320F28388D , TMS320F28388S
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 24-3). This multiplexer can select a variety of inputs detailed in Table 24-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 | Reserved | Reserved | 16 | 16 | 16 | Reserved | Reserved |
CLB2_OUT15 | Reserved | Reserved | 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 |
CLB5_OUT14 | 18 | 18 | Reserved | Reserved | Reserved | Reserved | Reserved |
CLB5_OUT15 | 19 | 19 | Reserved | Reserved | Reserved | Reserved | Reserved |
CLB6_OUT14 | Reserved | Reserved | 18 | Reserved | Reserved | Reserved | Reserved |
CLB6_OUT15 | Reserved | Reserved | 19 | Reserved | Reserved | Reserved | Reserved |
CLB7_OUT14 | Reserved | Reserved | Reserved | 18 | Reserved | Reserved | Reserved |
CLB7_OUT15 | Reserved | Reserved | Reserved | 19 | Reserved | Reserved | Reserved |
CLB8_OUT14 | Reserved | Reserved | Reserved | Reserved | 18 | Reserved | Reserved |
CLB8_OUT15 | Reserved | Reserved | Reserved | Reserved | 19 | Reserved | Reserved |
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 |
ECAP6_DELAY_CLK | Reserved | Reserved | Reserved | Reserved | Reserved | Reserved | 23 |
ECAP7_DELAY_CLK | Reserved | Reserved | Reserved | Reserved | Reserved | 23 | Reserved |
Reserved | 23 | 23 | 23 | 23 | 23 | Reserved | 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 |
ADCDEVT1 | 32 | 32 | 32 | 32 | 32 | 32 | 32 |
ADCDEVT2 | 33 | 33 | 33 | 33 | 33 | 33 | 33 |
ADCDEVT3 | 34 | 34 | 34 | 34 | 34 | 34 | 34 |
ADCDEVT4 | 35 | 35 | 35 | 35 | 35 | 35 | 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 |
FSIRXB_MEASURE | 51 | 51 | 51 | 51 | 51 | 51 | 51 |
FSIRXB_MEASURE_RISE | 52 | 52 | 52 | 52 | 52 | 52 | 52 |
FSIRXB_MEASURE_FALL | 53 | 53 | 53 | 53 | 53 | 53 | 53 |
FSIRXC_MEASURE | 54 | 54 | 54 | 54 | 54 | 54 | 54 |
FSIRXC_MEASURE_RISE | 55 | 55 | 55 | 55 | 55 | 55 | 55 |
FSIRXC_MEASURE_FALL | 56 | 56 | 56 | 56 | 56 | 56 | 56 |
FSIRXD_MEASURE | 57 | 57 | 57 | 57 | 57 | 57 | 57 |
FSIRXD_MEASURE_RISE | 58 | 58 | 58 | 58 | 58 | 58 | 58 |
FSIRXD_MEASURE_FALL | 59 | 59 | 59 | 59 | 59 | 59 | 59 |
SD2FLT1_COMPL | 60 | 60 | 60 | 60 | 60 | 60 | 60 |
SD2FLT2_COMPL | 61 | 61 | 61 | 61 | 61 | 61 | 61 |
SD2FLT3_COMPL | 62 | 62 | 62 | 62 | 62 | 62 | 62 |
SD2FLT4_COMPL | 63 | 63 | 63 | 63 | 63 | 63 | 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 |
FSIRXE_MEASURE | 68 | 68 | 68 | 68 | 68 | 68 | 68 |
FSIRXE_MEASURE_RISE | 69 | 69 | 69 | 69 | 69 | 69 | 69 |
FSIRXE_MEASURE_FALL | 70 | 70 | 70 | 70 | 70 | 70 | 70 |
FSIRXF_MEASURE | 71 | 71 | 71 | 71 | 71 | 71 | 71 |
FSIRXF_MEASURE_RISE | 72 | 72 | 72 | 72 | 72 | 72 | 72 |
FSIRXF_MEASURE_FALL | 73 | 73 | 73 | 73 | 73 | 73 | 73 |
ECAT_SYNC0 | 74 | 74 | 74 | 74 | 74 | 74 | 74 |
ECAT_SYNC1 | 75 | 75 | 75 | 75 | 75 | 75 | 75 |
SD2FLT1_COMPH | 76 | 76 | 76 | 76 | 76 | 76 | 76 |
SD2FLT2_COMPH | 77 | 77 | 77 | 77 | 77 | 77 | 77 |
SD2FLT3_COMPH | 78 | 78 | 78 | 78 | 78 | 78 | 78 |
SD2FLT4_COMPH | 79 | 79 | 79 | 79 | 79 | 79 | 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 |
SD2FLT1_COMPH_OR_COMPL | 84 | 84 | 84 | 84 | 84 | 84 | 84 |
SD2FLT2_COMPH_OR_COMPL | 85 | 85 | 85 | 85 | 85 | 85 | 85 |
SD2FLT3_COMPH_OR_COMPL | 86 | 86 | 86 | 86 | 86 | 86 | 86 |
SD2FLT4_COMPH_OR_COMPL | 87 | 87 | 87 | 87 | 87 | 87 | 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 |
FSIRXG_MEASURE | 92 | 92 | 92 | 92 | 92 | 92 | 92 |
FSIRXG_MEASURE_RISE | 93 | 93 | 93 | 93 | 93 | 93 | 93 |
FSIRXG_MEASURE_FALL | 94 | 94 | 94 | 94 | 94 | 94 | 94 |
Reserved | 95 | 95 | 95 | 95 | 95 | 95 | 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 |
CMPSS7_CTRIPL | 102 | 102 | 102 | 102 | 102 | 102 | 102 |
FSIRXH_MEASURE | 103 | 103 | 103 | 103 | 103 | 103 | 103 |
FSIRXH_MEASURE_RISE | 104 | 104 | 104 | 104 | 104 | 104 | 104 |
FSIRXH_MEASURE_FALL | 105 | 105 | 105 | 105 | 105 | 105 | 105 |
Reserved | 106-107 | 106-107 | 106-107 | 106-107 | 106-107 | 106-107 | 106-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 |
GPIO8 | 115 | 115 | 115 | 115 | 115 | 115 | 115 |
GPIO9 | 116 | 116 | 116 | 116 | 116 | 116 | 116 |
GPIO22 | 117 | 117 | 117 | 117 | 117 | 117 | 117 |
GPIO23 | 118 | 118 | 118 | 118 | 118 | 118 | 118 |
Reserved | 119 | 119 | 119 | 119 | 119 | 119 | 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 |
INPUTXBAR7 | 127 | Reserved | Reserved | Reserved | Reserved | Reserved | Reserved |
INPUTXBAR8 | Reserved | 127 | Reserved | Reserved | Reserved | Reserved | Reserved |
INPUTXBAR9 | Reserved | Reserved | 127 | Reserved | Reserved | Reserved | Reserved |
INPUTXBAR10 | Reserved | Reserved | Reserved | 127 | Reserved | Reserved | Reserved |
INPUTXBAR11 | Reserved | Reserved | Reserved | Reserved | 127 | Reserved | Reserved |
INPUTXBAR12 | Reserved | Reserved | Reserved | Reserved | Reserved | 127 | Reserved |
INPUTXBAR13 | Reserved | Reserved | Reserved | Reserved | 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.