91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

本資源主要對DSP初學者有一定幫助,本源碼包括3個部分,主程序部分、鏈接命令文件和中斷向量表文件,并附有詳細的代碼注釋.代碼清晰簡單,能讓剛入門DSP的朋友熟悉CCS開發(fā)環(huán)境的C語言編寫流程和掌握對DSP定時器中斷的使用.

資源截圖

代碼片段和文件信息

#define?IMR?0
#define?TIM?0x24
#define?PRD?0x25
#define?TCR?0x26
#define?PMST?0x1d

int?con_buf=0i;
float?buf[128]; /*??save?out?wave?buffer?*/

float?y0;
float?y1=0.30901699;
float?y2=0.58778525;
const?float?aa=1.90211304;
const?float?bb=-1.;

????????????????????????
main()
{
const?int?flag?=?1;
int?*dest;
?? for(i=0;i<128;i++)
?? buf[i]=0;
??dest?=?(int?*)IMR;
??*dest?=?0;

??dest?=?(int?*)PMST;
??*dest?=?0x1020; /*?interrupt?vector?at?0x1000?*/
??
??dest?=?(int?*)TCR;
??*dest?=?0x0010; /*?stop?timer0?*/

??dest?=?(int?*)PRD;
??*dest?=?2499; /*?TINT0?frequecy?=?100MHz/2500?=?40KHz?*/

??dest?=?(int?*)IMR;
??*dest?=?0x0008; /*?enable?timer0?TINT0??*/?

??dest?=?(int?*)TCR;
??*dest?=?0x0030; /*?reload?timer0?*/
??*dest?=?0x0000; /*?start?timer0?*/

??asm?(“?rsbx?intm“);

??while?(?flag?)
??{
??}

}

void?interrupt?tint()
{
?? y0?=?aa*y1?+?bb*y2;
y2?=?y1;
y1?=?y0;?
buf[con_buf]=y0;
con_buf++;
if(con_buf?==?128)
????con_buf=0;????????????/*?set?breakpoint?to?show?wave?*/
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件????????349??2009-04-13?12:51??timer.cmd

?????文件???????1058??2009-04-13?23:48??timer.c

?????文件???????1177??2009-04-13?23:46??vec_table.asm

?????文件?????177494??2001-05-08?13:18??rts.lib

-----------?---------??----------?-----??----

???????????????180078????????????????????4


評論

共有 條評論