ADSP-2126x SHARC Processor Hardware Reference
9-75
Serial Ports
this example,
SPORT5
drives the clock and frame sync, and the buffer will
be transferred only one time.
This section provides three programming examples written for the
ADSP-21262 processor. The first listing,
, transmits a buffer of
data from
SPORT2
to
SPORT3
using direct core reads and writes and the
internal loopback feature of the serial port. In this example,
SPORT2
drives
the clock and frame sync, and the buffer is transferred only one time.
Listing 9-1. SPORT Transmit Using DMA Chaining
/* SPORT DMA Parameter Registers */
#define CPSP0A
0xC43
#define CPSP1A
0xC4B
/* SPORT Control Registers */
#define DIV0
0xC02
#define DIV1
0xC03
#define SPCTL0
0xC00
#define SPCTL1
0xC01
#define SPMCTL01 0xC04
/* SPMCTL Bits */
#define SPL
0x00001000
/* SPCTL Bits */
#define SPEN_A
0x00000001
#define SDEN_A
0x00040000
#define SCHEN_A
0x00080000
#define SLEN32
0x000001F0
#define SPTRAN
0x02000000
#define IFS
0x00004000
#define FSR
0x00002000
#define ICLK
0x00000400
Summary of Contents for ADSP-21261 SHARC
Page 30: ...Contents xxx ADSP 2126x SHARC Processor Hardware Reference ...
Page 40: ...Register Diagram Conventions xl ADSP 2126x SHARC Processor Hardware Reference ...
Page 58: ...Differences From Previous SHARCs 1 18 ADSP 2126x SHARC Processor Hardware Reference ...
Page 112: ...Secondary Processing Element PEy 2 54 ADSP 2126x SHARC Processor Hardware Reference ...
Page 178: ...Summary 3 66 ADSP 2126x SHARC Processor Hardware Reference ...
Page 204: ...DAG Instruction Summary 4 26 ADSP 2126x SHARC Processor Hardware Reference ...
Page 322: ...Setting Up DMA 7 32 ADSP 2126x SHARC Processor Hardware Reference ...
Page 436: ...SPORT Programming Examples 9 86 ADSP 2126x SHARC Processor Hardware Reference ...
Page 521: ...ADSP 2126x SHARC Processor Hardware Reference 11 31 Input Data Port rts IDP_ISR end ...
Page 522: ...Input Data Port Programming Example 11 32 ADSP 2126x SHARC Processor Hardware Reference ...
Page 590: ...Timer Programming Examples 14 20 ADSP 2126x SHARC Processor Hardware Reference ...
Page 796: ...I O Processor Registers A 174 ADSP 2126x SHARC Processor Hardware Reference ...
Page 800: ...B 4 ADSP 2126x SHARC Processor Core Manual ...
Page 846: ...Index I 36 ADSP 2126x SHARC Processor Hardware Reference ...