Hello,
We are using TLV320DAC3101 for audio out in our application. When we start the audio we are getting continously noise with the actual sound. We have verified the sound
sound data is perfectly fine.
Our configuration are MCLK : 2.088MHz , DAC fs = 8KHz , 16 bit data with I2S Protocol.
The Configuration script is given below can you please check it and verify it that the configuration is perfect or anything is wrong in the configuration.
/*Page 0 */
DAC_Register_Write(0x00,0x00);
/*SW Reset Bit Clear*/
DAC_Register_Write(0x01,0x01);
/*CLK Gen MUX Register*/
DAC_Register_Write(0x04,0x03);
/* J = 10 , D = 0 , R = 3 , P = 1*/
DAC_Register_Write(0x06,0x0A);
DAC_Register_Write(0x07,0x00);
DAC_Register_Write(0x08,0x00);
DAC_Register_Write(0x05,0x93);
/*NDAC = 5*/
/*NDAC VAL*/
DAC_Register_Write(0x0B,0x85);
/*MDAC = 3*/
/*MDAC VAL*/
DAC_Register_Write(0x0C,0x83);
/*DSOR = 522*/
/*DSOR*/
DAC_Register_Write(0x0D,0x02);
DAC_Register_Write(0x0E,0x0A);
/*Set I2S Mode with 16 bit data*/
DAC_Register_Write(0x1B,0x00);
/*Set data offset 0*/
DAC_Register_Write(0x1C,0x00);
/*Set Processing Block PRB P11 */
DAC_Register_Write(0x3C,0x0B);
/*Set Page 8 For Adaptikve Filtering Enabled */
DAC_Register_Write(0x00,0x08);
/*Adaptikve Filtering Enabled */
DAC_Register_Write(0x01,0x04);
/*Set Page 0 For Volume initialization */
DAC_Register_Write(0x00,0x00);
/*Volume control pin disable*/
DAC_Register_Write(0x74,0x00);
/*Set Page 1 For HP & SPK initialization */
DAC_Register_Write(0x00,0x01);
/*Set Common Mode Voltage to 1.35V */
DAC_Register_Write(0x1F,0x04);
/*De-pop, Power on = 800 ms, Step time = 4 ms*/
DAC_Register_Write(0x21,0x4E);
/*Set DACL->Routed to Left Channel and DACR-> Routed to Right Channel */
DAC_Register_Write(0x23,0x44);
/*Set Headphone gain */
DAC_Register_Write(0x28,0x06);
DAC_Register_Write(0x29,0x06);
/*Set Speaker gain */
DAC_Register_Write(0x2A,0x14);
DAC_Register_Write(0x2B,0x14);
/*Power up HPL and HPR */
DAC_Register_Write(0x1F,0xC6);
/*Power up MIC BIAS */
DAC_Register_Write(0x2E,0x0B);
/*Power up Speaker */
DAC_Register_Write(0x20,0xC6);
/*Set Headphone Volume -9 dB */
DAC_Register_Write(0x24,0x92);
DAC_Register_Write(0x25,0x92);
delay(1000);
/*Set Speaker Volume -9 dB */
DAC_Register_Write(0x26,0x92);
DAC_Register_Write(0x27,0x92);
/*Set Page 0 DAC Power up */
DAC_Register_Write(0x00,0x00);
/*Power Up DAC for Left and Right Channels */
DAC_Register_Write(0x3F,0xD4);
/*Set Left Gain to -22dB */
DAC_Register_Write(0x41,0xD4);
/*Set Right Gain to -22dB */
DAC_Register_Write(0x42,0xD4);
/*Unmute the Digital Volume of the DAC*/
DAC_Register_Write(0x40,0x00);
Regards
Rutvik