SPRUIL1D May 2019 – December 2024 DRA829J , DRA829J-Q1 , DRA829V , DRA829V-Q1 , TDA4VM , TDA4VM-Q1
Figure 3-2 shows the initial setup for interrupt-based transmission.
Figure 12-514 Subsequence – DIT-/TDM- Transmission Startup ProcedureTable 12-521 shows the configuration of the MCASP using an interrupt method for DIT-/TDM- transmission.
| Step | Register/Bit Field/Programming Model | Value |
|---|---|---|
| Disable Tx DMA requests generation. | MCASP_XEVTCTL[0] XDATDMA | 0x1 |
| Enable the data ready event transmit interrupt. | MCASP_XINTCTL[5] XDATA | 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 (useful for DIT user data/ channel status next S/PDIF frame info update). | MCASP_XINTCTL[7] XSTAFRM MCASP_XINTCTL[4] XLAST | 0x1 0x1 |
| IFwrite transfer is through the MCASP DATA port (MCASP_XFMT[3] XBUSEL is set to 0b0). | Software test condition (setting is done in step4 of the MCASP Transmitters Global Initialization - see MCASP Transmitters Global Initialization for DIT-Mode Operation) | |
| Enable the DATA port error based interrupt. | MCASP_XINTCTL[3] XDMAERR | 0x1 |
| ELSE | ||
| Disable the DATA port error based interrupt. | MCASP_XINTCTL[3] XDMAERR | 0x0 |
| ENDIF | ||
| DIT/TDM - Transmission Startup Procedure | See Figure 12-514. |
These registers are for MCASP DIT-/TDM- transmission startup procedure: MCASP_GBLCTL, MCASP_XSTAT.