
Setting the Transmit Interrupt Mode
8-21
Transmitter Configuration
SPRU592E
8.15 Setting the Transmit Interrupt Mode
Use the XINTM field to select which event generates a transmit interrupt.
XINTM is shown in Figure 8
Figure 8
−
16. Register Bits Used to Set the Transmit Interrupt Mode
SPCR2
15
6 5
4 3
0
XINTM
R/W-00
Legend:
R = Read; W = Write; -
n
= Value after reset
Table 8
−
16. Register Bits Used to Set the Transmit Interrupt Mode
Register
Bit
Name
Function
SPCR2
5-4
XINTM
Transmit Interrupt Mode
XINTM = 00
XINT generated when XRDY changes from 0 to 1
XINTM = 01
XINT generated by an end-of-block or end-of-frame
condition in a transmit multichannel selection mode
XINTM = 10
XINT generated by a new transmit frame-sync pulse
XINTM = 11
XINT generated when XSYNCERR is set
8.15.1 About the Transmitter Interrupt and the Associated Modes
The transmitter interrupt (XINT) signals the CPU of changes to the serial port
status. Four options exist for configuring this interrupt. The options are set by
the transmit interrupt mode bits, XINTM, in SPCR2.
-
XINTM = 00b. Interrupt on every serial word by tracking the XRDY bit in
SPCR2. Note that regardless of the value of XINTM, XRDY can be read
to detect the XRDY = 1 condition.
-
XINTM = 01b. In any of the transmit multichannel selection modes,
interrupt after every 16-channel block boundary has been crossed within
a frame and at the end of the frame. In any other serial transfer case, this
setting is not applicable and, therefore, no interrupts are generated.
-
XINTM = 10b. Interrupt on detection of each transmit frame-sync pulse.
This generates an interrupt even when the transmitter is in its reset state.
This is done by synchronizing the incoming frame-sync pulse to the
McBSP internal input clock and sending it to the CPU via XINT.
-
XINTM = 11b. Interrupt on frame-synchronization error. Note that
regardless of the value of XINTM, XSYNCERR can be read to detect this
condition.
Summary of Contents for TMS320VC5509
Page 5: ...vi This page is intentionally left blank ...
Page 43: ...McBSP Operation 2 20 SPRU592E This page is intentionally left blank ...
Page 105: ...SPI Operation Using the Clock Stop Mode 6 16 SPRU592E This page is intentionally left blank ...
Page 187: ...Transmitter Configuration 8 40 SPRU592E This page is intentionally left blank ...
Page 191: ...General Purpose I O on the McBSP Pins 9 4 SPRU592E This page is intentionally left blank ...
Page 201: ...Emulation Power and Reset Considerations 10 10 SPRU592E ...
Page 207: ...Data Packing Examples 11 6 SPRU592E This page is intentionally left blank ...
Page 273: ...McBSP Register Worksheet 13 14 SPRU592E This page is intentionally left blank ...