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.

TAC5212: TAC5212 : need help for a 2ch in 4ch out configuration

Part Number: TAC5212

Hello,

I am considering this codec in a new design featuring:

  • 1 stereo single-ended AC-coupled line input (2 channels L/R in)
  • 4 independant single-ended AC-coupled headphones outputs
  • slave mode I2S bus with shared FSYNC/BCLK signals between ADCs and DACs.
  • 3 I2S data lines : one for the ADCs' digital output and two for the DACs' digital input (no TDM please)

Q1.

Could you confirm that these requirements can be met using one TAC5212 chip please ?

Q2.

What is the preferred pin to feed this codec with the DAC second digital input line ? (DIN pin being the first one obviously). It is not clear whether GPI1 or GPIOx should be selected.

Q3.

Is any register configuration example available for such a use case ?

 

Many thanks

 

 

  • Hi Mathieu,

    1. Yes the TAC5212 can meet these requirements.

    2. Neither is preferred to the other to select DIN2, it is up to you. GPIO1, GPIO2, or GPI1 are available, configured in register 0xF PASI_DIN2_SEL[2:0] bits 4-2. Just make sure whichever pin is selected is assigned an input function in its respective GPI(O)x_CFG register.

    3. This register configuration should work for this use case:

    w a0 00 00 # Select Page 0
    w a0 01 01 # Software Reset
    w a0 02 09 # Exit Sleep Mode

    w a0 00 00 # Select Page 0
    w a0 0d 02 # Set GPI as input function
    w a0 0f 0c # GPI1 as primary ASI DIN2

    w a0 1a 70 # I2S mode
    w a0 1e 20 # PASI output channel 1 to DOUT left slot 0
    w a0 1f 30 # PASI output channel 2 to DOUT right slot 0
    w a0 27 0c # PASI input channel 3 and 4 on DIN2
    w a0 28 20 # PASI input channel 1 to DIN left slot 0
    w a0 29 30 # PASI input channel 2 to DIN right slot 0
    w a0 2a 20 # PASI input channel 3 to DIN2 left slot 0
    w a0 2b 30 # PASI input channel 4 to DIN2 right slot 0

    w a0 50 40 # ADC channel 1 single-ended AC-coupled input at IN1P
    w a0 55 40 # ADC channel 2 single-ended AC-coupled input at IN2P

    w a0 64 24 # OUT1x stereo single-ended output
    w a0 65 60 # OUT1P headphone drive
    w a0 66 60 # OUT1M headphone drive
    w a0 6b 24 # OUT2x stereo single-ended output
    w a0 6c 60 # OUT2P headphone drive
    w a0 6d 60 # OUT2M headphone drive

    w a0 76 cf # Enable input channels 1-2 and output channels 1-4
    w a0 78 c0 # Power up ADC and DAC

    Best,

    Garret

  • Hello Garret,

    This is crystal clear. Very versatile codec! This case can be closed thank you!