15.7.14 Set the Receive Interrupt Mode
The RINTM bits (see
) determine which event generates a receive interrupt request to the CPU.
The receive interrupt (RINT) informs the CPU of changes to the serial port status. Four options exist for
configuring this interrupt. The options are set by the receive interrupt mode bits, RINTM, in SPCR1.
Table 15-35. Register Bits Used to Set the Receive Interrupt Mode
Register
Bit
Name
Function
Type
Reset
Value
SPCR1
5-4
RINTM
Receive interrupt mode
R/W
00
RINTM = 00
RINT generated when RRDY changes from 0 to 1. Interrupt on
every serial word by tracking the RRDY bit in SPCR1. Regardless
of the value of RINTM, RRDY can be read to detect the RRDY = 1
condition.
RINTM = 01
RINT generated by an end-of-block or end-of-frame condition in the
receive multichannel selection mode. In the multichannel selection
mode, interrupt after every 16-channel block boundary has been
crossed within a frame and at the end of the frame. For details, see
. In any other serial transfer case, this setting is not
applicable and, therefore, no interrupts are generated.
RINTM = 10
RINT 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 CPU clock and sending it to the CPU via RINT.
RINTM = 11
RINT generated when 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
.
Multichannel Buffered Serial Port (McBSP)
SPRUH18I – JANUARY 2011 – REVISED JUNE 2022
TMS320x2806x Microcontrollers
929
Copyright © 2022 Texas Instruments Incorporated
Содержание TMS320 2806 Series
Страница 2: ......