SPRUIV7B May 2022 – September 2023 AM620-Q1 , AM623 , AM625 , AM625-Q1 , AM625SIP
Figure 12-30 shows the initial setup for interrupt-based reception.
Table 12-32 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 Table 12-18 ) | |
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-30. |
These registers are for MCASP TDM- interrupt reception model: MCASP_XGBLCTL, MCASP_RSTAT.