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

DAC_ENABLE should be DAC_ENABLE_bm #27

Closed
Skidlz opened this issue Oct 21, 2020 · 1 comment
Closed

DAC_ENABLE should be DAC_ENABLE_bm #27

Skidlz opened this issue Oct 21, 2020 · 1 comment

Comments

@Skidlz
Copy link

Skidlz commented Oct 21, 2020

Simple mistake in the readme.
DAC0.CTRLA|=(1<<DAC_OUTEN_bm)|1<<(DAC_ENABLE);
should be
DAC0.CTRLA|=DAC_OUTEN_bm | DAC_ENABLE_bm;

@Skidlz
Copy link
Author

Skidlz commented Oct 21, 2020

Those are bit-masks, not bit numbers. The bitshifting: "1<<" needs to be removed.

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