freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

dsp課程設(shè)計--多波形信號發(fā)生器(編輯修改稿)

2025-07-09 16:01 本頁面
 

【文章內(nèi)容簡介】 *********/ for(i=0。i=Nx1。i++) { float angle,xx。 angle=input0+step*i。 x1=*angle/180。 xx=x1*x1。 a=1xx/16/17。b=1xx/14/15*a。c=1xx/12/13*b。d=1xx/10/11*c。e=1xx/8/9*d。f=1xx/6/7*e。g=1xx/4/5*f。h=1xx/2/3*g。ii=x1*h。 // g=x1*(1xx/2/3*(1xx/4/5*(1xx/6/7*(1xx/8/9*(1xx/10/11*(1xx/12/13*(1xx/14/15*(1xx/16/17))))))))。//數(shù)學(xué)總公式 // fprintf(stdout,COMPUTE%f,ii)。 fprintf(stdout,\n )。 //輸出計算的正弦波的數(shù)值 ,x2=e output1[i]= 32767*ii。 //利用泰勒級數(shù)計算出正弦波的數(shù)值,存放到 output1 中 第 7 頁 共 16 頁 // output[i]=gain*output1[i]/1024。 } // 正弦波 output2[0]=0。 for(i=0。i=(Nx1)/2。i++) { output2[i+1]=output2[i]+2。 } for(i=(Nx+1)/2。i=(Nx1)。i++) { output2[i+1]=output2[i]2。 } // 三角波 for(i=0。i=(Nx1)/2。i++) { output3[i]=500。 } for(i=(Nx+1)/2。i=(Nx1)。i++) { output3[i]=0。 } // 方波 output4[0]=0。 for(i=0。i=(Nx1)。i++) { output4[i+1]=output4[i]+2。 } // Initialize CSL library This is REQUIRED !!! CSL_init()。 // The main frequency of system is 240MHz // 該頻率是為了設(shè)置 IIC 模塊的需要設(shè)置的 ,為了使 用 I2C_setup 函數(shù) PLL_setFreq(1, 0xC, 0, 1, 3, 3, 0)。 //EMIF 初始化 Emif_Config()。 // Open McBSP port 1 and get a McBSP type handle hMcbsp = MCBSP_open(MCBSP_PORT1,MCBSP_OPEN_RESET)。 // Config McBSP port 1 by use previously defined structure Mcbsp_Config(hMcbsp)。 //I2C 初始化 I2C_cofig()。 //CODEC 寄存器初始化 inti_AIC()。 第 8 頁 共 16 頁 /**/ // Receive the ADC output data of CODEC // Then output the received data to DAC of CODEC /**/ while(1) { if(wave==1) { if(gain!=gainnew) { for(i=0。iNx。i++) { output[i]=gain*output1[i]/204800。 } gainnew=gain。 } } else if(wave==2) { if(gain!=gainnew) { for(i=0。iNx。i++) { output[i]=gain*output2[i]/1024。 } gainnew=gain。 } } else if(wave==3) { if(gain!=gainnew) { for(i=0。iNx。i++) { output[i]=gain*output3[i]/1024。 } gainnew=gain。 } } else(wave==4)。 { if(gain!=gainnew) { 第 9 頁 共 16 頁 for(i=0。
點擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1