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

正文內(nèi)容

基于dsp(數(shù)字信號處理器)的fir低通數(shù)字濾波器器設(shè)計-文庫吧

2024-10-21 03:50 本頁面


【正文】 p0, MCBSP_RCV_START | MCBSP_XMIT_START , //開啟 McBSP0 發(fā)送和接收 0x3000)。 for(i=0。iNX。i++) { in[i] = 0。 out[i] = 0。 dbuffer[i] = 0。 } while(1) { if(timer0_t==2) { while(!MCBSP_rrdy(hMcbsp0)){}。 //判斷是否有數(shù)據(jù)收到,若無,則等待 aic23data = MCBSP_read32(hMcbsp0)。 //接收數(shù)據(jù) xtemp = (Int32) (aic23data amp。 0xffff)。 //AIC23B0 的右聲道數(shù)據(jù) temp = (Int32) ((aic23data16) amp。 0xffff)。 //AIC23B1 的左聲道數(shù)據(jù) for(i=NX。i0。i) { in[i] = in[i1]。 } in[0]=xtemp。 out[nOut]=fir(in,coeff,L)。 while(!MCBSP_xrdy(hMcbsp0)){}。 //判斷是否準(zhǔn)備好發(fā)送數(shù)據(jù),若沒有,則等待 MCBSP_write16(hMcbsp0,out[nOut])。 //發(fā)送數(shù)據(jù) nOut。 /* break point */ if ( nOut==1 ) { nOut=NX1。 } timer0_t=0。 } } } /*****************************************************/ interrupt void timer0Isr(void)//中斷服務(wù)程序 { timer0_t=2。 } /*****************************************************/ void taskFxn(void) //定時器設(shè)置子程序 { /* Temporarily disable all maskable interrupts */ old_intm = IRQ_globalDisable()。 /* Open Timer 0, set registers to power on defaults */ mhTimer0 = TIMER_open(TIMER_DEV0, TIMER_OPEN_RESET)。 /* Get Event Id associated with Timer 0, for use with */ /* CSL interrupt enable functions. */ eventId0 = TIMER_getEventId(mhTimer0)。 /* Clear any pending Timer interrupts */ IRQ_clear(eventId0)。 /* Place interrupt service routine address at */ /* associated vector location */ IRQ_plug(eventId0,amp。timer0Isr)。 /* Write configuration structure values to Timer control regs */ TIMER_config(mhTimer0, amp。timCfg0)。 /* Enable Timer interrupt */ IRQ_enable(eventId0)。 /* Enable all maskable interrupts */ IRQ_globalEnable()。 /* Start Timer */ TIMER_start(mhTimer0)。 } ifndef MYFILTER_H_ define MYFILTER_H_ // Myfilter 各控制寄存器的地址 define Myfilter_LT_LINE_CTL 0x00 // 0 define Myfilter_RT_LINE_CTL 0x02 // 1 define Myfilter_LT_HP_CTL 0x04 // 2 define Myfilter_RT_HP_CTL 0x06 // 3 define Myfilter_ANALOG_AUDIO_CTL 0x08 // 4 define Myfilter_DIGITAL_AUDIO_CTL 0x0A // 5 define Myfilter_POWER_DOWN_CTL 0x0C // 6 define Myfilter_DIGITAL_IF_FORMAT 0x0E // 7 define Myfilter_SAMPLE_RATE_CTL 0x10 // 8 define Myfilter_DIG_IF_ACTIVATE 0x12 // 9 define Myfilter_RESET_REG 0x1E // F Writing 0 to this reg triggers reset // Myfilter Control Register settings define lt_ch_vol_ctrl 0x0017 /* 0 */ define rt_ch_vol_ctrl 0x0017 /* 1 */ define lt_ch_headph_ctrl 0x0079 /* 2 */ define rt_ch_headph_ctrl 0x0079 /* 3 */ define alog_au_path_ctrl 0x0000 /* 4 */ define digi_au_path_ctrl 0x0000 /* 5 */ define pow_mgt_ctrl_ctrl 0x0002 /* 6 */ define digi_au_intf_ctrl 0x000D /* 7 */ define au_FS_TIM_ctrl 0x0000 /* 8 MCLK=12MHz, Sample Rate setting */ define digi_intf1_ctrl 0x0001 /* 9 */ define digi_intf2_ctrl 0x00FF /* 10 */ //DIGIF_FMT 寄存器各位的掩碼 define DIGIF_FMT_MS 0x40 define DIGIF_FMT_LRSWAP 0x20 define DIGIF_FMT_LRP 0x10 define DIGIF_FMT_IWL 0x0c define DIGIF_FMT_FOR 0x03 //采樣分辨率 define DIGIF_FMT_IWL_16 0x00 define DIGIF_FMT_IWL_20 0x04 define DIGIF_FMT_IWL_24 0x08 define DIGIF_FMT_IWL_32 0xc0 //數(shù)據(jù)格式 define DIGIF_FMT_FOR_MSBRIGHT 0x00 define DIGIF_FMT_FOR_MSLEFT 0x01 define DIGIF_FMT_FOR_I2S 0x02 define DIGIF_FMT_FOR_DSP 0x03 //POWER 寄存器各位的掩碼 define POWER_DEV 0x80 define POWER_CLK 0x40 define POWER_OSC 0x20 define POWER_OUT 0x10 define POWER_DAC 0x08 define POWER_ADC 0x04 define POWER_MIC 0x02 define POWER_LINE 0x01 //SRC 寄存器各位的掩碼 define SRC_CLKOUT 0x80 define SRC_CLKIN 0x40 define SRC_SR 0x3c define SRC_BOSR 0x02 define SRC_MO 0x01 //各個波特率對應(yīng)的取值 define SRC_SR_8 0x0c define SRC_SR_32 0x18 define SRC_SR_44 0x20 define SRC_SR_96 0x1C //ANAPCTL 寄存器各位的掩碼 define ANAPCTL_STA 0xc0 define ANAPCTL_STE 0x20 define ANAPCTL_DAC 0x10 define ANAPCTL_BYP 0x08 define ANAPCTL_INSEL 0x00 define ANAPCTL_MICM 0x02 define ANAPCTL_MICB 0x01 //DIGPCTL 寄存器各位的掩碼 define DIGPCTL_DACM 0x08 define DIGPCTL_DEEMP 0x06 define DIGPCTL_ADCHP 0x01 define DIGPCTL_DEEMP_DIS 0x00 define DIGPCTL_DEEMP_32 0x02 define DIGPCTL_DEEMP_44 0x04 define DIGPCRL_DEEMP_48 0x06 define DIGIFACT_ACT 0x01 define LT_HP_CTL_LZC 0x80 define RT_HP_CTL_RZC 0x80 // 中定義的函數(shù)聲明 void Myfilter_Init()。 //Myfilter 初始化函數(shù) void Myfilter_Config(unsigned int regaddr, unsigned int data)。 //Myfilter 寄存器配置 endif /*MYFILTER_H_*/ include include include include Uint16 x,y。 //Myfilter 初始化函數(shù) void Myfilter_Init() { /* Initialize I2C, using parameters in init structure */ MyI2C_Init()。 // Reset the Myfilter and turn on all power Myfilter_Config(Myfilter_RESET_REG, 0x02)。 Myfilter_Config(Myfilter_POWER_DOWN_CTL, 0)。 Myfilter_Config(Myf
點擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1