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

正文內(nèi)容

基于dsp數(shù)字信號處理器的fir低通數(shù)字濾波器器設(shè)計-在線瀏覽

2025-01-13 03:50本頁面
  

【正文】 /* Open Timer 0, set registers to power on defaults */ mhTimer0 = TIMER_open(TIMER_DEV0, TIMER_OPEN_RESET)。 /* Clear any pending Timer interrupts */ IRQ_clear(eventId0)。timer0Isr)。timCfg0)。 /* Enable all maskable interrupts */ IRQ_globalEnable()。 } 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 寄存器配置 endif /*MYFILTER_H_*/ include include include include Uint16 x,y。 // Reset the Myfilter and turn on all power Myfilter_Config(Myfilter_RESET_REG, 0x02)。 Myfilter_Config(Myfilter_ANALOG_AUDIO_CTL, 0x10)。若為傳聲器輸入 ,0x10,若為MIC 輸入,則為 0x14 Myfilter_Config(Myfilter_DIGITAL_AUDIO_CTL, 0)。//0x1f=12dB 最大輸入 Myfilter_Config(Myfilter_RT_LINE_CTL,0x18)。 Myfilter_Config(Myfilter_SAMPLE_RATE_CTL, SRC_SR_44 | SRC_BOSR | SRC_MO)。 //0x7f=6dB 最大輸出 Myfilter_Config(Myfilter_RT_HP_CTL, 0x7d)。 } //Myfilter 寄存 器配置 void Myfilter_Config(unsigned int regaddr, unsigned int data) { Uint16 buf[2]。 buf[1] = data。 y = I2C_write( buf, //pointer to data array 2, //length of data to be transmitted 1, //master or slaver I2C_AIC23_1, //slave address to transmit to 1, //transfer mode of operation 30000 //time out for bus busy )。 //Myfilter 初始化函數(shù) void Myfilter_Init() { /* Initialize I2C, using parameters in init structure */ MyI2C_Init()。 Myfilter_Config(Myfilter_POWER_DOWN_CTL, 0)。//使能 DAC。 // Turn on volume for line inputs Myfilter_Config(Myfilter_LT_LINE_CTL,0x18)。 // Configure the Myfilter for master mode, 8KHz stereo, 16 bit samples // Use 12MHz USB clock Myfilter_Config(Myfilter_DIGITAL_IF_FORMAT, DIGIF_FMT_MS | DIGIF_FMT_IWL_16 | DIGIF_FMT_FOR_DSP)。//USB 模式,272 次過采樣,采樣率為 8k // Turn on headphone volume and digital interface Myfilter_Config(Myfilter_LT_HP_CTL, 0x7d)。 Myfilter_Config(Myfilter_DIG_IF_ACTIVATE, DIGIFACT_ACT)。 buf[0] = regaddr。 x = I2C_write( buf, //pointer to data array 2, //length of data to be transmitted 1, //master or slaver I2C_AIC23_0, //slave address to transmit to 1, //transfer mode of operation 30000 //time out for bus busy )。 } /******************************************************************************\ * End of \******************************************************************************/ ifndef MYI2C_H_ define MYI2C_H_ // I2C Values
點擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1