Parallel Port Programming Examples
8-28
ADSP-2126x SHARC Processor Hardware Reference
dm(EIPP) = r1;
dm(PPCTL)= ustat3;
/* enable PP */
dm(TXPP) = r2;
/* <-- write to PP FIFO */
/* -----14 core cycles (minimum) available while each word is
being transmitted. Writing to PPCTL has a 2 cycle effect-latency,
so the result of writing this register in the 14th cycle doesn't
take effect until the 16th cycle - which is one cycle after the
cycle completes----- */
/* (NOTE: Modifying PP parameters before 14 cycles have passed
will cause the access to fail - Using more than 14 cycles is
fine. */
nop;nop;
nop;nop;
nop;nop;
nop;nop;
nop;nop;
nop;
/*
update addr and data for next loop iteration:
r0 = 4;
r1 = R1 + r0;
/* next ext. destination a= 4
r2 = r2 + 1;
/* next data to write /*
/*-----------------------------------------------------------*/
dm(PPCTL)=ustat4;
/*
<-- 14 cycles later, it's safe to
disable/alter PP because each access takes
15 CCLK cycles, and writing PPCTL has a
2-cycle effect-latency. */
/* NOTE: PPEN must be cleared before modifying EIPP /*
========================================================
Содержание ADSP-21261 SHARC
Страница 30: ...Contents xxx ADSP 2126x SHARC Processor Hardware Reference ...
Страница 40: ...Register Diagram Conventions xl ADSP 2126x SHARC Processor Hardware Reference ...
Страница 58: ...Differences From Previous SHARCs 1 18 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 112: ...Secondary Processing Element PEy 2 54 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 178: ...Summary 3 66 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 204: ...DAG Instruction Summary 4 26 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 322: ...Setting Up DMA 7 32 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 436: ...SPORT Programming Examples 9 86 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 521: ...ADSP 2126x SHARC Processor Hardware Reference 11 31 Input Data Port rts IDP_ISR end ...
Страница 522: ...Input Data Port Programming Example 11 32 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 590: ...Timer Programming Examples 14 20 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 796: ...I O Processor Registers A 174 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 800: ...B 4 ADSP 2126x SHARC Processor Core Manual ...
Страница 846: ...Index I 36 ADSP 2126x SHARC Processor Hardware Reference ...