AN2108 Freescale Semiconductor / Motorola, AN2108 Datasheet - Page 16

no-image

AN2108

Manufacturer Part Number
AN2108
Description
AN2108 Programming the DSP56307/DSP56311 EFCOP in C Using Taskings Tool Suite
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
/* ------------------------------------------------------------------------------------ *
*/
16
Transferring Data to and from the EFCOP
/* DMA Counter 1: transfer of 81 items (counter mode A) */
DCO1 = (INPUT_LENGTH - FIR_LENGTH);
/* Source address = EFCOP’s FDOR */
DSR1 = (int*)&FDOR;
/* Destination address = start of output data buffer */
DDR1 = (int*)output;
/* DMA Ch1 Control Register */
DCR1.I = 0x0CB2C1;
* Set up DMA Channel 1 to transfer output data to EFCOP’s FDOR *
* -----------------------------------------------------------------------------------
The configuration principles are as follows:
A 1-D DMA transfer from the FDOR register to memory programming example follows.
DMA Control Register (DCR):
— DMA Transfer Mode (DTM) = word transfer triggered by request
— DMA Request Source (DRS) = MDRQ12 (see Table 3-4)
— DMA Address Mode (DAM)
DMA Counter Register (DCO):
— DCO0 = (number of samples-1)
/* DE
/* DIE
/* DTM
/* DPR
/* DCON = 0(Continuous mode not needed
/* DRS
/* D3D
/* DAM
— Source - 1D counter mode B, offset DOR0
— Destination - Selected by the user.
= 0 (DMA Ch1 disabled for now )
= 0 (No interrupt at end of transfer)
= 001(Word, Clear DE
= 10 (Priority = 2)
= 10110(DMA Request is MDRQ12: EFCOP FDOBF) */
= 0(Disable 3D mode)
= 101100 (DMA Addressing Mode:
Programming the DSP56307/DSP56311 EFCOP in C
Example 3. DMA Transfer from FDOR to Memory
Freescale Semiconductor, Inc.
/* Note: DCO1 = (No. items) - 1 */
/* Offset = 1 */
For More Information On This Product,
Source = 100 (No update)
Dest
Go to: www.freescale.com
= 101 (Post Inc by 1)
*/
*/
*/
*/
*/
*/
) */

Related parts for AN2108