SPRUJ53B April 2024 – September 2024 TMS320F28P550SJ , TMS320F28P559SJ-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 20-3). This multiplexer can select a variety of inputs detailed in Table 20-1 by configuring ECCTL0.INPUTSEL.
ECCTL0.INPUTSEL | eCAP Input |
---|---|
0 | INPUTXBAR1 |
1 | INPUTXBAR2 |
2 | INPUTXBAR3 |
3 | INPUTXBAR4 |
4 | INPUTXBAR5 |
5 | INPUTXBAR6 |
6 | INPUTXBAR7 |
7 | INPUTXBAR8 |
8 | INPUTXBAR9 |
9 | INPUTXBAR10 |
10 | INPUTXBAR11 |
11 | INPUTXBAR12 |
12 | INPUTXBAR13 |
13 | INPUTXBAR14 |
14 | INPUTXBAR15 |
15 | INPUTXBAR16 |
16 | ECAP1 - CLB1_OUT14 ECAP2 - CLB2_OUT14 |
17 | ECAP1 - CLB1_OUT15 ECAP2 - CLB2_OUT15 |
18 | ECAP1 - CLB2_OUT14 ECAP2 - CLB1_OUT14 |
19 | ECAP1 - CLB2_OUT15 ECAP2 - CLB1_OUT15 |
20-23 | Reserved |
24 | OUTPUTXBAR1 |
25 | OUTPUTXBAR2 |
26 | OUTPUTXBAR3 |
27 | OUTPUTXBAR4 |
28 | OUTPUTXBAR5 |
29 | OUTPUTXBAR6 |
30 | OUTPUTXBAR7 |
31 | OUTPUTXBAR8 |
32-35 | Reserved |
36 | ADCCEVT1 |
37 | ADCCEVT2 |
38 | ADCCEVT3 |
39 | ADCCEVT4 |
40 | ADCBEVT1 |
41 | ADCBEVT2 |
42 | ADCBEVT3 |
43 | ADCBEVT4 |
44 | ADCAEVT1 |
45 | ADCAEVT2 |
46 | ADCAEVT3 |
47 | ADCAEVT4 |
48 | FSIRXA_MEASURE |
49 | FSIRXA_MEASURE_RISE |
50 | FSIRXA_MEASURE_FALL |
51 | ADCEEVT1 |
52 | ADCEEVT2 |
53 | ADCEEVT3 |
54 | ADCEEVT4 |
55 | ADCDEVT1 |
56 | ADCDEVT2 |
57 | ADCDEVT3 |
58 | ADCDEVT4 |
59-95 | Reserved |
96 | CMPSS1_CTRIPL |
97 | CMPSS2_CTRIPL |
98 | CMPSS3_CTRIPL |
99 | CMPSS4_CTRIPL |
100-107 | Reserved |
108 | CMPSS1_CTRIPH |
109 | CMPSS2_CTRIPH |
110 | CMPSS3_CTRIPH |
111 | CMPSS4_CTRIPH |
112-114 | Reserved |
115 | GPIO8 |
116 | GPIO9 |
117 | GPIO22 |
118 | GPIO23 |
119-119 | Reserved |
120 | CMPSS1_CTRIPH_OR_CTRIPL |
121 | CMPSS2_CTRIPH_OR_CTRIPL |
122 | CMPSS3_CTRIPH_OR_CTRIPL |
123 | CMPSS4_CTRIPH_OR_CTRIPL |
124-125 | Reserved |
126 | ECAP1 - EPG1_DATAOUT53 ECAP2 - EPG1_DATAOUT54 |
127 | ECAP1 - INPUTXBAR7 ECAP2 - INPUTXBAR8 |
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.