How to handle slight variation in MCLK Frequency Topic is solved

Sub forums for various specialist XMOS applications. e.g. USB audio, motor control and robotics.
avrobot
Member++
Posts: 16
Joined: Mon Jun 04, 2018 4:26 am

How to handle slight variation in MCLK Frequency

Post 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?
Last edited by avrobot on Tue Jan 19, 2021 11:10 am, edited 1 time in total.


View Solution
User avatar
akp
XCore Expert
Posts: 544
Joined: Thu Nov 26, 2015 11:47 pm

Post 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.
avrobot
Member++
Posts: 16
Joined: Mon Jun 04, 2018 4:26 am

Post 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...