This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TLV320DAC3120: TLV320DAC3120 I2S configuration issues

Part Number: TLV320DAC3120
Other Parts Discussed in Thread: TAS5720L,

Hi,

I am using microchip's HARMONY framework to generate tones using the TLV320DAC3120IRHBR on a daughter board, I tried and succeeded in configuring it to do a simple beep via I2C, but can't get it to output the I2S from the program.

At end of post is the current configuration that I send via I2C for registers, and the I2S configuration .

I would appreciate it if I can get help configuring it (or adapt my I2S configuration that was initially used with TAS5720L to work with a sample configuration) as I am an EE student with no prior I2S experience.

Thank You! 

I2S CONFIG:

I2C CONFIG FOR REGISTERS

//{REGISTER ADDRESS,VALUE}    
    uint8_t Registers[][2] = {
        {0x00, 0x00},
        {0x01, 0x01},
        {0x04, 0x03},
        {0x05, 0x91},
        {0x1B, 0x80},
        {0x06, 0x08},
        {0x07, 0x00},
        {0x08, 0x00},
        {0x0B, 0x82},
        {0x0C, 0x88},
        {0x0D, 0x00},
        {0x0E, 0x80},
        {0x12, 0x82},
        {0x13, 0x88},
        {0x14, 0x80},
        {0x00, 0x00},
        {0x3C, 0x05},
        {0x3D, 0x05},
        {0x00, 0x08},
        {0x01, 0x04},
        {0x00, 0x01},
        {0x1F, 0x14},
        {0x2A, 0x04},
        {0x2A, 0x0C},
        {0x2A, 0x14},
        {0x2A, 0x1C},
        {0x20, 0x86},
        {0x26, 0x80},
        {0x00, 0x01},
        {0x21, 0x4E},
        {0x24, 0x80},
        {0x1F, 0x84},
        {0x28, 0x06},
        {0x00, 0x01},
        {0x23, 0x40},
        {0x00, 0x00},
        {0x3F, 0x96},
        {0x40, 0x04},
        {0x41, 0x00}
    };

  • Hi Amine,

    Welcome to e2e.
    I2S bus consists of 4 signals, MCLK, WCLK, BCLK and Data.
    I'm not very familiar with Harmony environment and interface. From what I understand you're setting 44.1kHz as sampling frequency (WCLK), MCLK is 256 times Fs so it should be 11.2896MHz and BCLK = MCLK/4 = 2.8224MHz.
    Are these frequencies matching with the signals coming into MCLK, WCLK, BCLK pins of TLV320DAC3120?

    Best regards,
    -Ivan Salazar
    Audio Applications Engineer - Low Power Audio & Actuators
  • Hi Ivan,

    Thank You for your response.

    I solved the problem, I had to configure the I2S output to MONO instead of STEREO after looking at TLV320DAC3120 Datasheet.

    Best regards,

    Amine.

    TLV320DAC3120