我這里有一個工程,同時要使能AIC3204的ADC和DAC,IIS總線接的是6748,這里雙向包養違法通訊我們之前檢測是沒有題目的。AIC3204電路如下
我們今朝數字電子訊號從DIN輸出后,LOL和LOR有模仿電子訊號輸入。AIN-1、AIN+1模仿電子訊號輸出,可是DOUT數字電子訊號一向沒反映。我改了好幾遍偏置一向沒啥反映請ti的工程師了解一下狀況是不是哪里設置裝備擺設的有題目。
void aic3204Init(void){ CODEC_RESET = 1; delay_ms(2); CODEC_RESET = 0; //;p包養女人 Reset 1 # Release the reset pin //;# RESET aic3204_res = aic3204_Write_Reg(0x00,0X0); //WW 30, 00h, 00h ; # Select register page 0 aic3204_res = aic3包養甜心網204_Write_Reg(0x01,0X1); 包養價格ptt //WW 30, 01h, 01h ; # I2C reset delay_ms(10); //;# CLOCK SETTINGS aic3204_res = aic3204_Write_Reg(0x0B,0X81); 包養條件 //WW 30, 0Bh, 81h ; # PoWWer up the NDAC divider WWith value 1 aic3204_res = aic3204_Write_Reg(0x0C,0X82); //WW 30, 0Ch, 82h ; # PoWWe包養sdr up the MDAC divider WWith value 2 包養合約 aic3204_res = aic3204_Write_Reg(0x0D,0X00); //WW 30, 0Dh, 包養犯法嗎包養站長00h ; # Program OSR for DAC to 128 (MSB) aic3204_res = aic3204_Write_Reg(0x0E,0X80); //WW 30, 0Eh, 80h ; # Program OSR for DAC to 128 (LSB) //12 13 14 //w 30 12h 81 # Power up the NADC divider with value 1 //w 30 13h 82 # Power up the MADC divider with value 2 //w 30 14h 80 # Program OSR for 包養網dcardADC to 128包養故事 aic3204_res = aic3204_Write_Reg包養條件(0x12,0X81); aic3204_res = aic3204_Write_Reg(0x13,0X82); aic3204_res = 嗚嗚嗚嗚嗚嗚嗚嗚嗚嗚嗚嗚嗚嗚嗚嗚嗚嗚嗚嗚嗚嗚嗚嗚嗚嗚嗚嗚嗚嗚嗚嗚嗚嗚嗚嗚嗚嗚嗚嗚嗚嗚嗚整個aic3204_Write_Reg(0x14,0X80); //;# DIGITAL INTERFACE 包養故事aic3204_res = aic3204_Write_Reg(“趙管家,送客,跟門房說,姓熹的,不准踏入我蘭家的大門。”藍夫人氣呼呼的跟了上去。0x1B,0X00); //WW 30, 1Bh, 00h ; # I2S, 16-bit, BCLK and WWCLK are inputs //;# PROCESSING BLOCK USAGE aic3204_res = aic3204_Write_Reg(0x3C,0X08); //WW 30, 3Ch, 08h ; # Select DAC processing block PRB_P8 //w 30 3D 04 包養違法 # Select ADC processing block PRB_R4 aic3204_res = aic3204_Write_Reg(0x3D,0X04); //;# ANALOG POWWER SUPPLY aic3204_res = aic3204_Write_Reg(0x00,0X01); //WW 30, 00h, 01h ; # Select register page 1 aic3204_res = aic3204_Write_Reg(0x01,0X08); //WW 30, 01h, 08台灣包養h ; # Disable internal crude AVDD before poWWering up the internal AVDD LDO aic3204_res = aic3204_Writ包養俱樂部e_Reg(0x02,0X01); //WW 30, 02h, 01h ; # Enable internal analog LDO, analog blocks poWWered //;WW 30, 02h, 00h ; # Enable internal analog LDO, analog blocks poWWered aic3204_res = aic3204_Write_Reg(0x0A,0X40); //WW 30, 0Ah, 40h ; # Common mode set to 0.75V //;# MICPGA DELAY, REFERENCE CHA包養軟體RGING AND HEADPHONE DE-POP //;WW 30, 47h, 31h ; # MICPGA startup delay is 包養犯法嗎3 ms aic3204_res = aic3204_Write_Reg(0包養網比較x7B,0X01); //WW 30, 7Bh, 01H ; # Reference charging time is 40 ms //aic3204_res = aic3204_W包養網dcardrite_Reg(0x14,0X65); //;WW 30, 14h, 65h ; # HP driver po包養留言板WWer-up: 50 ms soft routing step time, 5.0 time constants, 6k resistance //;# AUDIO ROUT包養感情ING //aic3204_res = aic3204_Write_R包養犯法嗎eg(0x0C,0X08); //;WW 30, 0Ch, 08h ; # HPL routing: Left channel //aic3204_res = aic3204_Write_Reg(0x0D,0X08); //;WW 30, 0Dh, 08h ; # HPR routing: Right 包養條件channel aic3204_res = aic3204_Write_Reg(0x0E,0X08); 包養意思//WW 30, 0Eh, 08h ; # LOL routing: Left channel aic3204_res = aic3204_Write甜心寶貝包養網_Reg(0x0F,0X08); //WW 30, 0Fh長期包養, 08h ; # LOR routing: Right channel //Full-Differential Mono Mic connected to IN1L/IN1R select page 1 包養甜心網//w 30 34 00 # No routed to Left MIC包養妹PGA Positive //w 30 36 00 # No routed to Left MICPGA Negative //w 30 37 40 # IN1R is routed to Right MICPGA Positive with 10K resistance //w 30 39 10 # IN1L is routed to Right MICPGA Negative with 10K resistance aic3204_res = aic3204_Write_Reg(0x34,0X00); aic3204_res = aic3204_Write_Reg(0x36,0X00); aic3204_res = aic3204_Write_Reg(0x37,0X40); aic3204_res = aic3204_Write_Reg(0x39,0X10); aic3204_res = aic3204_Write_Reg(0x12,0X00); //WW 30, 12h, 00h ; # LOL driver is not muted aic3204_res = aic3204_Write_Reg(0x13,0X00); //WW 30, 13h, 00h ; # LOR driver is not muted aic3204_res = aic3204_Write_Reg(0x09,0X3C); //WW 30, 09h, 3Ch ; # Output Driver Power Control ALLOUT powered up delay_ms(10); //mov A,28h ;after 18 cmds do delay 8.6ms //call dly_lcd_timex 裴奕眼睛亮晶晶的看著兒媳婦,發現她對自己的吸引力真的是越來越大了。如果他不趕緊和她分開,他的感情用不了多久就會 aic3204_res = aic3204_Write_Reg(0x00,0X00); //WW 30, 00包養行情h, 00h ; # Select register page 0 aic3204_res = aic3204_Write_Reg(0x3F,0X0D6); //WW 30, 3Fh, 0D6h ; # aic3204_res = aic3204_Write_Reg(0x40,0X00); //包養留言板WW 30, 40h, 00h ; #}
• 經由過程tlv320aic3204采集聲響然后給c5535停止處置,仿真時檢查I2S的數據接受存放器值一向為0,為什么?38
• 請問AIC3204的IN1L/IN1R到HPL/HPR的銜接無法斷開嗎?168
從您供給的代碼和描寫來看,您曾經勝利地初始化了AIC3204的ADC和DAC效能。可是,您提到DOUT數字電子訊號沒有反映。這能夠是由于以下幾個緣由:
1. 時鐘設置裝備擺設題目:請確保您的I2S總線時鐘設置裝備擺設對的。AIC3204需求一個穩固的時鐘輸出來正常任務。您需求檢討您的時鐘設置裝備擺設,確保它知足AIC3204的請求。
2. 數據格局題目:請檢討您的數據格局能否對的。AIC3204支撐多種數據格局,如I2S、左對齊和右對齊等。您需求確保您的數據格局與AIC3204的請求相婚配。
3. 偏置設置裝備擺設題目:您提到曾經測驗考試修正偏置,但依然沒有反映。請檢討您的偏置設置裝備擺設能否對的。AIC3204的偏置設置裝備擺設觸及到多個存放器,如PGA、ADC和DAC的偏置等。您需求確保這些存放器的設置裝備擺設對的。
4. 硬件銜接題目:請檢討您的硬件銜接能否對的。確保AIC3204的DIN、DOUT、LRCLK和BCLK引腳與您的I2S總線銜接對的。
5. 軟件題目:請檢討您的軟件代碼能否對的。確保您的代碼對的地初始化了AIC3204,并對的地處置了數據傳輸。
以下是一些提出的調試步調:
1. 應用示波器檢討I2S總線上的電子訊號,確保時鐘和數據電子訊號正常。
2. 應用邏輯剖析儀檢討I2S總線上的數據傳輸,確保數據格局對的。
3. 應用I2C調試東西檢討AIC3204的存放器設置裝備擺設,確保偏置設置裝備擺設對的。
4. 檢討硬件銜接,確保一切包養網dcard引腳銜接對的。
5. 慢慢調試您的軟件代碼,確保數據傳輸對的。
盼望這些提出能輔助您處理題目。假如題目依然存在,請供給更多具體信息,以便我們進一個步驟剖析。