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

ADC should report conversion errors #740

Open
jannic opened this issue Dec 22, 2023 · 0 comments
Open

ADC should report conversion errors #740

jannic opened this issue Dec 22, 2023 · 0 comments

Comments

@jannic
Copy link
Member

jannic commented Dec 22, 2023

The ADC peripheral can report conversion errors. The datasheet explains:

Conversion errors produce undefined results, and the corresponding sample should be discarded. They indicate that
the comparison of one or more bits failed to complete in the time allowed. Normally this is caused by comparator
metastability, i.e. the closer to the comparator threshold the input signal is, the longer it will take to make a decision.
The high gain of the comparator reduces the probability that no decision is made.

Currently, we just ignore the error flag, and report the conversion result as if it was valid.

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