Other Parts Discussed in Thread: TLV320DAC3120
Hi,
We are trying to setup an i2s interface between msp430 to TLV320DAC3120 for audio playback. Trying to play an 44.1KHZ 16-bit depth audio wav file.
Here both BCLK and WCLK are configured as INPUTS. Their frequencies are BCLK = 1.4 MHZ and WCLK = 44.1KHZ.
PLL_CLK is used as CODEC_CLK_IN. The input for PLL is BCLK. The settings and configuration are mentioned below.
/* ============================
SETTINGS CALCULATION :
PLL_CLK_IN = 1.4MHZ
PLL_CLK = (PLL_CLK_IN (R*J.D) ) / P
P = 1, R = 3, J = 20, D = 1
PLL_CLK = 84.42 MHZ
CODEC_CLK_IN = PLL_CLK
NDAC = 5, MDAC = 3, DOSR = 128
=============================================
STEP 1. REGISTERS PAGE 0
Reg 1 -> 0x01; // Soft Reset
Reg 4 -> 0x07; //PLL_CLKIN = BCLK && CODEC_CLKIN = PLL_CLK
Reg 5 -> 0x13; //PLL ON && P = 1, R = 3
Reg 6 -> 0x14; // J = 20
Reg 7 -> 0x00; // D Val MSB
Reg 8 -> 0x01; // D val LSB
Reg 11 -> 0x80 | 0x05; // NDAC POWER ON | NDAC_VAL
Reg 12 -> 0x80 | 0x03; // MDAC POWER ON | MDAC_VAL
Reg 13 -> 0x00; //DOSR MSB(9:8)
Reg 14 -> 0x80; //DOSR LSB(7:0)
Reg 27 -> 0x00; // I2S Interface && 16-bit && BCLK is INPUT && WCLK is INPUT
Reg60 -> 0x04; // PRB_P4 Engine
Reg 63 -> 0x94; //DAC Power ON && DAC Data Path = Left data
Reg 64 -> 0x04; // DAC NOT muted
Reg 65 -> 0x30; // Vol gain = 24 dB
Reg 0 -> 0x01; //Select Page 1
===============================================
STEP 2. REGISTERS PAGE 1
Reg 32 -> 0x87; //Class D driver Power ON
Reg 35 -> 0x40; //DAC routed to mixer Amplifier
Reg 38 -> 0xff; // Analog Volume routed to Class D, Volume MAX
Reg 42 -> 0x04; //Class-D driver is NOT muted
Reg 0 -> 0x00; //Select Page 0
===============================================
Is there any thing Iam missing in the configuration. Iam able to see the i2s Data and BCLK and WCLK which is going perfectly into the DAC TLV320DAC3120 as inputs. But Iam not hearing any sound from the speaker output. I'm getting an absurd 342KHz noise on speaker lines (as probed through an oscilloscope).
Could anyone please help us.
Thanks,
Thulasiram C