Better version of using S/PDIF 3 as clock source

h4yn0nnym0u5e

Well-known member
For those of you not already riveted by this thread, I've been making some improvements to the code I thought I'd finished in 2022. Essentially it allows you to use the AudioInputSPDIF3 object as the clock source not only for AudioOutputSPDIF3, but also any of the various I²S objects.

Key features:
  • allow you to use S/PDIF3 and I²S together, without the need to resample
  • sketch code needed to switch from S/PDIF input clock to internal clock if PLL lock is lost (also to switch back if it returns...)
    • example code in Audio/HardwareTesting/SPDIFsync
  • GUI changed to remove the incompatibility flag
As far as I can tell, it's not possible to clock anything else from the recovered input clock, as it's too slow to drive the TDM etc. It may be possible to use MQS, but the documentation is so vague I can't really tell.

I've closed the 3-year-old PR #446, and opened a new PR #505. Bug reports welcomed, but please do post a short sketch and hardware details so I can reproduce the problem.
 
Back
Top