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

FIFO random issue #28

Open
u0078867 opened this issue Jan 28, 2020 · 0 comments
Open

FIFO random issue #28

u0078867 opened this issue Jan 28, 2020 · 0 comments

Comments

@u0078867
Copy link

u0078867 commented Jan 28, 2020

Did anyone experience random infinite loop while calibrating?

while (samples < 0x1F)
{
	samples = (xgReadByte(FIFO_SRC) & 0x3F); // Read number of stored samples
}

When this happens the first time (randomly and seldom), the only solution is to disconnect Vcc...

I think it is safe to put a timeout condition to exit the loop.

What do you think?

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

1 participant