
ADSP-214xx SHARC Processor Hardware Reference
10-51
Serial Ports
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
,
DXS_B
) in
SPCTLx
registers and for DMA the corresponding
status bits in the
SPMCTLx
registers. However note in most cases if both
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
2
S/left-justified
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
2
S/left-justified mode with DMA enabled, then the DMA
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
SPERRSTAT
register which reduces the processor
overhead needed to do register polling. If the interrupt enable bit
SPERRI
is set then the interrupt is raised when the error occurs. Otherwise, the
errors are latched and no interrupt is generated.
As shown in
, the frame sync error (which sets the error bit)
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 (
SLEN
). However, the current transmit/receive
operation continues without interruption.
www.BDTIC.com/ADI
Summary of Contents for SHARC ADSP-214 Series
Page 60: ...Contents lx ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Page 72: ...Notation Conventions lxxii ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Page 130: ...Programming Model 2 52 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Page 264: ...Programming Models 3 134 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Page 290: ...Programming Model 4 26 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Page 296: ...Programming Model 5 6 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Page 396: ...Effect Latency 7 28 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Page 520: ...Programming Model 10 62 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Page 616: ...Debug Features 14 22 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Page 656: ...Programming Model 15 40 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Page 714: ...Programming Model 19 10 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Page 1132: ...Register Listing A 306 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Page 1192: ...Index I 34 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...