Analog Devices SHARC ADSP-214 Series Hardware Reference Manual page 509

Table of Contents

Advertisement

The SPORT generates an interrupt when the transmit buffer has a
vacancy or the receive buffer has data. To determine the source of an
interrupt, applications must check the transmit or receive data buffer sta-
tus bits (
,
DXS_A
status bits in the
channels are enabled with the same DMA count, there is no need to check
the status since both channel interrupts are close to each other.
Standard DMA does not function properly in I
mode when two channels (A and B) are enabled with different
DMA count values. In this case, the interrupt is generated for the
least count only. If both the A and B channels of the SPORTs are
used in I
count value should be the same for both channels. This does not
apply to chained DMA.
Error Detection
Similar to previous SHARC processors, the SPORTs can return the status
of data buffer underflow and overflow conditions. Additionally, the
SPORTs can also detect frame syncs that are occurring early, even before
the last transmit or receive completes. To detect these errors, the processor
has an error interrupt (SPERRI vector interrupt) that is shared for all
SPORTs together. It is triggered on a data underflow, data overflow, or
frame sync error in their respective channels. An interrupt is triggered and
programs simply read the
overhead needed to do register polling. If the interrupt enable bit
is set then the interrupt is raised when the error occurs. Otherwise, the
errors are latched and no interrupt is generated.
As shown in
Figure
is triggered when an early frame sync occurs during data transmission or
reception or for late frame sync if the period of the frame sync is smaller
then the serial word length (
operation continues without interruption.
ADSP-214xx SHARC Processor Hardware Reference
www.BDTIC.com/ADI
) in
registers and for DMA the corresponding
DXS_B
SPCTLx
registers. However note in most cases if both
SPMCTLx
2
S/left-justified mode with DMA enabled, then the DMA
SPERRSTAT
10-10, the frame sync error (which sets the error bit)
). However, the current transmit/receive
SLEN
2
S/left-justified
register which reduces the processor
Serial Ports
SPERRI
10-51

Advertisement

Table of Contents
loading

Table of Contents