
ADSP-2126x SHARC Processor Hardware Reference
8-27
Parallel Port
Listing 8-3. Calculated Duration Core Driven Access
_main:
/* Setup once========================================= */
ustat3 = PPDUR3 | PPTRAN | PPEN;
/* ustat3 enables PP */
ustat4 = PPDUR3 | PPTRAN;
/* ustat4 disables PP */
dm(PPCTL) = ustat4;
/* initialize but disable PP */
/* NOTE: Internal DMA registers AND the EXTERNAL COUNT can be
left uninitialized for Core-driven transfers (External count
determined by bus width: 16bit = count of 2, 8-bit = count of 4,
since internal width always = 32-bits.) */
r0=1;
dm(EMPP)=r0;
/* don't move external ptr */
/* initialize external address and sample-to-write */
r1=EZKIT_SRAM_BASE_ADDR;
/* initialize R1 w/ first
ext. byte address */
r2=0x33221100;
/* and R2 w/ first data to be
written /*
/* =============================================== */
/* for testing
*/
do (write_loop.end - 1) until forever;
/* ===Instructions required for each 32-bit word written===*/
/* (18 instructions per sample = 4 cycles ov 14 cycles
work) /*
/* R1 holds external byte address to be written */
/* R2 holds data to be written */
write_loop:
Содержание 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 ...