Hello,
I am working with this codec, I use 18,432MHZ of MCLK ( It is derived from a pheripheric clock of a microcontroller, the track long is 37 mm).
The I2S bus is configured with these parameters:
I2S Bit rate: 256Khz. ( real 258.064KHZ)
Sampling frequency: 8Khz ( real 8064 HZ).
I use a TWI ( I2C) interface to control it:
void initCODEC(void)
{
writeCodec_8bit(0x00, 0x97); // Left line input chanel
writeCodec_8bit(0x02, 0x97); // Right line input chanel
writeCodec_8bit(0x04, soundLEVEL_set); // Left line input chanel volume control, con valor 0x00 pone mute
writeCodec_8bit(0x06, soundLEVEL_set); // Right line input chanel volume control, con valor 0x00 pone mute
writeCodec_8bit(0x08, 0x10); // Analog audio path control
writeCodec_8bit(0x0A, 0x01); // Digital audio path control
writeCodec_8bit(0x0C, 0x67); // Power Dwon control
writeCodec_8bit(0x0E, 0x02); // Digital audio interface format
writeCodec_8bit(0x10, 0xCE); // Sample Rate control (8Khz)
writeCodec_8bit(0x12, 0x01); // Digital interface activation
}
the codec playing a a .wav file ok; but after a time the . wav file sounds slightly wrong (skirl).
I attached to this post a circuit schematic of the codec.0576.Codec TLV320AIC23B.pdf
Can any help me with this problem?.
Thank you.