
Parallel Port Programming Examples
8-26
ADSP-2126x SHARC Processor Hardware Reference
0x77777777,
0x88888888;
/* Main code section */
.global _main;
.section/pm seg_pmco;
_main:
i4 = source;
m4 = 1;
/* setup ppdma registers for core use */
r0 = 1;
dm(EMPP) = r0;
r0 = 0x1000000;
dm(EIPP) = r0;
/* For 8-bit external memory, the External count is
four times the internal count */
r0 = LENGTH(source) * 4;
dm(ECPP) = r0;
ustat3 = PPEN|
/* enable port */
PPTRAN|
/* transmit (write) */
PPBHC|
/* implement a bus hold cycle*/
PPDUR20;
/* make pp data cycles last for a */
/* duration of 20 cclk cycles */
dm(PPCTL) = ustat3;
/* loop to write 10 words into TXPP */
lcntr = 10, do core_writes until lce;
write:
r0 = dm(i4,m4);
core_writes: dm(TXPP) = r0;
/* poll to ensure parallel port has completed the transfer */
waiting: ustat4 = dm(PPCTL);
bit tst ustat4 PPBS;
if tf jump waiting;
_main.end: jump(pc,0);
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 ...