Input Data Port Programming Example
11-28
ADSP-2126x SHARC Processor Hardware Reference
r0 = 0x000FFFFF;
dm(DAI_PIN_PULLUP) = r0; /* pullup un-used DAI pins */
ustat2 = dm(IDP_CTL);
/* Reset the IDP by enabling... */
bit set ustat2 IDP_EN;
dm(IDP_CTL) = ustat2;
bit clr ustat2 IDP_EN;
/* ...and then disabling it */
dm(IDP_CTL) = ustat2;
/*setup for DMA-driven data handling FIFO-->Internal memory */
r9=INTERNAL_MEM_ADDRESS;
dm(IDP_DMA_I0)=r9;
/* initialize the index register
with the normal-word alias of data
buffer to store the data */
r0= 1;
dm(IDP_DMA_M0)=r0;
/* initialize the modify register with
a stride of 1 */
r0= 8;
dm(IDP_DMA_C0)=r0;
/* FIFO is 8-deep x32, so initialize the
count register to 8 */
ustat2=
IDP_PDAP_PACKING2|
/* two 16-bit words per 32-bit location
in fifo */
DP_PP_SELECT|
/* Use AD[15-0] if set, if cleared use
DAI_P[20-5] */
IDP_P20_PDAPMASK|
/* Bits in the data buffer can be
masked out */
IDP_P19_PDAPMASK|
/* cclr=masked*/
IDP_P18_PDAPMASK|
/* set=unmasked*/
*/
IDP_P17_PDAPMASK|
IDP_P16_PDAPMASK|
Содержание 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 ...