Public Version
McBSP Basic Programming Model
www.ti.com
4. Transmit buffer threshold reached (McBSPi.
[10] XRDY bit is set to one
when the transmit buffer free locations are equal or above the [THRS 1] value).
5. Transmit end of frame (McBSPi.
[9] XEOF is set to one when a complete
frame was transmitted).
6. Transmit frame synchronization (McBSPi.
[8] XFSX bit is set to one
when a new transmit frame synchronization is asserted).
7. Transmit frame synchronization Error (McBSPi.
[7] XSYNCERR is set to
one when a transmit frame synchronization error is detected).
8. Receive buffer overflow (McBSPi.
[5] ROVFLSTAT bit is set to one when
receive buffer overflow; the data which is written while overflow condition is discarded).
9. Receive buffer underflow (McBSPi.
[4] RUNDFLSTAT bit is set to one
when read operation is performed to the receive data register while receive buffer is empty; data read
while underflow condition is undefined).
10. Receive buffer threshold Reached (McBSPi.
[3] RRDY bit is set to one
when the receive buffer occupied locations are equal or above the [THRS 1] value).
11. Receive end of frame (McBSPi.
[2] REOF is set to one when a complete
frame was received).
12. Receive frame synchronization (McBSPi.
[1] RFSR bit is set to one
when a new receive frame synchronization is asserted).
13. Receive frame synchronization error (McBSPi.
[0] RSYNCERR is set to
one when a receive frame synchronization error is detected).
21.5.1.4.2 Legacy Interrupt Line
McBSPi_IRQ_TX and McBSPi_IRQ_RX are legacy interrupts. Not to be used for new development.
McBSPi_IRQ (common interrupt line) should be preferred.
21.5.1.4.2.1 Set the receive interrupt line (legacy only)
The McBSPi.
[5:4] RINTM bit field determines which event generates a receive
interrupt request, McBSPi_IRQ_RX, to the MPU/IVA2.2 subsystem.
The receive interrupt informs the MPU/IVA2.2 subsystem of changes to the serial port status. Four options
exist for configuring this interrupt.
•
RINTM=0b00: The receive interrupt generated when the McBSPi.
[1] RRDY
bit changes from 0 to 1. Interrupt on every serial word by tracking the
McBSPi.
[1] RRDY bit. Regardless of the value of RINTM, RRDY bit can be
read to detect the RRDY=1 condition.
•
RINTM = 0b01: The receive interrupt generated by an end-of-frame condition in the receive
multichannel selection mode. In any other serial transfer case, this setting is not applicable and,
therefore, no interrupts are generated.
•
RINTM = 0b10: The receive interrupt generated by a new receive frame-synchronization pulse.
Interrupt on detection of receive frame-synchronization pulses. This generates an interrupt even when
the receiver is in its reset state. This is done by synchronizing the incoming frame-synchronization
pulse to the McBSPi_ICLK clock and sending it to the MPU/IVA2.2 subsystem via the receive
interrupt .
•
RINTM = 0b11: The receive interrupt generated when McBSPi.
[3]
RSYNCERR is set. Interrupt on frame-synchronization error. Regardless of the value of RINTM,
RSYNCERR can be read to detect this condition. For information on using RSYNCERR, see
.
The McBSP module also provides a common interrupt line McBSPi_IRQ, which can be used by setting the
McBSPi.MCBSPLP_IRQENABLE register. All the above settings have equivalent enable bits in the
McBSPi.MCBSPLP_IRQENABLE register to enable the common interrupt line:
•
RRDYEN is equivalent with RINTM = 0 setting
•
REOFEN is equivalent with RINTM = 0b01setting (the interrupt is generated by an end-of-frame
condition regardless of the multichannel selection mode)
3132
Multi-Channel Buffered Serial Port
SWPU177N – December 2009 – Revised November 2010
Copyright © 2009–2010, Texas Instruments Incorporated
Содержание OMAP36 Series
Страница 174: ...174 List of Tables SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 692: ...692 MPU Subsystem SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 1084: ...1084 IVA2 2 Subsystem SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 1990: ...1990 2D 3D Graphics Accelerator SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 2334: ...2334 Memory Subsystem SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 2700: ...2700 Memory Management Units SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 2868: ...2868 HDQ 1 Wire SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 2974: ...2974 UART IrDA CIR SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 3054: ...3054 Multichannel SPI SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 3462: ...3462 MMC SD SDIO Card Interface SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 3508: ...3508 General Purpose Interface SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 3584: ...3584 Initialization SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 3648: ...3648 Debug and Emulation SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...