AN2108 Freescale Semiconductor / Motorola, AN2108 Datasheet - Page 48

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
/* DMA Counter 0: transfer of 25 * 4 items (counter mode B) */
48
Code Listing for Residu Example
/* Source address = start of input data buffer */
DSR0 = (int*)input;
/* DMA destination address (EFCOP Data Input Register) */
DDR0 = (int*)&FDIR;
/* DMA Offset Regsiter 0 */
DOR0 = 1; /* Offset = 1 */
/* DMA Ch0 Control Register */
_asm("movep #$94AA04,x:$FFFFEC");
/* Set DMA Counter 1 for transfer of 40 items (counter mode A) */
DCO1 = L_SUBFR - 1;
/* DMA source address (EFCOP Data Output Register) */
DSR1 = (int*)&FDOR;
/* Destination address */
DDR1 = (int*)efcop_output;
_asm("movep #$018001,x:$FFFFED");
* Set up DMA Channel 1 to take output from EFCOP
*---------------------------------------------------*/
/*---------------------------------------------------*
/* DE
/* DIE
/* DTM
/* DPR
/* DCON = 0
/* DRS
/* D3D
/* DAM
/* DDS
/* DSS
= 1
= 0
= 010
= 10
= 10101
= 0
= 100000 (DMA Addressing Mode:
= 01
= 00
Programming the DSP56307/DSP56311 EFCOP in C
Freescale Semiconductor, Inc.
/* Note: DCO = No. items - 1 */
For More Information On This Product,
(DMA Ch0 enabled)
(No interrupt at end of transfer
(Line transfer (2D), Clear DE
(Priority = 2)
(Continuous mode not needed
(DMA Request is MDRQ11: EFCOP FDIBE) */
(Disable 3D mode)
(Destination (FDIR) is in Y memory)
(Source (input[]) is in X memory)
Source = 000 (2D, DOR0 offset)
Dest
Go to: www.freescale.com
= 100 (No update)
*
*/
) */
*/
*/
*/
*/
*/
*/
*/

Related parts for AN2108