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