我用MIC1LP接一路LINE-in输入
MIC1RP接一路LINE-IN输入
现在遇到的问题是左右声道的数据反了。
在示波器下看WCLK和I2S的数据,只接MIC1LP时,WCLK高时有数据;只接MIC1RP时,WCLK低时有数据;正好和3101数据手册上讲的相反
然后当我把MIC1LP和MIC1RP都接入音频时,I2S的数据线没有任何数据了
设置是下面的代码
Write_Chip(id,0x30,0x00,0x00);//选择page0
Write_Chip(id,0x30,0x01,0x80);//I2C reset
Write_Chip(id,0x30,0x65,0x00);//CLOCK_div 默认PLL
Write_Chip(id,0x30,0x66,0xA0);//PLL_IN 选BCLK 2MHz
Write_Chip(id,0x30,0x07,0x0A);//FS(ref)48K
Write_Chip(id,0x30,0x02,0x11);//codec采样率32K = FS/1.5
Write_Chip(id,0x30,0x08,0x00);//I2S从模式
Write_Chip(id,0x30,0x09,0x30);//32位
//模拟–>IIS
Write_Chip(id,0x30,0x13,0x04);//MIC1LP到L-PGA
Write_Chip(id,0x30,0x16,0x04);//MIC1RP到R-PGA
Write_Chip(id,0x30,0x19,0x00);//偏置电压0V
Write_Chip(id,0x30,0x0F,0x26);
Write_Chip(id,0x30,0x10,0x26);
user151383853:
可以参考一下相关帖子
http://www.deyisupport.com/question_answer/analog/audio/f/42/t/68618.aspx
http://www.deyisupport.com/question_answer/analog/audio/f/42/t/49994.aspx