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

Enabling ADC 14, 15 on Due #121

Closed
kapyaar opened this issue Apr 30, 2021 · 0 comments
Closed

Enabling ADC 14, 15 on Due #121

kapyaar opened this issue Apr 30, 2021 · 0 comments

Comments

@kapyaar
Copy link

kapyaar commented Apr 30, 2021

Need help updating variants.cpp to enable ADC14 and 15. I believe it is not enabled by default.
Original definition for ADC14 in PinDescription g_APinDescription[]= is

{ PIOA, PIO_PA1A_CANRX0, ID_PIOA, PIO_PERIPH_A, PIO_DEFAULT, PIN_ATTR_DIGITAL, ADC14, NO_ADC, NOT_ON_PWM, NOT_ON_TIMER }, // CANRX

I tried

{ PIOB, PIO_PB21X1_AD14, ID_PIOB, PIO_INPUT, PIO_DEFAULT, PIN_ATTR_ANALOG, ADC14, ADC14, NOT_ON_PWM, NOT_ON_TIMER }, // AD14

Still reading 0 all the time on ADC14. Am I missing something?

@kapyaar kapyaar closed this as completed May 1, 2021
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