Tool/software:
consider the following init code:
TLV320_Codec_WriteRegister(0x03, 0x10); //register 3 - Make sure PLL is disabled. TLV320_Codec_WriteRegister(0x07, 0x0C); //register 7 - 48kHZ, Left-DAC data path plays left-channel input data, right DAC plays left-channel data. TLV320_Codec_WriteRegister(0x0F, 0x28); //register 15 - Unmute left ADC PGA and set to 20dB. TLV320_Codec_WriteRegister(0x10, 0x80); //register 16 - Mute right ADC PGA TLV320_Codec_WriteRegister(0x13, 0x7C); //register 19 - Power up left ADC ONLY. do not connect LINE1L TLV320_Codec_WriteRegister(0x25, 0xE0); //register 37 - Power up left and right DAC. HPLCOM is single ended output. TLV320_Codec_WriteRegister(0x28, 0x80); //register 40 - Output common mode voltage = 1.65V TLV320_Codec_WriteRegister(0x2B, 0x00); //register 43 - Unmute left DAC channel, gain=0dB TLV320_Codec_WriteRegister(0x2C, 0x00); //register 44 - Unmute right DAC channel, gain=0dB TLV320_Codec_WriteRegister(0x65, 0x01); //register 101 - CODEC_CLKIN uses CLKDIV_OUT
Then,
TLV320_Codec_WriteRegister(0x39, 0x80); //register 57 - DAC_R1 to HPLCOM Volume Control @ 0dB TLV320_Codec_WriteRegister(0x3A, 0x09); //register 58 - HPLCOM output level control, powered up, unmuted, 0dB. TLV320_Codec_WriteRegister(0x2C, 0x80); //register 44 - Right DAC Volume Control - 0dB TLV320_Codec_WriteRegister(0x3D, 0x90); //register 61 - DAC_L1 to HPROUT Volume Control @ -5dB TLV320_Codec_WriteRegister(0x41, 0x1D); //register 65 - HPROUT Output, power up, not muted, high impedance on power-down.
This seems to me like it should work. No issue when I try to connect HPLCOM to the left DAC. I get no output on HPLCOM.
My goal is to be able to have a fixed level at HPLCOM, and a variable level at HPROUT.
Am I asking it to do something that it can't do or have I missed a register setting someplace?
Thanks all.