SPRUJ28E November 2021 – September 2024 AM68 , AM68A , TDA4AL-Q1 , TDA4VE-Q1 , TDA4VL-Q1
Figure 6-73 shows the initial setup for interrupt-based reception.
Table 12-319 shows the configuration of the MCASP using an interrupt method for TDM- reception.
Step | Register/Bit Field/Programming Model | Value |
---|---|---|
Disable Rx DMA requests generation. | MCASP_PIDTCTL[0] RDATDMA | 0x1 |
Enable the data ready event receive interrupt. | MCASP_RINTCTL[5] RDATA | 0x1 |
Optional: Enable the receive error event interrupts. | MCASP_RINTCTL[2] RCKFAIL MCASP_RINTCTL[1] RSYNCERR MCASP_RINTCTL[0] ROVRN | 0x1 0x1 0x1 |
Optional: Enable the start of frame interrupt. Optional: Enable the last slot data interrupt | MCASP_RINTCTL[7] RSTAFRM MCASP_RINTCTL[4] RLAST | 0x1 0x1 |
IF read transfer is through the MCASP DATA port (MCASP_RFMT[3] RBUSEL is set to 0b0). | Software test condition (setting is done in step4 of the MCASP Receivers Global Initialization for TDM-Mode Operation - see MCASP Receivers Global Initialization for TDM-Mode Operation) | |
Enable the DATA port error based interrupt. | MCASP_RINTCTL[3] RDMAERR | 0x1 |
ELSE | ||
Disable the DATA port error based interrupt. | MCASP_RINTCTL[3] RDMAERR | 0x0 |
ENDIF | ||
TDM - Transmission Startup Procedure | See Figure 12-284. |
These registers are for MCASP TDM- interrupt reception model: MCASP_XGBLCTL, MCASP_RSTAT.