SPRUHM8K December 2013 – May 2024 TMS320F28374D , TMS320F28375D , TMS320F28376D , TMS320F28377D , TMS320F28377D-EP , TMS320F28377D-Q1 , TMS320F28378D , TMS320F28379D , TMS320F28379D-Q1
Each DMA Channel can be configured to trigger by software and other peripheral triggers events. DMACHSRCSELx register can be used to configure DMA Trigger sources for each DMA channel. CHx.MODE.PERINTSEL register bit field can be set to channel number (CHx.MODE.PERINTSEL = x) as shown in Figure 5-3. Included in these DMA Trigger sources are five external interrupt signals that can be connected to most of the general-purpose input/output (GPIO) pins on the device. This adds significant flexibility to the event trigger capabilities. Upon receipt of a peripheral interrupt event signal, the DMA automatically sends a clear signal to the interrupt source so that subsequent interrupt events occur.
Regardless of the value of the MODE.CHx[PERINTSEL] bit field, software can always force a trigger by using the CONTROL.CHx[PERINTFRC] bit. Likewise, software can always clear a pending DMA trigger using the CONTROL.CHx[PERINTCLR] bit.
Once a particular peripheral trigger event sets a channel’s PERINTFLG bit, the bit remains pending until the priority logic of the state machine starts the burst transfer for that channel. Once the burst transfer starts, the flag is cleared. If a new peripheral trigger event is generated while a burst is in progress, the burst completes before responding to the new peripheral trigger event (after proper prioritization). If a third peripheral trigger event occurs before the pending event is serviced, an error flag is set in the CONTROL.CHx[OVRFLG] bit. If a peripheral trigger event occurs at the same time as the latched flag is being cleared, the trigger event has priority and the PERINTFLG remains set.
Figure 5-4 shows a diagram of the trigger select circuit.
Table 5-1 shows the peripheral trigger source options that are available for each channel.
Select Index | Trigger Source |
---|---|
0 | DMA_SOFTWARE_TRIGGER |
1 | ADCAINT1_DMA |
2 | ADCAINT2_DMA |
3 | ADCAINT3_DMA |
4 | ADCAINT4_DMA |
5 | ADCAEVT |
6 | ADCBINT1_DMA |
7 | ADCBINT2_DMA |
8 | ADCBINT3_DMA |
9 | ADCBINT4_DMA |
10 | ADCBEVT |
11 | ADCCINT1_DMA |
12 | ADCCINT2_DMA |
13 | ADCCINT3_DMA |
14 | ADCCINT4_DMA |
15 | ADCCEVT |
16 | ADCDINT1_DMA |
17 | ADCDINT2_DMA |
18 | ADCDINT3_DMA |
19 | ADCDINT4_DMA |
20 | ADCDEVT |
21-28 | Reserved |
29 | XINT1 |
30 | XINT2 |
31 | XINT3 |
32 | XINT4 |
33 | XINT5 |
34-35 | Reserved |
36 | EPWM1_SOCA |
37 | EPWM1_SOCB |
38 | EPWM2_SOCA |
39 | EPWM2_SOCB |
40 | EPWM3_SOCA |
41 | EPWM3_SOCB |
42 | EPWM4_SOCA |
43 | EPWM4_SOCB |
44 | EPWM5_SOCA |
45 | EPWM5_SOCB |
46 | EPWM6_SOCA |
47 | EPWM6_SOCB |
48 | EPWM7_SOCA |
49 | EPWM7_SOCB |
50 | EPWM8_SOCA |
51 | EPWM8_SOCB |
52 | EPWM9_SOCA |
53 | EPWM9_SOCB |
54 | EPWM10_SOCA |
55 | EPWM10_SOCB |
56 | EPWM11_SOCA |
57 | EPWM11_SOCB |
58 | EPWM12_SOCA |
59 | EPWM12_SOCB |
60-67 | Reserved |
68 | CPU_TINT0 |
69 | CPU_TINT1 |
70 | CPU_TINT2 |
71 | MCBSPA_XEVT |
72 | MCBSPA_REVT |
73 | MCBSPB_XEVT |
74 | MCBSPB_REVT |
75-94 | Reserved |
95 | SD1FLT1_DRINT |
96 | SD1FLT2_DRINT |
97 | SD1FLT3_DRINT |
98 | SD1FLT4_DRINT |
99 | SD2FLT1_DRINT |
100 | SD2FLT2_DRINT |
101 | SD2FLT3_DRINT |
102 | SD2FLT4_DRINT |
103-108 | Reserved |
109 | SPIA_TXDMA |
110 | SPIA_RXDMA |
111 | SPIB_TXDMA |
112 | SPIB_RXDMA |
113 | SPIC_TXDMA |
114 | SPIC_RXDMA |
115-126 | Reserved |
127 | CLB1_INT |
128 | CLB2_INT |
129 | CLB3_INT |
130 | CLB4_INT |
131-255 | Reserved |