McBSP Exception/Error Conditions
McBSP Exception/Error Conditions
4-2
SPRU592E
4.1 McBSP Exception/Error Conditions
There are five serial port events that may constitute a system error:
-
Receiver Overrun (RFULL = 1 in SPCR1)
. This occurs when DRR1 has
not been read since the last RBR-to-DRR copy. Consequently, the
receiver does not copy a new word from the RBR(s) to the DRR(s), and
the RSR(s) are now full with another new word shifted in from DR.
Therefore, RFULL = 1 indicates an error condition wherein any new data
that may arrive at this time on DR replaces the contents of the RSR(s), and
as a result, the previous word is lost. The RSR(s) continue to be
overwritten as long as new data arrives on DR and DRR1 is not read.
-
Unexpected Receive Frame-Sync Pulse (RSYNCERR = 1 in SPCR1)
.
This occurs during reception when RFIG = 0 and an unexpected
frame-sync pulse occurs. An unexpected frame-sync pulse is one that
begins the next frame transfer before all the bits of the current frame have
been received. Such a pulse causes data reception to abort and restart.
If new data has been copied into the RBR(s) from the RSR(s) since the last
RBR-to-DRR copy, this new data in the RBR(s) is lost. This is because no
RBR-to-DRR copy occurs; the reception has been restarted.
-
Transmitter Data Overwrite
. This occurs when the CPU or the DMA
controller overwrites data in the DXR(s) before the data is copied to the
XSR(s). The overwritten data never reaches the DX pin.
-
Transmitter Underflow (XEMPTY = 0 in SPCR2)
. If a new frame-sync
signal arrives before new data is loaded into DXR1, the previous data in
the DXR(s) is sent again. This will continue for every new frame-sync
pulse that arrives until DXR1 is loaded with new data.
-
Unexpected Transmit Frame-Synch Pulse (XSYNCERR = 1 in
SPCR2)
. This occurs during transmission when XFIG = 0 and an
unexpected frame-sync pulse occurs. An unexpected frame-sync pulse is
one that begins the next frame transfer before all the bits of the current
frame have been transferred. Such a pulse causes the current data
transmission to abort and restart. If new data has been written to the
DXR(s) since the last DXR-to-XSR copy, the current value in the XSR(s)
is lost.
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 ...