⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ex_ram.c

📁 开发环境为CCS。DSP12个典型例子源码
💻 C
字号:
// TI File $Revision: /main/3 $
// Checkin $Date: July 2, 2007   11:28:57 $
//###########################################################################
//
// FILE:    Example_2812ExRam.c
//
// TITLE:   DSP281x Device External RAM Test. 
//
// ASSUMPTIONS:
//
//          This program requires the DSP281x V1.00 header files.  
//          As supplied, this project is configured for "boot to H0" operation.
//
//          Other then boot mode pin configuration, no other hardware configuration
//          is required. 
//
//
//###########################################################################
// $TI Release: DSP281x Header Files V1.11 $
// $Release Date: September 26, 2007 $
//###########################################################################


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

unsigned long int i=0;  
unsigned int *addr=(unsigned int *)0x080000;
void main(void)
{

   /*初始化系统*/
   InitSysCtrl();

   /*关中断*/
   DINT;
   IER = 0x0000;
   IFR = 0x0000;
   
   /*初始化PIE*/
   InitPieCtrl();

   /*初始化PIE中断矢量表*/
   InitPieVectTable();

   for(i=0;i<1000;i++) 
    {  
      		
       *addr=0x6666;
       addr++;    
    }
	for(;;);
  
}


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

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -