SPORT Programming Examples
r0 = dm(i4,m4);
dm(TXSP2A) = r0;
/* Receive data via SPORT3 and save via DAG2 */
r0 = dm(RXSP3A);
pm(i12,m12) = r0;
_main.end:
jump (pc,0);
Listing 9-3. SPORT Transmit Using DMA
/* SPORT DMA Parameter Registers */
#define IISP4A
#define IISP5A
#define IMSP4A
#define IMSP5A
#define CSP4A
#define CSP5A
/* SPORT Control Registers */
#define DIV4
#define DIV5
#define SPCTL4
#define SPCTL5
#define SPMCTL45 0x804
/* SPMCTL Bits */
#define SPL
/* SPCTL Bits */
#define SPEN_A
#define SDEN_A
#define SLEN32
#define SPTRAN
#define IFS
9-82
0x840
0x848
0x841
0x849
0x842
0x84A
0x802
0x803
0x800
0x801
0x00001000
0x00000001
0x00040000
0x000001F0
0x02000000
0x00004000
ADSP-2126x SHARC Processor Hardware Reference
Need help?
Do you have a question about the ADSP-21261 SHARC and is the answer not in the manual?