DSP2812 串口通信完整工程代码


DSP2812 串口通信完整工程代码 串口通信 调试通过 完整工程
资源截图
代码片段和文件信息
// TI File $Revision: /main/2 $
// Checkin $Date: April 29 2005   11:11:45 $
//###########################################################################
//
// FILE: DSP281x_Adc.c
//
// title: DSP281x ADC Initialization & Support Functions.
//
//###########################################################################
// $TI Release: DSP281x C/C++ Header Files V1.20 $
// $Release Date: July 27 2009 $
//###########################################################################

#include “DSP281x_Device.h“     // DSP281x Headerfile Include File
#include “DSP281x_Examples.h“   // DSP281x Examples Include File

#define ADC_usDELAY  8000L
#define ADC_usDELAY2 20L

//---------------------------------------------------------------------------
// InitAdc: 
//---------------------------------------------------------------------------
// This function initializes ADC to a known state.
//
void InitAdc(void)
{
extern void DSP28x_usDelay(Uint32 Count);

    // To powerup the ADC the ADCENCLK bit should be set first to enable
    // clocks followed by powering up the bandgap and reference circuitry.
    // After a 5ms delay the rest of the ADC can be powered up. After ADC
    // powerup another 20us delay is required before performing the first
    // ADC conversion. Please note that for the delay function below to
    // operate correctly the CPU_CLOCK_SPEED define statement in the
    // DSP28_Examples.h file must contain the correct CPU clock period in
    // nanoseconds. For example:

AdcRegs.ADCTRL3.bit.ADCBGRFDN = 0x3; // Power up bandgap/reference circuitry
DELAY_US(ADC_usDELAY);                  // Delay before powering up rest of ADC
AdcRegs.ADCTRL3.bit.ADCPWDN = 1; // Power up rest of ADC
DELAY_US(ADC_usDELAY2);                 // Delay after powering up ADC
}

//===========================================================================
// No more.
//===========================================================================

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-04-25 09:41  47LED_chuankou5
     目录           0  2018-04-25 09:41  47LED_chuankou5DSP281x_common
     目录           0  2018-04-25 09:41  47LED_chuankou5DSP281x_commoncmd
     文件        6680  2009-08-04 09:30  47LED_chuankou5DSP281x_commoncmdF2810.cmd
     文件        7285  2009-08-04 09:30  47LED_chuankou5DSP281x_commoncmdF2812.cmd
     文件        4827  2015-04-28 12:26  47LED_chuankou5DSP281x_commoncmdF2812_EzDSP_RAM_lnk.cmd
     文件        7479  2009-08-04 09:30  47LED_chuankou5DSP281x_commoncmdF2812_XintfBoot.cmd
     文件        4886  2015-04-09 10:52  47LED_chuankou5DSP281x_commoncmdF2812_YHDSP_RAM_lnk.cmd
     文件        7418  2015-04-09 14:18  47LED_chuankou5DSP281x_commoncmdYHF2812_XintfBoot.cmd
     目录           0  2018-04-25 09:41  47LED_chuankou5DSP281x_commoninclude
     文件        2047  2009-03-09 00:00  47LED_chuankou5DSP281x_commonincludeDEVICE.H
     文件        4799  2009-08-04 09:30  47LED_chuankou5DSP281x_commonincludeDSP281x_DefaultIsr.h
     文件        3251  2009-08-04 09:30  47LED_chuankou5DSP281x_commonincludeDSP281x_Examples.h
     文件        2544  2009-08-04 09:30  47LED_chuankou5DSP281x_commonincludeDSP281x_GlobalPrototypes.h
     文件      146860  2009-08-04 09:30  47LED_chuankou5DSP281x_commonincludeDSP281x_SWPrioritizedIsrLevels.h
     文件         528  2009-03-09 00:00  47LED_chuankou5DSP281x_commonincludeFat16.h
     文件         540  2009-03-09 00:00  47LED_chuankou5DSP281x_commonincludeFat32.h
     文件         426  2009-03-09 00:00  47LED_chuankou5DSP281x_commonincludeHAL.h
     文件         622  2009-03-09 00:00  47LED_chuankou5DSP281x_commonincludeHPI16.h
     文件         911  2009-03-09 00:00  47LED_chuankou5DSP281x_commonincludeHPI32.H
     文件        7531  2015-04-08 14:54  47LED_chuankou5DSP281x_commonincludeSD.h
     文件        2056  2009-03-09 00:00  47LED_chuankou5DSP281x_commonincludeSFO.h
     文件        2993  2009-03-09 00:00  47LED_chuankou5DSP281x_commonincludeSFO_V5.h
     文件         925  2009-03-09 00:00  47LED_chuankou5DSP281x_commonincludecommon.h
     文件        1239  2015-04-01 15:01  47LED_chuankou5DSP281x_commonincludeext_inf.h
     文件         574  2009-03-09 00:00  47LED_chuankou5DSP281x_commonincludefat.h
     文件       11036  2009-03-09 00:00  47LED_chuankou5DSP281x_commonincludestring.h
     文件         646  2006-04-19 15:00  47LED_chuankou5DSP281x_commonincludevolume.h
     目录           0  2018-04-25 09:41  47LED_chuankou5DSP281x_commonlib
     文件      526414  2007-04-13 17:19  47LED_chuankou5DSP281x_commonlibIQmath.lib
     文件        5822  2005-09-08 10:58  47LED_chuankou5DSP281x_commonlibSFO_TI_Build.lib
............此处省略123个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)