ADSP-214xx SHARC Processor Hardware Reference
10-41
Serial Ports
Receive Buffers (RXSPxA/B)
The receive buffers (
RXSP7–0A
,
RXSP7–0B
) are the 32-bit receive data buf-
fers SPORT7–0 respectively. These 32-bit buffers become active when the
SPORT is configured to receive data on the A and B channels. When a
SPORT is configured as a receiver, the
RXSPxA
and
RXSPxB
registers are
automatically loaded from the receive shifter when a complete word has
been received. The data is then loaded to internal memory by the DMA
controller or read directly by the program running on the processor core.
Buffer Status
Serial ports provide status information about data buffers via the
DXS_A
and
DXS_B
status bits and error status via
DERR_x
bits in the
SPCTL
register.
Depending on the
SPTRAN
setting, these bits reflect the status of either the
TXSPxy
or
RXSPxy
data buffers.
If your program causes the core processor to attempt to read from an
empty receive buffer or to write to a full transmit buffer, the access is
delayed until the buffer is accessed by the external I/O device. This delay
is called a core processor hang. If you do not know if the core processor
can access the receive or transmit buffer without a hang, the buffer’s status
should be read first (in
SPCTLx
) to determine if the access can be made.
The status bits in
SPCTLx
are updated during reads and writes from the
core processor even when the serial port is disabled. Disable the serial port
when writing to the receive buffer or reading from the transmit buffer.
Two complete 32-bit words can be stored in the receive buffer while a
third word is being shifted in. The third word overwrites the second if the
first word has not been read out (by the processor core or the DMA con-
troller). When this happens, the receive overflow status bit is set in the
serial port control register. Almost three complete words can be received
without the receive buffer being read before an overflow occurs. The over-
flow status is generated on the last bit of the third word. The
DERR_x
status
bits are sticky and are cleared only by disabling the serial port.
www.BDTIC.com/ADI
Содержание SHARC ADSP-214 Series
Страница 60: ...Contents lx ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 72: ...Notation Conventions lxxii ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 130: ...Programming Model 2 52 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 264: ...Programming Models 3 134 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 290: ...Programming Model 4 26 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 296: ...Programming Model 5 6 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 396: ...Effect Latency 7 28 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 520: ...Programming Model 10 62 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 616: ...Debug Features 14 22 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 656: ...Programming Model 15 40 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 714: ...Programming Model 19 10 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 1132: ...Register Listing A 306 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 1192: ...Index I 34 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...