SPRUI30H November 2015 – May 2024 DRA745 , DRA746 , DRA750 , DRA756
Figure 24-138 shows the initial setup for interrupt-based reception.
Table 24-362 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_REVTCTL[0] RDATDMA | 0x1 |
Enable the data ready event receive interrupt. | MCASP_EVTCTLR[5] RDATA | 0x1 |
Optional: Enable the receive error event interrupts. | MCASP_EVTCTLR[2] 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 |
IF read transfer is through the McASP DATA port (MCASP_RXFMT[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 24-345 ) | |
Enable the DATA port error based interrupt. | MCASP_EVTCTLR[3] RDMAERR | 0x1 |
ELSE | ||
Disable the DATA port error based interrupt. | MCASP_EVTCTLR[3] RDMAERR | 0x0 |
ENDIF | ||
TDM - Transmission Startup Procedure | See Figure 24-138. |
Table 24-363 summarizes the register call to initialize the McASP to transmit using interrupt events.
Register Name | Register Name |
---|---|
MCASP_GBLCTL | MCASP_RXSTAT |