Page 1 of 2

LRCK no output under 45M/49M MCLK

Posted: Tue Nov 26, 2019 3:17 pm
by Paul Wang
I use 45M/49M MCLK Input in order to get 768k sample rate. I get BCLK for DEFAULT_FREQ when power on,but there is no LRCK output.
I only made below setting in customdefines.h.
#define MCLK_441 (1024*44100) /* 44.1, 88.2 etc */
#define MCLK_48 (1024*48000) /* 48, 96 etc */
#define MAX_FREQ (768000)
By comparing with another board with 22.5792m/24.576m MCLK ,It can output LRCK normally.

Re: LRCK no output under 45M/49M MCLK

Posted: Tue Nov 26, 2019 6:34 pm
by akp
What IP are you referring to? If it's the USB reference design I don't know if it's possible. It's possible with lib_i2s with the i2s frame based master.

Re: LRCK no output under 45M/49M MCLK

Posted: Wed Nov 27, 2019 3:42 am
by Paul Wang
My XU208 custom board.Let me check lib_i2s.

Re: LRCK no output under 45M/49M MCLK

Posted: Fri Nov 29, 2019 4:28 am
by Paul Wang
fix it!!

Re: LRCK no output under 45M/49M MCLK

Posted: Fri Nov 29, 2019 10:43 am
by akp
Glad you got it fixed.

Re: LRCK no output under 45M/49M MCLK

Posted: Tue Jan 14, 2020 11:53 am
by twittich
Hello
What did you change to fix it ?
I have the MCLK at 24 MHz not 24.576 MHz....
Thanks in advance.

Re: LRCK no output under 45M/49M MCLK

Posted: Tue Jan 14, 2020 2:24 pm
by akp
Are you saying your MCLK is "exactly" 24 MHz? What sample rate are you trying to generate? Typically the MCLK is some power of 2 multiple of your sample rate. E.g. 48 kHz * 2^9 = 24.576 MHz.

Re: LRCK no output under 45M/49M MCLK

Posted: Wed Jan 15, 2020 10:18 am
by twittich
Thanks for that fast reply. Yes the clock is exactly 24 MHz and i need a sample rate of 48 kHz. I tried to change the definition MCLK_48 to (500*48000) but then there is no more output (didn't know before that it has to be something with power of 2) ? Can the xmos generate or change that anyhow or do i have to change the oscilator ?

Re: LRCK no output under 45M/49M MCLK

Posted: Wed Jan 15, 2020 2:08 pm
by akp
It will be much easier if you use a 24.576 MHz oscillator. Are you interfacing with an ADC or DAC? If so, then the MCLK will have to be a power of 2 multiple of 48 kHz, typically 24.576 MHz or 12.288 MHz.

Re: LRCK no output under 45M/49M MCLK

Posted: Wed Jan 15, 2020 3:20 pm
by twittich
So there is no way from software side to solve that ? I'm using a TLV320DAC3120, so dac. I have to change the oscillator or workarround with the ti amp, generate an output of 24.576 and input to the xmos ? Could be possible.