资源简介
关于TMS320C6713芯片的EDMA程序,还是很有用的。

代码片段和文件信息
/*********************************************************************************
* Copyright 2003 by SEED Electronic Technology Ltd.
* All rights reserved. Property of SEED Electronic Technology Ltd. *
* Designed by: Hongshuai.Li *
*********************************************************************************/
/* FILENAME...... DEC6713_EDMA.c
* DATE CREATED.. 21/12/2004
* LAST MODIFIED. 21/12/2004
*------------------------------------------------------------------------------
* This program uses the timer to trigger EDMA events. These events in turn
* trigger linked EDMA parameter tables to fill a ping pong buffer structure.
* On running the program you‘ll note that the program bounces between the ping
* and pong buffers filling each with a value that comes from the source.
* (Note: This example runs with CACHE enable).
\******************************************************************************/
#include
#include
#include
#include
#include
#include
#include
/*----------------------------------------------------------------------------*/
/* Pick which EDMA transfer completion interrupt we want to use */
#define TCCINTNUM 10
/* define the constants */
#define BUFF_SZ 256 /* ping-pong buffer sizes in # of ints */
#define FCPU 150000000 /* CPU clock frequency */
#define SRATE 8000 /* data sample rate (simulated w/timer */
#define TPRD (FCPU/(4*SRATE)) /* timer period */
#define TRANSFER_CNT 20 /* Transfer count */
/* Create the buffers. We want to align the buffers to be cache friendly */
/* by aligning them on an L2 cache line boundary. */
#pragma DATA_ALIGN(ping128);
#pragma DATA_ALIGN(pong128);
#pragma DATA_ALIGN(outbuff128);
int ping[BUFF_SZ];
int pong[BUFF_SZ];
int outbuff[BUFF_SZ];
/* These two variables serve as the data sources for this example. */
/* Also want to align these on a cache line boundary since they */
/* sources of EDMA transfers. */
#pragma DATA_ALIGN(ping_data128);
#pragma DATA_ALIGN(pong_data128);
static int ping_data;
static int pong_data;
/* global variable used to track the ping-pong‘ing */
static int pingpong = 0;
volatile int transferCount = 0;
extern far void vectors();
void setupInterrupts(void);
void stopEdma(void); /* function used to stop EDMA */
/*-------------------------------------------------------------------------*/
/* declare the CSL objects */
TIMER_Handle hTimer; /* Handle for the timer device */
EDMA_Handle hEdma; /* Handle for the EDMA channel */
EDMA_Handle hEdmaPing; /* Handle for the ping EDMA reload parameters */
EDMA_Handle hEdmaPong; /* Handle for t
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 670 2005-01-31 10:35 DEC6713_EDMA\cc_build_Debug.log
文件 4908 2005-01-31 10:35 DEC6713_EDMA\Debug\DEC6713.obj
文件 20396 2005-01-31 10:35 DEC6713_EDMA\Debug\DEC6713_EDMA.map
文件 14387 2005-01-31 10:35 DEC6713_EDMA\Debug\DEC6713_EDMA.obj
文件 84484 2005-01-31 10:35 DEC6713_EDMA\Debug\DEC6713_EDMA.out
文件 2758 2005-01-31 10:35 DEC6713_EDMA\Debug\vecs.obj
目录 0 2006-06-27 11:54 DEC6713_EDMA\Debug
文件 528 2005-01-31 10:35 DEC6713_EDMA\Debug.lkf
文件 528 2005-01-31 10:35 DEC6713_EDMA\Debug.lkv
文件 6525 2004-12-03 15:52 DEC6713_EDMA\DEC6713.C
文件 13299 2004-10-28 16:09 DEC6713_EDMA\DEC6713.gel
文件 17819 2006-03-17 16:25 DEC6713_EDMA\DEC6713_EDMA.c
文件 4902 2005-01-31 16:21 DEC6713_EDMA\DEC6713_EDMA.paf
文件 1059 2005-01-31 10:36 DEC6713_EDMA\DEC6713_EDMA.pjt
文件 9020 2004-12-21 14:54 DEC6713_EDMA\DEC6713_EDMA.wks
文件 812 2004-12-21 13:15 DEC6713_EDMA\edma.cmd
文件 1088 2004-12-21 10:18 DEC6713_EDMA\include\DEC6713.h
目录 0 2006-06-27 11:54 DEC6713_EDMA\include
文件 3450 2004-12-21 13:15 DEC6713_EDMA\vecs.asm
目录 0 2006-06-27 11:54 DEC6713_EDMA
----------- --------- ---------- ----- ----
186633 20
- 上一篇:基于DS1302的4位LED滚动日历
- 下一篇:PB API文件属性设置
相关资源
- CCS5.05.1可使用的license
- dsp2812上128点FFTc程序以及其CMD文件
- DSP28335程序片内FLASH搬运至RAM运行的
- 基于DSP2812的以太网调试程序
- DSP与PC通讯的几种方法
- DSP 语音识别程序 DTW MFCC
- 创龙C66x平台GigE工业相机图像采集案例
- VC工程转Qt工程文件的工具
- 基于DSP的大功率开关电源的设计方案
- 基于DSP 56F801的正弦波输出DC/AC电源
- 基于DSP的大功率开关电源设计
- 基于ARM7和DSP的逆变电源设计电路
- 基于运动控制器MCK2407的无刷直流电机
- es(elasticsearch)整合SpringCloudSpringBo
- tms320c6748 DSP原理图 SCH PCB
- TMS320F280049最小系统原理图
- F280049C_CMPSS_01.zip
- 基于DSP的矿用静止无功发生器的研制
- 基于DSP的矿井提升机永磁同步电机D
- 基于DSP的SVPWM变频调速系统
- 基于DSP的下一代车载娱乐系统
- DSP控制器原理及其在运动控制系统中
- 北京交通大学-数字图像处理试卷+ 答
- 十字路口交通灯.pdsprj
- 用DSP Builder实现FIR滤波器
- TMS320C54X DSP结构、原理及应用(第二版
- DSP 28035 源码
- PCI总线接口与DSP的HPI接口
- 基于DSP交流伺服系统与CAN总线的通信
- 单片机与DSP中的基于DSP的FFT算法在无
评论
共有 条评论