Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LRCLK missing while BCLK present #345

Open
masonpxmos opened this issue Sep 11, 2023 · 1 comment
Open

LRCLK missing while BCLK present #345

masonpxmos opened this issue Sep 11, 2023 · 1 comment

Comments

@masonpxmos
Copy link

We got a report from a customer that, their DAC(MAX98357A) is damaged possibly because sometimes XVF3000 outputs BCLK only without outputs LRCLK, According to the datasheet, the LRCLK must provide with BCLK together as follows ". Do not remove LRCLK while BCLK is present. Removing LRCLK while BCLK is present can cause unexpected output behavior including a large DC output voltage"
Thank Ross for pointing out that lib_xua will do things like this and miss LRCLK sometimes, Please help to solve this, thanks.

@xross
Copy link
Collaborator

xross commented Sep 11, 2023

Lib_xua will do this but to the best of my knowledge its has not been an issue in the past. It will occur during a SR change; the LR clock will stop and the bit clock will continue, also at startup, etc.

This is because the bclk is generated in a clock block dividing the master clock using configure_port_clock_output(p_bclk, clk_audio_bclk);

The LR clk is generated via the outputs to the port.

We could reduce this issue by stopping the bclk output whenever we are changing frequency etc. I think stop_clock(clk_audio_bclk) would probably do the trick, but it might be safer to just disable the port output of the clock (configure_port_output())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants