Andy Peters
Well-known member
Consider the usual audio converter box, with a delta-sigma chip, and the box has a word clock input. From the word clock input, we synthesize the modulator clock using a PLL. From that modulator clock, we also derive a bit clock for the I2S data shift register and an LRCLK which tells the shift register how to frame the serial data bits. One might presume that LRCLK indicates "the start of the sample frame," or the sampling instant.
Because of how the PLL works, the LRCLK divider output aligns with the incoming reference (the word clock). The BCLK divider is also phase-aligned with the incoming reference. (Of course LRCLK and the data must be synchronous with BCLK.)
Further, consider a black-box PLL which synthesizes the modulator clock from the incoming reference clock, but doesn't give you access to the internal divider. In other words, you don't get BCLK and LRCLK from the divider for free. Instead, you must use an external divider to get those two clocks. But without some consideration of resetting those external dividers, there's no way to ensure that the resulting LRCLK will line up with the input word clock. The edge of LRCLK could be anywhere within the sample period, on any edge of the 512x modulator clock.
The question: does it matter that the LRCLK used to drive the converters isn't aligned with the word clock?
My answer is simple: no.
But not for the reason you might think.
I have a MOTU 828 mk 2 and a another 8-channel ADC box. The two are connected via ADAT lightpipe. The 828 sources a word clock to the ADC box which slaves to it.
This lead me to speculate: if I send the same signal, say a snare drum hit, to an input on the 828 and to an input on the ADC box, is there a delay between the two? What started me down this path was a non-obvious (to most) musing, which was that the converters in the two units had different group delays, and since group delay is given in the number of samples (and sometimes it's fractional!) it was obvious that while we can sample at the same instant, the prop delays through the converters would be different so the two signals are not lined up.
In this set-up, there is also the latency in getting the samples into the ADAT serializer, and getting them back out of the ADAT deserializer in the 828, and then putting them into whatever buffer along with the samples from the 828's internal converters.
I did an experiment, feeding a snare sample into one channel of each converter box, recording, and looking at the waveforms in the DAW. Sure enough, the two signals were clearly delayed by many samples. (I will re-create this experiment and post pictures.) As such, it is apparent that we can never sample the same signal with the two different boxes and get the samples to align.
Knowing that this delay was non-zero and possibly significant, when I use this set-up to record live shows I always ensured that the drums were input on one of the boxes and the other instruments were on the other. That is, I didn't have kick drum on the 828 and snare on the other box.
And that's why I think that it doesn't matter that I2S LRCLK which ultimately feeds the converter chip doesn't need to be edge-aligned with the incoming word clock. Obviously it needs to be exactly the same frequency (the PLL's job) but the phase within the sample period doesn't matter.
Please, shoot holes in my hypothesis.
-a
Because of how the PLL works, the LRCLK divider output aligns with the incoming reference (the word clock). The BCLK divider is also phase-aligned with the incoming reference. (Of course LRCLK and the data must be synchronous with BCLK.)
Further, consider a black-box PLL which synthesizes the modulator clock from the incoming reference clock, but doesn't give you access to the internal divider. In other words, you don't get BCLK and LRCLK from the divider for free. Instead, you must use an external divider to get those two clocks. But without some consideration of resetting those external dividers, there's no way to ensure that the resulting LRCLK will line up with the input word clock. The edge of LRCLK could be anywhere within the sample period, on any edge of the 512x modulator clock.
The question: does it matter that the LRCLK used to drive the converters isn't aligned with the word clock?
My answer is simple: no.
But not for the reason you might think.
I have a MOTU 828 mk 2 and a another 8-channel ADC box. The two are connected via ADAT lightpipe. The 828 sources a word clock to the ADC box which slaves to it.
This lead me to speculate: if I send the same signal, say a snare drum hit, to an input on the 828 and to an input on the ADC box, is there a delay between the two? What started me down this path was a non-obvious (to most) musing, which was that the converters in the two units had different group delays, and since group delay is given in the number of samples (and sometimes it's fractional!) it was obvious that while we can sample at the same instant, the prop delays through the converters would be different so the two signals are not lined up.
In this set-up, there is also the latency in getting the samples into the ADAT serializer, and getting them back out of the ADAT deserializer in the 828, and then putting them into whatever buffer along with the samples from the 828's internal converters.
I did an experiment, feeding a snare sample into one channel of each converter box, recording, and looking at the waveforms in the DAW. Sure enough, the two signals were clearly delayed by many samples. (I will re-create this experiment and post pictures.) As such, it is apparent that we can never sample the same signal with the two different boxes and get the samples to align.
Knowing that this delay was non-zero and possibly significant, when I use this set-up to record live shows I always ensured that the drums were input on one of the boxes and the other instruments were on the other. That is, I didn't have kick drum on the 828 and snare on the other box.
And that's why I think that it doesn't matter that I2S LRCLK which ultimately feeds the converter chip doesn't need to be edge-aligned with the incoming word clock. Obviously it needs to be exactly the same frequency (the PLL's job) but the phase within the sample period doesn't matter.
Please, shoot holes in my hypothesis.
-a