SPRUI30H November 2015 – May 2024 DRA745 , DRA746 , DRA750 , DRA756
Figure 24-136 shows the initial setup for interrupt-based transmission.
Table 24-357 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_EVTCTLX[5] XDATA | 0x1 |
Optional: Enable the transmit error event interrupts. | MCASP_EVTCTLX[2] XCKFAIL MCASP_EVTCTLX[1] XSYNCERR MCASP_EVTCTLX[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_EVTCTLX [7] XSTAFRM MCASP_EVTCTLX[4] XLAST | 0x1 0x1 |
IFwrite transfer is through the McASP DATA port (MCASP_TXFMT[3] XBUSEL is set to 0b0). | Software test condition (setting is done in step4 of the McASP Transmitters Global Initialization - see Table 24-339 ) | |
Enable the DATA port error based interrupt. | MCASP_EVTCTLX[3] XDMAERR | 0x1 |
ELSE | ||
Disable the DATA port error based interrupt. | MCASP_EVTCTLX[3] XDMAERR | 0x0 |
ENDIF | ||
DIT/TDM - Transmission Startup Procedure | See Figure 24-136. |
Table 24-358 summarizes the register call to initialize the McASP to transmit using interrupt events.
Register Name | Register Name |
---|---|
MCASP_GBLCTL | MCASP_TXSTAT |