资源简介
DSP28335 AD7606 研旭 DSP28335 AD7606 研旭 DSP28335 AD7606 研旭
![](http://www.nz998.com/pic/54263.jpg)
代码片段和文件信息
// TI File $Revision: /main/3 $
// Checkin $Date: March 16 2007 08:37:30 $
//###########################################################################
//
// FILE: DSP2833x_CpuTimers.c
//
// title: CPU 32-bit Timers Initialization & Support Functions.
//
// NOTES: CpuTimer1 and CpuTimer2 are reserved for use with DSP BIOS and
// other realtime operating systems.
//
// Do not use these two timers in your application if you ever plan
// on integrating DSP-BIOS or another realtime OS.
//
//
//###########################################################################
// $TI Release: DSP2833x Header Files V1.01 $
// $Release Date: September 26 2007 $
//###########################################################################
#include “DSP2833x_Device.h“ // Headerfile Include File
#include “DSP2833x_Examples.h“ // Examples Include File
struct CPUTIMER_VARS CpuTimer0;
// CpuTimer 1 and CpuTimer2 are used by DSP BIOS & other RTOS. Comment out if using DSP BIOS or other RTOS.
struct CPUTIMER_VARS CpuTimer1;
struct CPUTIMER_VARS CpuTimer2;
//---------------------------------------------------------------------------
// InitCpuTimers:
//---------------------------------------------------------------------------
// This function initializes all three CPU timers to a known state.
//
void InitCpuTimers(void)
{
// CPU Timer 0
// Initialize address pointers to respective timer registers:
CpuTimer0.RegsAddr = &CpuTimer0Regs;
// Initialize timer period to maximum:
CpuTimer0Regs.PRD.all = 0xFFFFFFFF;
// Initialize pre-scale counter to divide by 1 (SYSCLKOUT):
CpuTimer0Regs.TPR.all = 0;
CpuTimer0Regs.TPRH.all = 0;
// Make sure timer is stopped:
CpuTimer0Regs.TCR.bit.TSS = 1;
// Reload all counter register with period value:
CpuTimer0Regs.TCR.bit.TRB = 1;
// Reset interrupt counters:
CpuTimer0.InterruptCount = 0;
// CpuTimer 1 and CpuTimer2 are reserved for DSP BIOS & other RTOS
// Do not use these two timers if you ever plan on integrating
// DSP-BIOS or another realtime OS.
//
// Initialize address pointers to respective timer registers:
CpuTimer1.RegsAddr = &CpuTimer1Regs;
CpuTimer2.RegsAddr = &CpuTimer2Regs;
// Initialize timer period to maximum:
CpuTimer1Regs.PRD.all = 0xFFFFFFFF;
CpuTimer2Regs.PRD.all = 0xFFFFFFFF;
// Initialize pre-scale counter to divide by 1 (SYSCLKOUT):
CpuTimer1Regs.TPR.all = 0;
CpuTimer1Regs.TPRH.all = 0;
CpuTimer2Regs.TPR.all = 0;
CpuTimer2Regs.TPRH.all = 0;
// Make sure timers are stopped:
CpuTimer1Regs.TCR.bit.TSS = 1;
CpuTimer2Regs.TCR.bit.TSS = 1;
// Reload all counter register with period value:
CpuTimer1Regs.TCR.bit.TRB = 1;
CpuTimer2Regs.TCR.bit.TRB = 1;
// Reset interrupt counters:
CpuTimer1.InterruptCount = 0;
CpuTimer2.InterruptCount = 0;
}
//---------------------------------------------------------------------------
// ConfigCpuTimer:
//-------------
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-06-28 09:50 yanxu\
目录 0 2018-06-28 09:51 yanxu\28335_AD7606\
目录 0 2018-06-28 09:51 yanxu\28335_AD7606\7606\
目录 0 2018-06-28 09:50 yanxu\28335_AD7606\7606.CS_\
文件 3072 2014-11-28 14:29 yanxu\28335_AD7606\7606.CS_\FILE.CDX
文件 1454 2014-11-28 14:29 yanxu\28335_AD7606\7606.CS_\FILE.DBF
文件 2198 2014-11-28 14:29 yanxu\28335_AD7606\7606.CS_\FILE.FPT
文件 322048 2014-11-28 14:29 yanxu\28335_AD7606\7606.CS_\SYMBOL.CDX
文件 237942 2014-11-28 14:29 yanxu\28335_AD7606\7606.CS_\SYMBOL.DBF
文件 409497 2014-11-28 14:29 yanxu\28335_AD7606\7606.CS_\SYMBOL.FPT
文件 9397 2014-11-28 14:29 yanxu\28335_AD7606\7606.paf2
文件 1604 2014-11-28 14:29 yanxu\28335_AD7606\7606.pjt
文件 6241 2014-11-28 14:29 yanxu\28335_AD7606\7606.sbl
文件 328 2018-06-28 09:51 yanxu\28335_AD7606\7606\.ccsproject
文件 29844 2018-06-28 09:51 yanxu\28335_AD7606\7606\.cproject
文件 3165 2018-06-28 09:51 yanxu\28335_AD7606\7606\.project
目录 0 2018-06-28 09:51 yanxu\28335_AD7606\7606\.settings\
文件 62 2018-06-28 09:51 yanxu\28335_AD7606\7606\.settings\org.eclipse.cdt.codan.core.prefs
文件 123 2018-06-28 09:51 yanxu\28335_AD7606\7606\.settings\org.eclipse.cdt.debug.core.prefs
目录 0 2018-06-28 09:51 yanxu\28335_AD7606\7606\CMD\
目录 0 2018-06-28 09:51 yanxu\28335_AD7606\7606\Debug\
文件 332 2018-06-28 09:51 yanxu\28335_AD7606\7606\project.log
目录 0 2018-06-28 09:51 yanxu\28335_AD7606\7606\SRC\
文件 475 2014-11-28 14:29 yanxu\28335_AD7606\cc_build_Debug.log
目录 0 2018-06-28 09:50 yanxu\28335_AD7606\CMD\
文件 3947 2018-06-28 09:49 yanxu\28335_AD7606\CMD\28335_RAM_lnk.cmd
文件 8438 2018-06-28 09:49 yanxu\28335_AD7606\CMD\DSP2833x_Headers_nonBIOS.cmd
文件 4855 2018-06-28 09:49 yanxu\28335_AD7606\CMD\F28335.cmd
目录 0 2018-06-28 09:50 yanxu\28335_AD7606\Debug\
文件 1228 2014-11-28 14:29 yanxu\28335_AD7606\Debug.lkf
文件 1112 2014-11-28 14:28 yanxu\28335_AD7606\Debug\DSP2833x_ADC_cal.obj
............此处省略65个文件信息
- 上一篇:智能驾驶交通灯的识别程序
- 下一篇:BP神经网络训练预测控制算法
相关资源
- CCS5.05.1可使用的license
- dsp2812上128点FFTc程序以及其CMD文件
- DSP28335程序片内FLASH搬运至RAM运行的
- AD7606采集程序
- 基于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总线的通信
评论
共有 条评论