Page 1 of 1

How to handle slight variation in MCLK Frequency

Posted: Sat Jan 16, 2021 10:59 am
by avrobot
Hi, we have an industrial application with audio where we need to have dynamic control over MCLK frequency on the Xcore-200 MC audio board (This is due to a special application on the Host that has some variation).
The output of the PLL seems clean and the audio glitches happen a within one second of the change (not necessarily immediately).

Are there any constraints or buffering we can add to the app_usb_aud_xk_216_mc example application to allow for this?
How could we implement this in a glitch-less way?

Re: How to handle slight variation in MCLK Frequency

Posted: Mon Jan 18, 2021 2:00 pm
by akp
Just to clarify, is this in Speaker (DAC) mode or Mic (ADC) mode, or both? Honestly I probably won't be able to help but that information might be helpful to someone else who can.

Re: How to handle slight variation in MCLK Frequency

Posted: Tue Jan 19, 2021 11:14 am
by avrobot
Thanks akp, actually we just tried changing some of the blocking chan to non-blocking streaming chans in our code - so I think our issue was some activity blocking the audio threads for a short time...