SPRUIV7B May 2022 – September 2023 AM620-Q1 , AM623 , AM625 , AM625-Q1 , AM625SIP
Table 12-30 shows the configuration of the ↓ using the DMA method for transmission. Possible interrupt error event servicing is also considered. 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_XFMT[3] XBUSEL | 0x0 |
Enable the Tx DMA requests generation. | MCASP_XEVTCTL[0] XDATDMA | 0x0 |
Enable the Tx DMA error event, because of MCASP DATA port usage. | MCASP_XINTCTL[3] XDMAERR | 0x1 |
Optional: Enable the transmit error event interrupts. | MCASP_XINTCTL[2] XCKFAIL MCASP_XINTCTL[1] XSYNCERR MCASP_XINTCTL[0] XUNDRN | 0x1 0x1 0x1 |
Optional: Enable the start of frame interrupt. Optional: Enable the last slot data interrupt. | MCASP_XINTCTL[7] XSTAFRM MCASP_XINTCTL[4] XLAST | 0x1 0x1 |
Disable the data ready event transmit interrupt, as DMA is used to service this request. | MCASP_XINTCTL[5] XDATA | 0x0 |
DMA startup transmission procedure. This procedure is identical than the one shown in Figure 12-28. The only difference is that DMA automatically services all the XINT events raised by the MCASP, and no CPU data processing intervention is required. The CPU is involved only in error handling shown in Figure 12-31. | See Figure 12-28. |