SPRUI30H November 2015 – May 2024 DRA745 , DRA746 , DRA750 , DRA756
Table 24-364 shows the configuration of the McASP using the DMA method for reception. Possible interrupt error event servicing is also considered. Table 24-358 shows the initial setup for DMA - based transmission.
Because of the DATA port burst access capability with the DMA method, it is strongly recommended that DMA transfers are initiated through the McASP DATA port.
Step | Register/Bit Field/Programming Model | Value |
---|---|---|
Recommended: Select DATA port to access the transmit buffers. | MCASP_RXFMT[3] RBUSEL | 0x0 |
Enable the Rx DMA requests generation. | MCASP_REVTCTL[0] RDATDMA | 0x0 |
Enable the Rx DMA error event, because of McASP DATA port usage. | MCASP_EVTCTLR[3] RDMAERR | 0x1 |
Optional: Enable the receive error event interrupts. | MCASP_EVTCTLR2] RCKFAIL MCASP_EVTCTLR[1] RSYNCERR MCASP_EVTCTLR[0] ROVRN | 0x1 0x1 0x1 |
Optional: Enable the start of frame interrupt. Optional: Enable the last slot data interrupt. | MCASP_EVTCTLR [7] RSTAFRM MCASP_EVTCTLR[4] RLAST | 0x1 0x1 |
Disable the data ready event receive interrupt, as DMA is used to service this request. | MCASP_EVTCTLR[5] RDATA | 0x0 |
DMA startup reception procedure. This procedure is identical than the one shown in Figure 24-138. The only difference is that DMA automatically services all the AREVT events raised by the McASP, and no CPU data processing intervention is required. The CPU is involved only in error handling shown in Figure 24-140. | See Figure 24-138. |