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

Fast ADC (AnalogReadFast) #180

Open
chsumanbabu opened this issue Jul 2, 2023 · 0 comments
Open

Fast ADC (AnalogReadFast) #180

chsumanbabu opened this issue Jul 2, 2023 · 0 comments

Comments

@chsumanbabu
Copy link

chsumanbabu commented Jul 2, 2023

Hi
I want to increase the ADC sampling rate. I have tried the below mentioned ADC Prescaler code in wiring.c file. but it was not shown any improvement in ADC sampling rate.
Please suggest.

Actual
"#elif (F_CPU >= 16000000L) // 16 MHz / 128 = 125 kHz
ADC0.CTRLC |= ADC_PRESC_DIV128_gc; "

Modified to
"#elif (F_CPU >= 16000000L) // 16 MHz / 16= 1MHz
ADC0.CTRLC |= ADC_PRESC_DIV16_gc; "

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