Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
/* Declare variable to hold the handle for DMA channel */ uint8 channelHandle;
/* Declare DMA Transaction Descriptor for memory transfer into * Filter Channel. */ uint8 tdChanA;
/* Configure the DMA to Transfer the data in 1 burst with individual trigger * for each burst.*/ channelHandle = DMA_DmaInitialize(BYTES_PER_BURST, REQUEST_PER_BURST, HI16(UPPER_SRC_ADDRESS), HI16(UPPER_DEST_ADDRESS));
/* This function allocates a TD for use with an initialized DMA channel */ tdChanA = CyDmaTdAllocate();
/* Source and Destination address increments are needed as we are using 3 byte transfers but Spoke Width is 16 bit */ CyDmaTdSetConfiguration(tdChanA, 3u, tdChanA, TD_INC_SRC_ADR | TD_INC_DST_ADR);
/* Set the source address as ADC_DelSig and the destination as * Filter Channel A.*/ CyDmaTdSetAddress(tdChanA, LO16((uint32)ADC_DEC_SAMP_16B_PTR), LO16((uint32)RIAA_STAGEA_PTR));
/* Set tdChanA to be the initial TD associated with channelHandle */ CyDmaChSetInitialTd(channelHandle, tdChanA);
/* Enable the DMA channel represented by channelHandle and preserve the TD */ CyDmaChEnable(channelHandle, 1u);
Can anyone help me get it to work, or just give me a hint at where i am doing wrong.