微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 硬件电路设计 > TI模拟硬件电路设计 > pcm 1862的寄存器配置问题 求助

pcm 1862的寄存器配置问题 求助

时间:10-02 整理:3721RD 点击:

需求背景:PCM1862 作为slave模式 ;

                  ADC 模拟MIC采集信号,IIS 输出

                  IIC控制1862

问题描述:

                 设置寄存器之后没有声音输出(  IIC功能测试Ok)

代码:

              

 ADC_WriteReg(0x00, 0xff);//reset registers
 sys_mdelay(1);

		
/*Set I2S Slave mode, ADCclk_sourse SCK_MCLK  */
ADC_WriteReg(PGA_SWITCH_REG,PGA0);
ADC_WriteReg(CLK_SET,0x41);
/*set analog mic input mode*/ Input_Sourse = 0x20; ADC_WriteReg(ADC1L_INPUT_SEL,Input_Sourse);

 ADC_WriteReg(ADC1R_INPUT_SEL,Input_Sourse);
ADC_WriteReg(ADC2L_INPUT_SEL,Input_Sourse);
 
ADC_WriteReg(ADC2R_INPUT_SEL,Input_Sourse);
/*BCK set to 64;    Current Sampling Frenquency set to 48khz*/
// ADC_WriteReg(0x72,0x04);                
ADC_WriteReg(0x73,0x03);        
ADC_WriteReg(0x74,0x32);       
/*set channel gain to max +40db*/      
ADC_WriteReg(PGA_CONTROL_MANUAL,0xFF); 
ADC_WriteReg(PGA_VAL_CH1_L,0x50); 
ADC_WriteReg(PGA_VAL_CH1_R,0x50); 
ADC_WriteReg(PGA_VAL_CH2_L,0x50); 
ADC_WriteReg(PGA_VAL_CH2_R,0x50);  
 

代码写得挺规范, 看不到问题, 能否先读写验证一下

IIC已经验证过,通信OK

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top