EasyManuals Logo

Analog Devices SHARC ADSP-21368 User Manual

Analog Devices SHARC ADSP-21368
894 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #449 background imageLoading...
Page #449 background image
ADSP-21368 SHARC Processor Hardware Reference 7-31
Input Data Port
Input Data Port Programming Example
Listing 7-1 shows a data transfer using an interrupt service routine (ISR).
The transfer takes place through the digital applications interface (DAI).
This code implements the algorithm outlined in “FIFO to Memory Data
Transfer” on page 7-16.
Listing 7-1. Interrupt-Driven Data Transfer
/* Using Interrupt-Driven Transfers from the IDP FIFO */
#define IDP_ENABLE (8) /* IDP_ENABLE = IDP_CTL0[7] */
#define IDP_CTL0 (0x24B0) /* Memory-mapped register */
#define IDP_FIFO_GTN_INT (8) /* Bit 8 in interrupt regs */
#define IDP_FIFO (0x24D0) /* IDP FIFO packing mode */
#define DAI_IRPTL_FE (0x2480) /* Falling edge int latch */
#define DAI_IRPTL_RE (0x2481) /* Rising edge int latch */
#define DAI_IRPTL_PRI (0x2484) /* Interrupt priority */
.section/dm seg_dmda;
.var OutBuffer[6];
.section/pm seg_pmco;
initIDP:
r0 = dm(IDP_CTL0); /* Reset the IDP */
r0 = BSET r0 BY IDP_ENABLE;
dm(IDP_CTL0) = r0;
r0 = BCLR r0 BY IDP_ENABLE;
r0 = BCLR r0 BY 10; /* Set IDP serial input channel 0 */
r0 = BCLR r0 BY 9; /* to receive in I2S format */
r0 = BCLR r0 BY 8;

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

Analog Devices SHARC ADSP-21368 Specifications

General IconGeneral
BrandAnalog Devices
ModelSHARC ADSP-21368
CategoryComputer Hardware
LanguageEnglish

Related product manuals