SPRUI30H November 2015 – May 2024 DRA745 , DRA746 , DRA750 , DRA756
Table 24-336 lists all the transmit event flags. Table 24-337 lists all the Receive event flags. Source of each of these TX/RX events can be a TX/RX channel from any McASPi serializer configured as transmitter or receiver respectivly.
Event Mask(2) | Event Flag | Map to (1) | Description |
---|---|---|---|
MCASP_EVTCTLX[0] XUNDRN | MCASP_TXSTAT[0] XUNDRN | MCASPi_IRQ_AXEVT | Transmit buffer underrun |
MCASP_EVTCTLX[1] XSYNCERR | MCASP_TXSTAT[1] XSYNCERR | MCASPi_IRQ_AXEVT | Unexpected transmit frame sync |
MCASP_EVTCTLX[2] XCKFAIL | MCASP_TXSTAT[2] XCKFAIL | MCASPi_IRQ_AXEVT | Transmit clock failure |
MCASP_EVTCTLX[3] XDMAERR | MCASP_TXSTAT[7] XDMAERR | MCASPi_IRQ_AXEVT | DATA port transmit error |
MCASP_EVTCTLX[4] XLAST | MCASP_TXSTAT[4] XLAST | MCASPi_IRQ_AXEVT | Transmit last slot interrupt |
MCASP_EVTCTLX[5] XDATA | MCASP_TXSTAT[5] XDATA | MCASPi_IRQ_AXEVT | Transmit data-ready interrupt |
MCASP_EVTCTLX[7] XSTAFRM | MCASP_TXSTAT[6] XSTAFRM | MCASPi_IRQ_AXEVT | Transmit start of frame interrupt |
n.a. | MCASP_TXSTAT[8] XERR | n.a. | OR-event of all Tx-error events: (XDMAERR | XCKFAIL | XUNDRN | XSYNCERR ). It is cleared ONLY when all error flags are cleared |
n.a. | MCASP_TXSTAT[3] XTDMSLOT | n.a. | Qualifies the current TDM slot as an odd or an even slot. |
Event Mask(2) | Event Flag | Map to(1) | Description |
---|---|---|---|
MCASP_EVTCTLR[0] ROVRN | MCASP_RXSTAT[0] ROVRN | MCASPi_IRQ_AREVT | Receive buffer overrun |
MCASP_EVTCTLR[1] RSYNCERR | MCASP_RXSTAT[1] RSYNCERR | MCASPi_IRQ_AREVT | Unexpected receive frame sync |
MCASP_EVTCTLR[2] RCKFAIL | MCASP_RXSTAT[2] RCKFAIL | MCASPi_IRQ_AREVT | Receive clock failure |
MCASP_EVTCTLR[3] RDMAERR | MCASP_RXSTAT[7] RDMAERR | MCASPi_IRQ_AREVT | DATA port receive error |
MCASP_EVTCTLR[4] RLAST | MCASP_RXSTAT[4] RLAST | MCASPi_IRQ_AREVT | Receive last slot |
MCASP_EVTCTLR[5] RDATA | MCASP_RXSTAT[5] RDATA | MCASPi_IRQ_AREVT | Receive data-ready |
MCASP_EVTCTLR[7] RSTAFRM | MCASP_RXSTAT[6] RSTAFRM | MCASPi_IRQ_AREVT | Receive start of frame |
n.a. | MCASP_RXSTAT[8] RERR | n.a. | OR-event of all Rx-error events: (RDMAERR | RCKFAIL | ROVRN | RSYNCERR ). RERR event is cleared once all error flags are cleared. |
n.a. | MCASP_RXSTAT[3] RTDMSLOT | n.a. | Qualifies the current TDM slot as an odd or an even slot. |
Software has to read the MCASP_TXSTAT/MCASP_RXSTAT register to determine which event occurs at a global level for McASP Tx/Rx logic. In addition user software has to scan the XRDY/RRDY read-only flags in the MCASP_XRSRCTLn registers to determine which active serializer is the actual source of the event.
A Tx interrupt line (MCASPi_IRQ_AXEVT) is asserted (active high) when one of the MCASP_TXSTAT notified events occurs, provided that it is enabled in its corresponding MCASP_EVTCTLX bit. Similarly, a Rx interrupt line (MCASPi_IRQ_AREVT) is asserted (active high) when one of MCASP_RXSTAT notified events occurs, provided that it is enabled in its corresponding MCASP_EVTCTLR bit. See also Section 24.6.4.12.4, Multiple Interrupts and the Section 24.6.4.10.1, Data Ready Status and Event/Interrupt Generation.