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

正文內(nèi)容

dsp課程設(shè)計(jì)-音頻信號(hào)頻譜分析(編輯修改稿)

2025-07-12 04:35 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 UINT16 numbers)。 //延遲 extern void delay_100us(void)。 //100us 延遲 指令之間的延遲 extern void delay_1us(void)。 //1us 延遲 時(shí)鐘之間的延遲 void delay_50ms(void)。 //50ms 延遲 復(fù)位延遲 void delay_20ms(void)。 //20ms 延遲 清屏延遲 void SendByte(UCHAR dat)。 //串行發(fā)送一字節(jié)數(shù)據(jù) void SendCMD(UCHAR dat)。 //寫指令寄存器 void SendDat(UCHAR dat)。 //寫顯示數(shù)據(jù)或單字節(jié)字符 void Display(UCHAR x_add,UCHAR dat1,UCHAR dat2)。 //寫漢字到 LCD 指定的位置 void xint2_init(void)。 //外部中斷 2 初始化子程序 interrupt void ExtInt2()。 //中斷 2 中斷子程序 void Initlcd(void)。 //初始化 LCd void display_lcd()。 void buffer()。 void data_switch(unsigned char *ptr)。 void kfft(double pr[128],double pi[128],int n,int k,double fr[128],double fi[128],int l,int il)。 // /* ************************************************************************ *********************** 函數(shù)定義 ****************** ************************************************************************ */ 第 16 頁(yè) 共 29 頁(yè) // // 函數(shù)名稱 : void cpu_init(void) // 函數(shù)說(shuō)明 : 初始化 CPU // 輸入?yún)?shù) : 無(wú) // 輸出參數(shù) : 無(wú) // void xint2_init() //外部中斷 2 初始化子程序 { *(unsigned int*)IMR=0x0004。 //使能 int2 中斷 /* bit 15 1: XINT2 flag write 1 to clear bit 143 0: reserved bit 2 1: XINT2 Polarity 1 rising eage bit 1 0: XINT2 Priority 0 High priority bit 0 1: XINT2 Enable 1 Enable interrupt */ asm( rsbx INTM)。 //開(kāi)總中斷 } interrupt void ExtInt2() //中斷 2 中斷子程序 { *(unsigned int*)IFR=0xFFFF。 //清除所有中斷標(biāo)志 ,寫 1 清 0 ,這個(gè)語(yǔ)句可以省略,響應(yīng)中斷自動(dòng)清除中斷標(biāo)志 //讀 AD7822 的轉(zhuǎn)換結(jié)果 data_buff[iii] = port8002 amp。 0x00ff。 iii++。 if(iii == 256) iii= 0。 //在此設(shè)斷點(diǎn) return。 } void cpu_init(void) { 第 17 頁(yè) 共 29 頁(yè) asm( nop )。 asm( nop )。 asm( nop )。 // //CLKMD DEFINITIONS: // PLLMUL (bit 1512) 0000 PLL multiplier = 0 (mult by 1) // PLLDIV (bit 11) 0 PLL divider = 0 (div by 1) // PLLCOUNT (bit 103) 11111111 PLL counter set to max // PLLONOFF (bit 2) 1 PLL on // PLLNDIV (bit 1) 1 Select PLL mode // PLLSTATUS (bit 1) x PLL Status (read only) // // 0000011111111111 = 0x07ff CLKMD=1 X CLKIN // *(unsigned int*)CLKMD=0x0。 //switch to DIV mode clkout= 1/2 clkin while(((*(unsigned int*)CLKMD)amp。01)!=0)。 *(unsigned int*)CLKMD=0x07ff。 //switch to PLL X 1 mode // // ST0 DEFINITIONS: // ARP (bit 1513) 000 Auxiliary register pointer // TC (bit 12) 1 Test/control flag // C (bit 11) 1 Carry is set to 1 if the result of an addition generates a carry。 it is cleared to 0 if the // result of a subtraction generates a borrow. // OVA (bit 10) 0 Overflow flag for accumulator A // OVB (bit 9) 0 Overflow flag for accumulator B // DP (bit 80) 00000000 Datamemory page pointer // // 0001 1000 0000 0000 =0x1800 Reset value // // *(unsigned int*)ST0=0x1800。 // // ST1 DEFINITIONS: // BRAF (bit 15) 0 Blockrepeat active flag // CPL (bit 14) 1 Compiler mode CPL=0 DP。CPL=1 SP // XF (bit 13) 1 XF status // HM (bit 12) 0 Hold mode // INTM (bit 11) 1 Interrupt mode INTM=0,All unmasked interrupts are enabled // Reser (bit 10) 0 Always read as 0 第 18 頁(yè) 共 29 頁(yè) // OVM (bit 9) 0 Overflow mode // SXM (bit 8) 1 Signextension mode // C16 (bit 7) 0 Dual 16Bit/doubleprecision arithmetic mode // FRCT (bit 6) 0 Fractional mode // CMPT (bit 5) 0 Compatibility mode // ASM (bit 40) 00000 Accumulator shift mode // // 0110 1001 0000 0000 =0x2900 Reset value // // *(unsigned int*)ST1=0x6900。 // //IPTR DEFINITIONS? // IPTR (bit 157) 001111111 Runtime Interrupt vector location = 0x3f80 (for now) // MP/~MC (bit 6) 1 Turn off internal Instruction ROM (use RAM) // OVLY (bit 5) 1 Turn on internal RAM // AVIS (bit 4) 1 Address visibility on // DROM (bit 3) 0 Data ROM of FF00~FFFF is external // CLKOFF (bit 2) 0 Clockout enabled,only for use clkout=cpu clock // SMUL (bit 1) 1 Saturate before multiply on MAC // SST (bit 0) 0 Do not saturate before store // // 0011 1111 1111 0010 = 0x3ff2 /**/ *(unsigned int*)PMST=0x3FF2。 // // SWWSR DEFINITIONS? // XPA (bit 15) 0 Extended program address control bit. XPA is used in conjunction with the program space fields // (bits 0 through 5) to select the address range for program space wait states // I/O (bits 1412) 111 set to max wait states for seven // Data1 (bits 119) 111 Seven Wait state for Upper data space(0x80000xFFFF) // Data2 (bits 86) 111 Seven Wait states for Lower data space (0x0000 0x7FFF) // Prog1 (bits 53) 111 Seven Wait state for Upper program space
點(diǎn)擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計(jì)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1