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: TAD5212: use MCLK - FOR YOU

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

For the users of the TAx5x12EVM-K with TAD5212 - FYI.

If you want to evaluate the TAD5212 using the MCLK (called CCLK), you would realize:

  • the MCLK is NOT provided when you use USB as interface
  • the MCLK is there when you change S1, S0 to OPTICAL/ANALOG (using the TOSLINK input)

The good news: you can enable MCLK also in USB interface mode:

The AC-MB has a PLL chip (U2, CDCE913), with Y2 as MCLK output. It is just not configured by
AC-MB to provide also an MCLK clock in this USB mode.

But you can enable Y2 (for MCLK) via I2C commands (PPC3 commands in I2C window):

  • w ca 95 01
  • w ca 96 05    #this sets the divider: 0a=12.195MHz, 05=24.576 (01=125MHz)

So, now we can use also MCLK as clock reference, e.g. GPIO2 as input for it (as CCLK).

Please, find my I2C configuration for TAD5212 setting as:

  • use MCLK (CCLK) on GPIO2 input - jumper must be set!
  • DAC out as Pseudo-Differential (as stereo-unbalanced for headphones w/o using caps)
  • enable both PDM MICs
  • USB from host as DAC out and PDM in to USB host as MIC in
# set PLL on AC-MB to output MCLK
w CA 95 01
w CA 96 05  #05=24.576MHz, 0A=12.288MHz
#ATT: MCLK is used on GPIO2!
# Select page 0
w a0 00 00
w a0 01 01
w a0 7f 00  #what is this register??
w a0 00 00
w a0 02 09
w a0 0a 41
w a0 0b 10  #GPIO2 = GPI for any other function
w a0 0d 02
#w a0 0e 06 #optional
w a0 0f 40  #CCLK is GPIO2 in!
w a0 10 51
w a0 13 cc
w a0 1a 30
w a0 1e 20
w a0 1f 21
w a0 20 00
w a0 21 00
w a0 26 01
w a0 28 20
w a0 29 21
w a0 32 50  #48KHz
w a0 34 42  #PLL fract., CCLK synced with PASI FS!
w a0 35 00
w a0 52 f4
w a0 57 f4
w a0 64 30
w a0 65 61
w a0 6b 30
w a0 6c 61
w a0 73 08
w a0 76 cc
# Select page 3
w a0 00 03
w a0 32 80
w a0 34 90
w a0 35 02
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