Analog Devices ADSP-21261 SHARC Hardware Reference Manual page 350

Hide thumbs Also See for ADSP-21261 SHARC:
Table of Contents

Advertisement

Parallel Port Programming Examples
dm(EIPP) = r1;
dm(PPCTL)= ustat3;
dm(TXPP) = r2;
/* -----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;
r2 = r2 + 1;
/*-----------------------------------------------------------*/
dm(PPCTL)=ustat4;
/* NOTE: PPEN must be cleared before modifying EIPP /*
========================================================
8-28
/* enable PP */
/*
<-- write to PP FIFO */
/* next ext. destination address += 4
/* next data to write /*
/*
<-- 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. */
ADSP-2126x SHARC Processor Hardware Reference

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ADSP-21261 SHARC and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Adsp-21262 sharcAdsp-21266 sharcAdsp-21267 sharc

Table of Contents