Input Data Port Programming Example
7-32 ADSP-21368 SHARC Processor Hardware Reference
dm(IDP_CTL0) = r0;
/*************************************************/
/* Connect the clock, data and frame sync of IDP */
/* channel 0 to DAI pin buffers 10, 11 and 12. */
/*************************************************/
/* Connect IDP0_CLK_I to DAI_PB10_O */
/* (SRU_CLK1[19:15] = 01001) */
/* Connect IDP0_DAT_I to DAI_PB11_O */
/* (SRU_DAT3[11:6] = 001010) */
/* Connect IDP0_FS_I to DAI_PB12_O */
/* (SRU_FS1[19:15] = 01011) */
/******************************************************/
/* Pin buffers 10, 11 and 12 are always being used as */
/* inputs. Tie their enables to LOW (never driven). */
/******************************************************/
/* Connect PBEN10_I to LOW */
/* (SRU_PIN1[29:24] = 111110) */
/* Connect PBEN11_I to LOW */
/* (SRU_PIN2[5:0] = 111110) */
/* Connect PBEN12_I to LOW */
/* (SRU_PIN2 11–6 = 111110) */
/********************************************************/
/* Assign a value to N_SET. An interrupt will be raised */
/* when there are N_SET+1 words in the FIFO. */
/********************************************************/