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

Reading Analog Inputs with 12-bit resolution not working on SAMD51 #342

Open
DevonReynolds opened this issue Mar 24, 2023 · 0 comments
Open

Comments

@DevonReynolds
Copy link

adc->CTRLA.bit.ENABLE = 0x00; // Disable ADC

The board i'm using is a Grand Central.

In analogRead it enables the adc, reads the value then disables the adc. In 10 bit mode this works fine. In 12 bit resolution this approach somehow changes it to 11-bit resolution. The lowest bit is never set. If the adc is left enabled it works correctly.

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