Connecting two I2S sources to one DAC - How to switch, what to do with the MCK lines? - diyAudio
Go Back   Home > Forums > Source & Line > Digital Line Level

Digital Line Level DACs, Digital Crossovers, Equalizers, etc.

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 11th November 2013, 02:26 PM   #1
diyAudio Member
 
Groundloops's Avatar
 
Join Date: May 2004
Location: fubar Germany.
Default Connecting two I2S sources to one DAC - How to switch, what to do with the MCK lines?

Having two I2S sources, namely Amanero asynchronous USB-to-I2S and S/PDIF transceiver WM8805, and a dual differential WM8471 DAC.

Regarding the SCK, SD and WS lines swichting can be as simple as this:

Click the image to open in full size.

But what to do with the MCK (clock) lines? The Amanero has a 24.576 MHz clock, the WM8805 derives it's frequencies from a 12.00 MHz clock. Do I have to switch both the MCK lines as well? If so, will a MUX suffice?

Shed some light on me please ...

Last edited by Groundloops; 11th November 2013 at 02:27 PM. Reason: Typo
  Reply With Quote
Old 12th November 2013, 09:41 PM   #2
diyAudio Member
 
Groundloops's Avatar
 
Join Date: May 2004
Location: fubar Germany.
No takers?
  Reply With Quote
Old 14th November 2013, 07:44 AM   #3
vzs is offline vzs  Europe
diyAudio Member
 
Join Date: Dec 2005
Location: Cluj-Napoca, Romania
WM8805 has: "Configurable clock distribution with selectable output MCLK rate of 512fs, 256fs, 128fs and 64fs."... so it's MCLK output should definitely not be 12MHz. Do you gave a schematics or at least description of your WM8805 transceiver?

Check out OTTO-II 2:1 Digital Switch Module from TPA
Use it's 0.1" (2.5mm) pin headers not the terminal blocks.

Zsolt
  Reply With Quote
Old 14th November 2013, 11:35 AM   #4
diyAudio Member
 
Groundloops's Avatar
 
Join Date: May 2004
Location: fubar Germany.
Zsolt, thank you for your answer. Regards the 12.00 MHz clock on the WM8805 have a look at this excerpt of the WM8805 evaluation board schematic:

Zwischenablage01.jpg

Seems like the 8805 derives any needed frequency from that 12.00 MHz clock ...

What IC is used on the OTTO II?



  Reply With Quote
Old 14th November 2013, 12:56 PM   #5
vzs is offline vzs  Europe
diyAudio Member
 
Join Date: Dec 2005
Location: Cluj-Napoca, Romania
The diagram you shown is for external clock input. I just ran through WM8805 datasheet but I think it uses this input (10-27MHz) to generate through its internal PLL a correct MCLK - so don't think you should care much about it.

What you should care is the Digital audio interface figure from eval board datasheet: see attached - you have there all I2S signals + MCLK

Don't know what Otto II actually uses - email the designer. Some sort of Quad 2-Input Multiplexer, e.g. 74VHC157 or similar.

Zsolt
Attached Images
File Type: png WM8805_EV1M_Rev3.1.png (32.1 KB, 304 views)
  Reply With Quote
Old 14th November 2013, 04:40 PM   #6
diyAudio Member
 
Groundloops's Avatar
 
Join Date: May 2004
Location: fubar Germany.
The WM8805 uses 10-27 MHz clock in software mode only, if I understood the datasheet right. In hardware mode the clock must be 12 Mhz.

I'm beginning to think about a possible alternative to the WM8805 ...

I don't feel comfortable with the idea to have the MCK line running through a mutliplexer - propagation delay may (will?) add jitter.

Again, thank you!
  Reply With Quote
Old 15th November 2013, 07:57 AM   #7
vzs is offline vzs  Europe
diyAudio Member
 
Join Date: Dec 2005
Location: Cluj-Napoca, Romania
Quote:
Originally Posted by Groundloops View Post
The WM8805 uses 10-27 MHz clock in software mode only, if I understood the datasheet right. In hardware mode the clock must be 12 Mhz.
This clock's frequency has nothing to do with output MCLK frequency. Forget about this 12MHz clock. MCLK frequency is generated through WM8805's internal PLL to be relative to the input stream frequency.
If you are using it in hardware mode - WM8805 pg30:
"FREQMODE control is fully automatic to ensure that the MCLK output is maintained at 256fs relative
to the S/PDIF received sample rate
.
In hardware mode, the OSCCLK must be 12MHz and hence the external crystal (or applied XIN clock) must be 12MHz. No other OSCCLK frequencies are supported in hardware mode"

Quote:
Originally Posted by Groundloops View Post
I'm beginning to think about a possible alternative to the WM8805 ...
Don't have to. Simply use H8 output - you have there all I2S lines (incl. MCLK) - and forget about the 12MHz clock.

Quote:
Originally Posted by Groundloops View Post
I don't feel comfortable with the idea to have the MCK line running through a mutliplexer - propagation delay may (will?) add jitter.
No, propagation delay is not same with jitter. Somewhere on the forum were discussing (was also a table) about jitter added by different flip-flops... don't remember exact numbers but it was irrelevant (<1ps if I remember well). Ask Otto II designer, he might know - also he might recommend you a good multiplexer (maybe VHC or AHC series)
You could also use impedance matched RF relays, but you must design a proper PCB for it otherwise is meaningless.

Zsolt
  Reply With Quote
Old 15th November 2013, 02:39 PM   #8
diyAudio Member
 
Groundloops's Avatar
 
Join Date: May 2004
Location: fubar Germany.
Thank you even more, Zsolt!

Slowly, very slowly I'm getting an idea ...
Quote:
MCLK output is maintained at 256fs relative to the S/PDIF received sample rate.
So I understand: When SPDIF input sample rate is 44.1 kHz, then MCLK output is 11.2896 MHz, 96 kHz in is 24.576 MHZ out and so on up to 192 kHz/49.152 MHz.
So the 12.00 MHz clock on the WM8805 is not a master clock in common sense as it works in indivisible relation to the sample rate of the SPDIF input.

It seems I'm somehow mixing up different things and/or I lack the basic understanding of the master clock concept in general ...

Anyway: In what I want to achieve I neither can use the Amanero's 24.576 MHz nor the WM8805's 12.00 MHz clock as a master clock:

Click the image to open in full size.
Click the image to open in full size.

I conclude that I need an ASRC. Or is there any voltage-out DAC that takes any sample rate without an ARSC?

Last edited by Groundloops; 15th November 2013 at 03:04 PM. Reason: Typo
  Reply With Quote
Old 15th November 2013, 03:10 PM   #9
vzs is offline vzs  Europe
diyAudio Member
 
Join Date: Dec 2005
Location: Cluj-Napoca, Romania
Quote:
Originally Posted by Groundloops View Post
So I understand: When SPDIF input sample rate is 44.1 kHz, then MCLK output is 11.2896 MHz, 96 kHz in is 24.576 MHZ out and so on up to 192 kHz/49.152 MHz.
So the 12.00 MHz clock on the WM8805 is not a master clock in common sense as it works in indivisible relation to the sample rate of the SPDIF input.
The 12MHz is the master (in a way) as it is used by the PLL to generate the desired MCLK.
Check the PLL in datasheet if you want to know more how MCLK is generated.

Quote:
Originally Posted by Groundloops View Post
Anyway: In what I want to achieve I neither can use the Amanero's 24.576 MHz nor the WM8805's 12.00 MHz clock as a master clock:

Click the image to open in full size.
Click the image to open in full size.
Amanero has "fixed" MCLK of 22.5792MHz/24.576MHz so according to the sample rates image WM8741 should work from 44.1Khz to 192KHz fine.

WM8805 seems to have fixed MCLK (fsx256) in hardware mode so it will work from 44.1KHz to 96KHz. For 176.4/192KHz you need (probably) software mode to have MCLK fsx128.

I think I cannot help more. Connect both to your DAC and see how it works. Use an Otto II or similar to switch between I2S sources.

Zsolt
  Reply With Quote
Old 17th November 2013, 02:22 PM   #10
diyAudio Member
 
Groundloops's Avatar
 
Join Date: May 2004
Location: fubar Germany.
Zsolt, you've helped me a lot, I could not ask for more.

Meanwhile I've found a appropriate MUX: SN74CB3Q3257

Now I have to learn how I get such a doo-hickey working. Switching it with a pushbutton (momentary switch) an having a LED signalling
the chosen input lines would be great ...
  Reply With Quote

Reply


Hide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I2S - sources and sinks AWdiyAudix Digital Line Level 4 18th December 2013 09:18 PM
How to switch multiple I2S signals to DAC ? skibum Digital Line Level 8 12th November 2010 06:49 PM
Slaving audio board with MCK on the DAC via SPDIF anbello Digital Line Level 47 28th August 2009 03:32 PM
resistors in I2S lines user_manutd Digital Line Level 3 1st April 2009 05:30 AM
5-6 lines 2 decks input switch needed Stefanoo Parts 0 9th December 2008 09:43 PM


New To Site? Need Help?

All times are GMT. The time now is 01:08 AM.


vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2014 DragonByte Technologies Ltd.
Copyright 1999-2014 diyAudio

Content Relevant URLs by vBSEO 3.3.2