This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AIC3106芯片设置采样频率只要设置Page 0/Register 2就可以了吗?



Hi,

1.如题,我实际想把采样率改成8kHz,fs(ref)是48k,然后给这个寄存器赋值0xAA,但是实际测了一下发现采样率还是48k啊。按照我的理解,如果修改成功了,下边的程序应该能够放声音30s吧,实际是只放音5s,也就是采样频率还是48000,这是怎么回事?

for ( sec = 0 ; sec < 30 ; sec++ )
{
for ( msec = 0 ; msec < 1000 ; msec++ )
{
for ( sample = 0 ; sample < 8 ; sample++ )
{
output_sample((sin[sample] << 15)| 0x00000000);

LeftSample = input_sample(); 

output_sample( (sin[sample] << 15)| 0x00000000); 
RightSample = input_sample();

}
}
}

其中Int16 sin[8] = {

0x0000,0x5A82,0x8000,0x5A82,0x0000,0xA57E,0x8000,0xA57E
};

2. 还有就是请问AIC3106 ADC和DAC的参考电压是3.3v吗?电压范围是多少呢?我对这个不太了解。我连接麦克后给PGA增益30dB,采得的数据分析了一下,有一个大概0.037的直流偏置,想问一下采的信号如何对应到真实值呢?多谢指教!