-
大小: 458KB文件类型: .rar金币: 2下载: 1 次发布日期: 2021-05-20
- 语言: 其他
- 标签: TMS320F28027 串口 中断
资源简介
TMS320F28027自带有串口,利用串口中断与上位机(电脑)进行数据交换,软件设置成 上位机所发数据要以‘*’结束。
仅供DSP板的学习所用,软件用的是CCS4.1,编译如果不能通过,就把工程存放目录名中的汉字去掉!

代码片段和文件信息
// TI File $Revision: /main/5 $
// Checkin $Date: December 16 2009 16:43:59 $
//###########################################################################
//
// FILE: DSP2802x_Adc.c
//
// title: DSP2802x ADC Initialization & Support Functions.
//
//###########################################################################
// $TI Release: 2802x C/C++ Header Files V1.25 $
// $Release Date: December 18 2009 $
//###########################################################################
#include “DSP2802x_Device.h“ // DSP2802x Headerfile Include File
#include “DSP2802x_Examples.h“ // DSP2802x Examples Include File
#define ADC_usDELAY 1000L
//---------------------------------------------------------------------------
// InitAdc:
//---------------------------------------------------------------------------
// This function initializes ADC to a known state.
//
// NOTE: ADC INIT IS DIFFERENT ON 2802x DEVICES COMPARED TO OTHER 28X DEVICES
//
void InitAdc(void)
{
extern void DSP28x_usDelay(Uint32 Count);
// *IMPORTANT*
// The Device_cal function which copies the ADC calibration values from TI reserved
// OTP into the ADCREFSEL and ADCOFFTRIM registers occurs automatically in the
// Boot ROM. If the boot ROM code is bypassed during the debug process the
// following function MUST be called for the ADC to function according
// to specification. The clocks to the ADC MUST be enabled before calling this
// function.
// See the device data manual and/or the ADC Reference
// Manual for more information.
EALLOW;
SysCtrlRegs.PCLKCR0.bit.ADCENCLK = 1;
(*Device_cal)();
EDIS;
// To powerup the ADC the ADCENCLK bit should be set first to enable
// clocks followed by powering up the bandgap reference circuitry and ADC core.
// Before the first conversion is performed a 5ms delay must be observed
// after power up to give all analog circuits time to power up and settle
// Please note that for the delay function below to operate correctly the
// CPU_RATE define statement in the DSP2802x_Examples.h file must
// contain the correct CPU clock period in nanoseconds.
EALLOW;
AdcRegs.ADCCTL1.bit.ADCBGPWD = 1; // Power ADC BG
AdcRegs.ADCCTL1.bit.ADCREFPWD = 1; // Power reference
AdcRegs.ADCCTL1.bit.ADCPWDN = 1; // Power ADC
AdcRegs.ADCCTL1.bit.ADCENABLE = 1; // Enable ADC
AdcRegs.ADCCTL1.bit.ADCREFSEL = 0; // Select interal BG
EDIS;
DELAY_US(ADC_usDELAY); // Delay before converting ADC channels
}
void InitAdcAio()
{
EALLOW;
/* Configure ADC pins using AIO regs*/
// This specifies which of the possible AIO pins will be Analog input pins.
// NOTE: AIO1357-9111315 are analog inputs in all AIOMUX1 configurations.
// Comment out
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 5975 2013-08-15 12:45 DSP\DSP2802x_common\cmd\280200_RAM_lnk.cmd
文件 6387 2013-08-15 12:45 DSP\DSP2802x_common\cmd\28020_RAM_lnk.cmd
文件 6387 2013-08-15 12:45 DSP\DSP2802x_common\cmd\28021_RAM_lnk.cmd
文件 6387 2013-08-15 12:45 DSP\DSP2802x_common\cmd\28022_RAM_lnk.cmd
文件 6387 2013-08-15 12:45 DSP\DSP2802x_common\cmd\28023_RAM_lnk.cmd
文件 6387 2013-08-15 12:45 DSP\DSP2802x_common\cmd\28026_RAM_lnk.cmd
文件 6387 2013-08-15 12:45 DSP\DSP2802x_common\cmd\28027_RAM_lnk.cmd
文件 8195 2013-08-15 12:45 DSP\DSP2802x_common\cmd\F28020.cmd
文件 7848 2013-08-15 12:45 DSP\DSP2802x_common\cmd\F280200.cmd
文件 8191 2013-08-15 12:45 DSP\DSP2802x_common\cmd\F28021.cmd
文件 8197 2013-08-15 12:45 DSP\DSP2802x_common\cmd\F28022.cmd
文件 8193 2013-08-15 12:45 DSP\DSP2802x_common\cmd\F28023.cmd
文件 8196 2013-08-15 12:45 DSP\DSP2802x_common\cmd\F28026.cmd
文件 8204 2013-08-15 12:45 DSP\DSP2802x_common\cmd\F28027.cmd
文件 19178 2013-08-15 12:45 DSP\DSP2802x_common\gel\ccsv4\f28020.gel
文件 19177 2013-08-15 12:45 DSP\DSP2802x_common\gel\ccsv4\f280200.gel
文件 19174 2013-08-15 12:45 DSP\DSP2802x_common\gel\ccsv4\f28021.gel
文件 19176 2013-08-15 12:45 DSP\DSP2802x_common\gel\ccsv4\f28022.gel
文件 19171 2013-08-15 12:45 DSP\DSP2802x_common\gel\ccsv4\f28023.gel
文件 19172 2013-08-15 12:45 DSP\DSP2802x_common\gel\ccsv4\f28026.gel
文件 19176 2013-08-15 12:45 DSP\DSP2802x_common\gel\ccsv4\f28027.gel
文件 60668 2013-08-15 12:45 DSP\DSP2802x_common\gel\f28020.gel
文件 60672 2013-08-15 12:45 DSP\DSP2802x_common\gel\f280200.gel
文件 60668 2013-08-15 12:45 DSP\DSP2802x_common\gel\f28021.gel
文件 61569 2013-08-15 12:45 DSP\DSP2802x_common\gel\f28022.gel
文件 61574 2013-08-15 12:45 DSP\DSP2802x_common\gel\f28023.gel
文件 61731 2013-08-15 12:45 DSP\DSP2802x_common\gel\f28026.gel
文件 61734 2013-08-15 12:45 DSP\DSP2802x_common\gel\f28027.gel
文件 4937 2013-08-15 12:45 DSP\DSP2802x_common\include\DSP2802x_DefaultISR.h
文件 5446 2013-08-15 12:45 DSP\DSP2802x_common\include\DSP2802x_EPwm_defines.h
............此处省略110个文件信息
相关资源
- 易语言OTG串口通信
- delphi 串口通讯
- STM32蓝牙和串口程序
- LCD显示温度+串口接收温度.rar
- WPF USB 网络 串口 通信软件
- DELPHI与西门子200PLC的串口通信实例
- Verilog FPGA UART串口控制器
- USB转串口驱动,FT232R驱动程序,最新
- PC -- 单片机的串口数据传输系统设计
- STM32F103 串口程序(完整版)
- stm32 ds18b20 温度传感器 测试通过
- PC 串口调试软件
- STM32F103定时器中断程序
- 51单片机读取温度数据存储到SD卡中并
- 单片机与PC机串口通讯仿真
- 串口调试助手V5.0
- 8259A中断控制实验
- 双串口调试助手 V4.0 _ 可同时调试两个
- 读取串口数据并画实时曲线的VC 程序
- 课程设计蔬菜大棚自动控制系统,包
- 网络(UDP)转串口程序
- 串口绘制曲线 将收到的数据进行曲线
- 基于ARM蓝牙传输源程序
- JS操作本地网页串口源码
- AT89S ISP下载编程软件(串口)
- 串口操作类(justinio)
- 《Visual Basic 串口通信与测控应用技术
- 耀华XK3190-A9地磅串口代码
- ch452串口键盘驱动程序
- 托利多电子秤ind245协议读取串口数据
评论
共有 条评论