"ASYNC" S/PDIF and clockgeneration

Sub forums for various specialist XMOS applications. e.g. USB audio, motor control and robotics.
Post Reply
User avatar
lilltroll
XCore Expert
Posts: 956
Joined: Fri Dec 11, 2009 3:53 am
Location: Sweden, Eskilstuna

"ASYNC" S/PDIF and clockgeneration

Post by lilltroll »

What is the latest code status on async S/PDIF including clockgeneration, e.g. The S/PDIF RX only extracts the data (as in the S/PDIF GitHUB code), thus doesn't try to recover a Masterclock (RMCLK) via an anlogue PLL.

What I can see there is at least 2 options for clockgeneration.
I may use a MasterClock (MCLK) from an crystal, and use digital resampling applied on the signal when the datarate from the S/PDIF are drifting from the MCLK. But this is not so trivial typ of resampling, but it could give really nice jitterattenuation.

An other option is to use a "Hybrid Analog-Digital Phase Locked Loop" where the digital input would come from the intrinsic Clock from the S/PDIF.

Is there any code examples when the XAI-board or MultiChannel USB card is used as a S/PDIF -> I2S -> DAC available.


Probably not the most confused programmer anymore on the XCORE forum.
User avatar
Ross
XCore Expert
Posts: 962
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

The L2 USB Audio Reference Design uses an external fractional-n clock multiplier to generate the master clock from a reference clock generated by the XCore (based on the S/PDIF input stream)
Post Reply