Hello,
One of my customers is testing TLV320ADC5140. they success to operate TLV320ADC5140 unless DRE function. Do you mind helping to have a view on below code? I thought it's cause by unwriting 6C register. Do you mind helping to check are there some other issue to cause DRE unwork?
Many thanks for your help!
DrvSYS_Delay(10000);
ADC_WriteReg(0x00, 0x00); //Page 0
ADC_WriteReg(0x01, 0x01); //RESET
ADC_WriteReg(0x01, 0x00); //RESET
DrvSYS_Delay(10000);
ADC_WriteReg(0x02, 0x81); // 3.3V
DrvSYS_Delay(10000);
ADC_WriteReg(0x07, 0x70); // I2S 32bit
ADC_WriteReg(0x13, 0x01); //SLAVE MCLK 12288
ADC_WriteReg(0x16, 0x08); // 256RATIO
ADC_WriteReg(0x21, 0xB0); // GIO1 MCLK INPUT
ADC_WriteReg(0x3B, 0x10); //MICBIAS VREF2.75
ADC_WriteReg(0x3C, 0x09); // CH1 MIC input 20K //51403140 DRE
ADC_WriteReg(0x41, 0x09); // CH2 MIC input 20K //5140 DRE
ADC_WriteReg(0x46, 0x09); // CH3 MIC input 20K //5140 DRE
ADC_WriteReg(0x4B, 0x09); // CH4 MIC input 20K //5140 DRE
ADC_WriteReg(0x6B, 0x09); // 4CH /4 HPF
ADC_WriteReg(0x6D, 0x4B); // DRE
ADC_WriteReg(0x3D, vol); // CH1 gain 00=0db effect 18=6dB 30=12dB
ADC_WriteReg(0x3E, 0xC9); // CH1 digital gain C9=0db effect BD=-6dB B1=-12dB
ADC_WriteReg(0x42, vol); // CH2 gain 00=0db effect
ADC_WriteReg(0x43, 0xC9); // CH2 digital gain C9=0db N
ADC_WriteReg(0x47, vol); // CH3 gain 00=0db effect
ADC_WriteReg(0x48, 0xC9); // CH3 digital gain C9=0db
ADC_WriteReg(0x4C, vol); // CH4 gain 00=0db effect
ADC_WriteReg(0x4D, 0xC9); // CH4 digital gain C9=0db
ADC_WriteReg(0x73, 0xF0); // En Ch1 ~4
ADC_WriteReg(0x74, 0xF0);
ADC_WriteReg(0x75, 0xE4); // PWRUP
Best regards