TLV320AIC31 无法正常工作,现在无法确定是硬件还是驱动的问题
首先:硬件电路如图1,外接的是4段 I 版的手机耳机,万用表测量左右声道对地电阻32欧姆,外部晶振12.288MHz,AIC31工作在主模式,FS(ref) = 48KHz,FS = 8KHz;电路参考的datasheet Figure 26,如图2;
驱动的配置如下:
tlv320aic31_write(IIC_device_addr[chip_num], 2, 0xaa);
tlv320aic31_write(IIC_device_addr[chip_num], 3, 0x10);
tlv320aic31_write(IIC_device_addr[chip_num], 7, 0x0a);
tlv320aic31_write(IIC_device_addr[chip_num], 8, 0xf0);
tlv320aic31_write(IIC_device_addr[chip_num], 9, 0x07);
tlv320aic31_write(IIC_device_addr[chip_num], 12, 0x50);
tlv320aic31_write(IIC_device_addr[chip_num], 14, 0x80);
tlv320aic31_write(IIC_device_addr[chip_num], 15, 0x00);
tlv320aic31_write(IIC_device_addr[chip_num], 16, 0x00);
tlv320aic31_write(IIC_device_addr[chip_num], 17, 0x0f);
tlv320aic31_write(IIC_device_addr[chip_num], 18, 0xf0);
tlv320aic31_write(IIC_device_addr[chip_num], 19, 0x7C);
tlv320aic31_write(IIC_device_addr[chip_num], 22, 0x7C);
tlv320aic31_write(IIC_device_addr[chip_num], 25, 0x40);
tlv320aic31_write(IIC_device_addr[chip_num], 37, 0xE0);
tlv320aic31_write(IIC_device_addr[chip_num], 38, 0x14);
tlv320aic31_write(IIC_device_addr[chip_num], 40, 0x80);
tlv320aic31_write(IIC_device_addr[chip_num], 41, 0x01);
tlv320aic31_write(IIC_device_addr[chip_num], 42, 0xA8);
tlv320aic31_write(IIC_device_addr[chip_num], 43, 0x00);
tlv320aic31_write(IIC_device_addr[chip_num], 44, 0x00);
tlv320aic31_write(IIC_device_addr[chip_num], 47, 0x80);
tlv320aic31_write(IIC_device_addr[chip_num], 51, 0x9f);
tlv320aic31_write(IIC_device_addr[chip_num], 64, 0x80);
tlv320aic31_write(IIC_device_addr[chip_num], 65, 0x9f);
tlv320aic31_write(IIC_device_addr[chip_num], 102, 0x32);
在以上的软硬件基础上,上位机可以通过IIS接口读取音频的数据,也可以通过IIS接口发送音频的数据,但是输入无声音,输出也无声音,
现在不清楚问题是出在什么地方,希望TI工作人员指导下