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.

TAD5212EVM-K: TOSLINK - just one channel - WHY?

Part Number: TAD5212EVM-K
Other Parts Discussed in Thread: TAD5212, PCM9211

Evaluating the TAD5212 on TAx512EVM-K evaluation module (with AC-MB) I have trouble to get TOSLINK (optical) input working (from host to eval board).

I get just one channel from AC-MB (U11, PCM9211). The right channel data (FS=1) is always 0!
WHY?

I tried to "debug" the PCM9211 registers. I do not see anything wrong (all running in reset default mode, 48KHz, 24bit, I2S). Also trying some register config changes - ALWAYS just one channel.
Also using other formats on my TOSLINK Tx+Rx (UCSTR-B3) - the same.
The XMOS chip (on AC-MB) does not configure any register in PCM9211 (all as default, 48KHz, 24bit, with a 32bit frame).

BTW (for other users):
The AC-MB, U11, PCM9211, has the I2C address 0x80, e.g.:
    r 80 38 01
gives me correct 48KHz (default) Fs.

Checking the I2S signals shows me: there is never data on one channel.
(TOSLINK out, PDM MICs to host PC via TOSLINK, works fine).

BTW: it is related to the PCM9211 chip on MC-AB, not the TAD5212 itself.

What is this?

TAD5212_18.png

FYI: my TAD5212 I2C config script (but not the root cause)

#Dual DAC config, single-ended out plus both PDM MICs
# Select page 0
w a0 00 00
w a0 01 01
w a0 7f 00
w a0 00 00
w a0 02 09
w a0 0a 41
w a0 0d 02
w a0 0e 02
w a0 0f 14
w a0 10 51
w a0 13 cc
w a0 1a 70  #I2S, 32bit
w a0 1e 20
w a0 1f 21
w a0 20 20
w a0 21 21
w a0 26 00  #bit offset = 0
w a0 27 0c
w a0 2a 20
w a0 2b 21
w a0 32 50
w a0 52 f4
w a0 57 f4
w a0 64 24
w a0 65 61
w a0 66 60
w a0 6b 24
w a0 6c 61
w a0 6d 60
w a0 73 08
w a0 76 cf
# Select page 3
w a0 00 03
w a0 32 80
w a0 34 90
w a0 38 09
w a0 39 28
w a0 3a 26
w a0 3b 20
w a0 3c 00
w a0 3d 00
w a0 3e 09
w a0 48 01
w a0 49 01
# Select page 10
w a0 00 0a
w a0 79 fd
w a0 7a db
w a0 7b 01
w a0 7c 80
w a0 7d 02
w a0 7e 24
w a0 7f ff
# Select page 11
w a0 00 0b
w a0 08 7f
w a0 09 fb
w a0 0a b6
w a0 0b 01
# Select page 25
w a0 00 19
w a0 6c 7f
w a0 6d fb
w a0 6e 00
w a0 6f 0f
# Select page 26
w a0 00 1a
w a0 40 00
w a0 41 0a
w a0 42 5c
w a0 43 b6
w a0 44 e0
w a0 45 00
w a0 46 00
w a0 47 00
# Select page 27
w a0 00 1b
w a0 64 e0
w a0 66 00
w a0 67 08
w a0 78 e0
w a0 7a 00
w a0 7b 05
# Select page 28
w a0 00 1c
w a0 24 0c
w a0 25 cc
w a0 26 cc
w a0 27 cc
w a0 28 7f
w a0 29 ff
w a0 2a ff
w a0 2b ff
w a0 50 08
w a0 51 ff
w a0 52 03
w a0 53 c0
# Select page 0
w a0 00 00
w a0 78 c0

r 80 38 01  #read PCM9211 register (get Fs recognized)
r 80 38 01
  • Hi Torsten,

    Changing:

    w a0 1f 21 -> w a0 1f 30 

    should do the trick, in order to assign the PDM channel 2 to DOUT right slot 0.

    Best,

    Garret

  • Hi Garret,

    thank you very much, very appreciated.
    Yes, it works now. And it makes sense! (I2S right channel is d'16, not left channel 1).

    Just a bit confused:
    why the I2S Out signal from PCM9211 (using OPTICAL/ANALOG) does not have data in right channel
    if the TDA5212 is configured with wrong format (time slot)?

    How can the TDA5212 affect the 32bit part of the generated I2S signal?
    Is it driving against the DOUT if config is wrong?

    For other users as info:

    The I2S waveform out from PCM9211 is now correct, with time slot config 0x30.

    My I2C config for TDA5212 with: optical (TOSLINK) in and out, single-ended (2x, as Dual-DAC), stereo PDM MIC to host via TOSLINK:

    #config for TOSLINK (I2S)
    #Dual DAC config, single-ended out plus both PDM MICs
    # Select page 0
    w a0 00 00
    w a0 01 01
    w a0 7f 00
    w a0 00 00
    w a0 02 09
    w a0 0a 41
    w a0 0d 02
    w a0 0e 02
    w a0 0f 14
    w a0 10 51
    w a0 13 cc
    w a0 1a 70  #I2S, 32bit
    w a0 1e 20
    w a0 1f 30  #USB: 21, TOSLINK: 30 !!
    w a0 20 20
    w a0 21 21
    w a0 26 00  #bit offset = 0 (default)
    w a0 27 0c
    w a0 29 30  #TOSLINK !!
    w a0 2a 20
    w a0 2b 30  #USB: 21, TOSLINK: 30 !!
    w a0 32 50
    w a0 52 f4
    w a0 57 f4
    w a0 64 24
    w a0 65 61
    w a0 66 60
    w a0 6b 24
    w a0 6c 61
    w a0 6d 60
    w a0 73 08
    w a0 76 cf
    # Select page 3
    w a0 00 03
    w a0 32 80
    w a0 34 90
    w a0 38 09  #USB: 09, TOSLINK: 24 ?
    w a0 39 28
    w a0 3a 26
    w a0 3b 20
    w a0 3c 00
    w a0 3d 00
    w a0 3e 09
    w a0 48 01
    w a0 49 01
    # Select page 10
    w a0 00 0a
    w a0 79 fd
    w a0 7a db
    w a0 7b 01
    w a0 7c 80
    w a0 7d 02
    w a0 7e 24
    w a0 7f ff
    # Select page 11
    w a0 00 0b
    w a0 08 7f
    w a0 09 fb
    w a0 0a b6
    w a0 0b 01
    # Select page 25
    w a0 00 19
    w a0 6c 7f
    w a0 6d fb
    w a0 6e 00
    w a0 6f 0f
    # Select page 26
    w a0 00 1a
    w a0 40 00
    w a0 41 0a
    w a0 42 5c
    w a0 43 b6
    w a0 44 e0
    w a0 45 00
    w a0 46 00
    w a0 47 00
    # Select page 27
    w a0 00 1b
    w a0 64 e0
    w a0 66 00
    w a0 67 08
    w a0 78 e0
    w a0 7a 00
    w a0 7b 05
    # Select page 28
    w a0 00 1c
    w a0 24 0c
    w a0 25 cc
    w a0 26 cc
    w a0 27 cc
    w a0 28 7f
    w a0 29 ff
    w a0 2a ff
    w a0 2b ff
    w a0 50 08
    w a0 51 ff
    w a0 52 03
    w a0 53 c0
    # Select page 0
    w a0 00 00
    w a0 78 c0
    

    Thank you very much.