资源简介
在CCS5.4上调试可以使用的程序,温湿度值可以在变量窗口查看

代码片段和文件信息
// 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:
//-------------
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 329 2015-08-16 19:04 DHT11\.ccsproject
文件 17524 2015-04-20 14:12 DHT11\.cdtbuild
文件 17524 2015-08-16 19:04 DHT11\.cdtbuild_initial
文件 553 2015-04-20 14:12 DHT11\.cdtproject
文件 28025 2015-08-16 19:04 DHT11\.cproject
文件 4235 2015-11-21 20:11 DHT11\.launches\lab3-timer0_LED.launch
文件 845 2015-08-16 19:04 DHT11\.project
文件 595 2015-08-16 19:04 DHT11\.project_initial
文件 62 2015-08-16 19:04 DHT11\.settings\org.eclipse.cdt.codan.core.prefs
文件 123 2015-08-16 19:04 DHT11\.settings\org.eclipse.cdt.debug.core.prefs
文件 632 2015-04-20 14:12 DHT11\.settings\org.eclipse.cdt.managedbuilder.core.prefs
文件 301 2015-08-16 19:04 DHT11\.settings\org.eclipse.core.resources.prefs
文件 220 2015-04-20 14:12 DHT11\cc_build_Debug.log
文件 3947 2015-04-20 14:12 DHT11\CMD\28335_RAM_lnk.cmd
文件 8438 2015-04-20 14:12 DHT11\CMD\DSP2833x_Headers_nonBIOS.cmd
文件 4855 2015-04-20 14:12 DHT11\CMD\F28335.cmd
文件 374 2015-11-21 20:11 DHT11\Debug\ccsObjs.opt
文件 0 2015-04-20 14:12 DHT11\Debug\CMD\ccsSrcs.opt
文件 1826 2015-04-20 14:12 DHT11\Debug\CMD\subdir.mk
文件 1577 2015-11-21 18:52 DHT11\Debug\CMD\subdir_rules.mk
文件 373 2015-11-21 18:52 DHT11\Debug\CMD\subdir_vars.mk
文件 1294 2015-11-21 12:05 DHT11\Debug\DSP2833x_ADC_cal.obj
文件 1578 2015-11-21 12:05 DHT11\Debug\DSP2833x_CodeStartBranch.obj
文件 5874 2015-11-21 12:05 DHT11\Debug\DSP2833x_CpuTimers.obj
文件 55983 2015-11-21 12:05 DHT11\Debug\DSP2833x_DefaultIsr.obj
文件 121449 2015-11-21 12:05 DHT11\Debug\DSP2833x_GlobalVariableDefs.obj
文件 5829 2015-11-21 12:05 DHT11\Debug\DSP2833x_PieCtrl.obj
文件 18031 2015-11-21 12:06 DHT11\Debug\DSP2833x_PieVect.obj
文件 16235 2015-11-21 12:06 DHT11\Debug\DSP2833x_SysCtrl.obj
文件 1303 2015-11-21 12:06 DHT11\Debug\DSP2833x_usDelay.obj
............此处省略83个文件信息
- 上一篇:人眼图像库
- 下一篇:DSP28335 三相SVPWM程序
相关资源
- F28335无刷直流电机开闭环控制
- CCS5.05.1可使用的license
- 28335CAN调试程序
- dsp2812上128点FFTc程序以及其CMD文件
- DSP28335程序片内FLASH搬运至RAM运行的
- 28335写的用spi读取传感器数据并用CA
- 基于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 源码
评论
共有 条评论