SPRUIV7B May 2022 – September 2023 AM620-Q1 , AM623 , AM625 , AM625-Q1 , AM625SIP
Table 12-9 lists all the transmit event flags. Table 12-10 lists all the Receive event flags. Source of each of these TX/RX events can be a TX/RX channel from any MCASP serializer configured as transmitter or receiver respectively.
Event Mask(1) | Event Flag | Map to (1) | Description |
---|---|---|---|
MCASP_XINTCTL[0] XUNDRN | MCASP_XSTAT[0] XUNDRN | MCASP[0-2]_XMIT_INTR_PEND | Transmit buffer underrun |
MCASP_XINTCTL[1] XSYNCERR | MCASP_XSTAT[1] XSYNCERR | MCASP[0-2]_XMIT_INTR_PEND | Unexpected transmit frame sync |
MCASP_XINTCTL[2] XCKFAIL | MCASP_XSTAT[2] XCKFAIL | MCASP[0-2]_XMIT_INTR_PEND | Transmit clock failure |
MCASP_XINTCTL[3] XDMAERR | MCASP_XSTAT[7] XDMAERR | MCASP[0-2]_XMIT_INTR_PEND | DATA port transmit error |
MCASP_XINTCTL[4] XLAST | MCASP_XSTAT[4] XLAST | MCASP[0-2]_XMIT_INTR_PEND | Transmit last slot interrupt |
MCASP_XINTCTL[5] XDATA | MCASP_XSTAT[5] XDATA | MCASP[0-2]_XMIT_INTR_PEND | Transmit data-ready interrupt |
MCASP_XINTCTL[7] XSTAFRM | MCASP_XSTAT[6] XSTAFRM | MCASP[0-2]_XMIT_INTR_PEND | Transmit start of frame interrupt |
n.a. | MCASP_XSTAT[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_XSTAT[3] XTDMSLOT | n.a. | Qualifies the current TDM slot as an odd or an even slot. |
Event Mask(1) | Event Flag | Map to(1) | Description |
---|---|---|---|
MCASP_RINTCTL[0] ROVRN | MCASP_RSTAT[0] ROVRN | MCASP[0-2]_REC_INTR_PEND | Receive buffer overrun |
MCASP_RINTCTL[1] RSYNCERR | MCASP_RSTAT[1] RSYNCERR | MCASP[0-2]_REC_INTR_PEND | Unexpected receive frame sync |
MCASP_RINTCTL[2] RCKFAIL | MCASP_RSTAT[2] RCKFAIL | MCASP[0-2]_REC_INTR_PEND | Receive clock failure |
MCASP_RINTCTL[3] RDMAERR | MCASP_RSTAT[7] RDMAERR | MCASP[0-2]_REC_INTR_PEND | DATA port receive error |
MCASP_RINTCTL[4] RLAST | MCASP_RSTAT[4] RLAST | MCASP[0-2]_REC_INTR_PEND | Receive last slot |
MCASP_RINTCTL[5] RDATA | MCASP_RSTAT[5] RDATA | MCASP[0-2]_REC_INTR_PEND | Receive data-ready |
MCASP_RINTCTL[7] RSTAFRM | MCASP_RSTAT[6] RSTAFRM | MCASP[0-2]_REC_INTR_PEND | Receive start of frame |
n.a. | MCASP_RSTAT[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_RSTAT[3] RTDMSLOT | n.a. | Qualifies the current TDM slot as an odd or an even slot. |
Software has to read the MCASP_XSTAT/MCASP_RSTAT 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_SRCTLn registers to determine which active serializer is the actual source of the event.
A Tx interrupt line (MCASP[0-2]_XMIT_INTR_PEND) is asserted (active high) when one of the MCASP_XSTAT notified events occurs, provided that it is enabled in its corresponding MCASP_XINTCTL bit. Similarly, a Rx interrupt line (MCASP[0-2]_REC_INTR_PEND) is asserted (active high) when one of MCASP_RSTAT notified events occurs, provided that it is enabled in its corresponding MCASP_RINTCTL bit. See also Section 12.1.1.4.12.4, Multiple Interrupts and the Section 12.1.1.4.10.1, Data Ready Status and Event/Interrupt Generation (n = 0 to 15).