資源簡介
CCS5.4+Proteus8的F28027實踐課一、延時函數控制LED流水燈

代碼片段和文件信息
#include?“DSP28x_Project.h“?????//?Device?Headerfile?and?Examples?Include?File
void?main(void)
{
//?Step?1.?Initialize?System?Control:
//?PLL?WatchDog?enable?Peripheral?Clocks
//?This?example?function?is?found?in?the?DSP2802x_SysCtrl.c?file.
???InitSysCtrl();
//?Step?2.?Initalize?GPIO:
//?This?example?function?is?found?in?the?DSP2802x_Gpio.c?file?and
//?illustrates?how?to?set?the?GPIO?to?it‘s?default?state.
???InitGpio();
//?Step?3.?Clear?all?interrupts?and?initialize?PIE?vector?table:
//?Disable?CPU?interrupts
???DINT;
//?Initialize?PIE?control?registers?to?their?default?state.
//?The?default?state?is?all?PIE?interrupts?disabled?and?flags
//?are?cleared.
//?This?function?is?found?in?the?DSP2802x_PieCtrl.c?file.
???InitPieCtrl();
//?Disable?CPU?interrupts?and?clear?all?CPU?interrupt?flags:
???IER?=?0x0000;
???IFR?=?0x0000;
//?Initialize?the?PIE?vector?table?with?pointers?to?the?shell?Interrupt
//?Service?Routines?(ISR).
//?This?will?populate?the?entire?table?even?if?the?interrupt
//?is?not?used?in?this?example.??This?is?useful?for?debug?purposes.
//?The?shell?ISR?routines?are?found?in?DSP2802x_DefaultIsr.c.
//?This?function?is?found?in?DSP2802x_PieVect.c.
???InitPieVectTable();
//?Step?4.?Initialize?all?the?Device?Peripherals:
//?This?function?is?found?in?DSP2802x_InitPeripherals.c
//?InitPeripherals();?//?Not?required?for?this?example
//?Step?5.?User?specific?code:
???GpioDataRegs.GPADAT.all?=?0x00000000;??//GPIO0-GPIO31?initial?value?are?0
???while(1)
???{
???GpioDataRegs.GPATOGGLE.all=0x000000ff;
???????DELAY_US(1000);
???}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????14363??2016-07-31?01:33??day001\day001.pdsprj
?????文件????????525??2016-07-30?23:33??day001\project\.ccsproject
?????文件??????22303??2016-07-30?23:33??day001\project\.cproject
?????文件???????3920??2016-07-30?23:33??day001\project\.launches\day001.launch
?????文件????????836??2016-07-26?00:18??day001\project\.project
?????文件?????????62??2016-07-26?00:18??day001\project\.settings\org.eclipse.cdt.codan.core.prefs
?????文件????????123??2016-07-26?00:18??day001\project\.settings\org.eclipse.cdt.debug.core.prefs
?????文件????????293??2016-07-26?00:39??day001\project\.settings\org.eclipse.core.resources.prefs
?????文件???????6393??2016-07-25?22:56??day001\project\28027_RAM_lnk.cmd
?????文件????????306??2016-07-31?01:21??day001\project\Debug\ccsObjs.opt
?????文件??????87543??2016-07-31?01:21??day001\project\Debug\day001.cof
?????文件?????????21??2016-07-31?01:28??day001\project\Debug\day001.cof.asm
?????文件???????4217??2016-07-31?01:21??day001\project\Debug\day001.hex
?????文件?????????21??2016-07-31?01:22??day001\project\Debug\day001.hex.asm
?????文件???????1245??2016-07-31?01:21??day001\project\Debug\day001.i10
?????文件??????17639??2016-07-31?01:21??day001\project\Debug\day001.map
?????文件??????89039??2016-07-31?01:21??day001\project\Debug\day001_li
?????文件???????1530??2016-07-30?23:34??day001\project\Debug\F2802x_CodeStartBranch.obj
?????文件???????1261??2016-07-30?23:34??day001\project\Debug\F2802x_usDelay.obj
?????文件???????6192??2016-07-31?01:21??day001\project\Debug\main.obj
?????文件???????3639??2016-07-31?01:21??day001\project\Debug\main.pp
?????文件???????4192??2016-07-31?01:21??day001\project\Debug\makefile
?????文件????????250??2016-07-30?23:34??day001\project\Debug\ob
?????文件???????1868??2016-07-31?01:21??day001\project\Debug\sources.mk
?????文件??????28908??2016-07-30?23:34??day001\project\Debug\src\F2802x_DefaultIsr.obj
?????文件???????4205??2016-07-30?23:34??day001\project\Debug\src\F2802x_DefaultIsr.pp
?????文件??????69816??2016-07-30?23:34??day001\project\Debug\src\F2802x_GlobalVariableDefs.obj
?????文件???????3748??2016-07-30?23:34??day001\project\Debug\src\F2802x_GlobalVariableDefs.pp
?????文件???????8574??2016-07-31?01:19??day001\project\Debug\src\F2802x_Gpio.obj
?????文件???????4001??2016-07-31?01:19??day001\project\Debug\src\F2802x_Gpio.pp
............此處省略59個文件信息
- 上一篇:岡薩雷斯數字圖像處理源代碼
- 下一篇:中小型網絡組建論文,畢業設計
評論
共有 條評論