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

EmonLibCM_StopADC - code without effect. #1

Open
JensMunkHansen opened this issue Jul 9, 2019 · 0 comments
Open

EmonLibCM_StopADC - code without effect. #1

JensMunkHansen opened this issue Jul 9, 2019 · 0 comments
Labels
question Further information is requested

Comments

@JensMunkHansen
Copy link

This has no effect

ADCSRA |= (0<<ADATE);
ADCSRA |= (0<<ADIE);
ADCSRA |= (0<<ADSC);

Should this have been?
ADCSRA &= ~(1 << ADATE);
ADCSRA &= ~(1 << ADIE);
ADCSRA &= ~(1 << ADSC);

@TrystanLea TrystanLea added the question Further information is requested label Jan 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants