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

Setting volume on RDA5807 in quick succession causes corruption in registers #51

Open
synth opened this issue Jan 3, 2021 · 0 comments

Comments

@synth
Copy link

synth commented Jan 3, 2021

Hi Matthias!

First, Thank you very much for your support of these libraries! I am very happy to see these in active(ish) development 👍

I am using RDA5807 chip with a custom PCB. The frequency and volume of the RDA are controlled with a rotary encoder. When we turn the rotary encoder too quickly, there are times when it causes corruption in the registers (such as changing the frequency to an invalid value). I have tried to create a critical section using sei/cli to turn off interrupts just in case, but that did not make much of a difference.

I have several of these pcb's and this issue occurs on only one of them which may indicate some electrical issue perhaps thats corrupting the registers somehow.

Do you have any additional thoughts on why this might occur?

Also, can you perhaps recommend a way to do "error correction"? In other words, I can currently do something like radio.getFrequency and detect that it's different from what my sketch expects it to be. Once I detect this, is there a way to "reset" the registers to known values? (I tried to term and then init but that caused even more problems.

Thanks!

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