AN2108 Freescale Semiconductor / Motorola, AN2108 Datasheet - Page 42

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 Offset Regsiter 0 */
/* -------------------------------------------------------- *
42
Code Listing for FIR LMS Example
DOR0 = 1; /* Offset = 1 */
/* DMA Ch0 Control Register */
DCR0.I = 0x14AA04;
IPRP.B.E0L = 2;/* Set EFCOP interrupt priority to 2
#pragma asm /* Unmask all interrupt priorities
#pragma endasm
FCSR.B.FEN = 0x1;/* Enable EFCOP
DCR0.B.DE
/* -------------------------------------------------- *
*
* -------------------------------------------------------- */
*
* -------------------------------------------------------- */
*
* -------------------------------------------------- */
bclr#8,SR
bclr#9,SR
/* -------------------------------------------------------- *
Core can now perform other processing tasks
Set up EFCOP data output interrupts
Enable EFCOP and DMA channel 0 (in any order)
/* DE
/* DIE
/* DTM
/* DPR
/* DCON = 0
/* DRS
/* D3D
/* DAM
/* DDS
/* DSS
= 0x1;/* Enable DMA Channel 0
= 0
= 0
= 010
= 10
= 10101
= 0
= 100000 (DMA Addressing Mode:
= 01
= 00
Programming the DSP56307/DSP56311 EFCOP in C
Freescale Semiconductor, Inc.
For More Information On This Product,
(DMA Ch0 disabled for now )
(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