Skip to content

Use safe clock freqs for AnalogOut; use DAC REFRESH on SAMD51. #649

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

Merged
merged 2 commits into from
Feb 27, 2018

Conversation

dhalbert
Copy link
Collaborator

Use not >12MHz DAC clock on SAMD51 (using 2 MHz).
Use not >350kHz DAC clock on SAMD21 (using 320 kHz, with a newly configured GCLK1 (48MHz/150).
On SAMD51, turn on REFRESH for DAC, which allows static stable output (especially noticeable at lower analog values). REFRESH == 0 0 means off. REFRESH == 1 is not allowed. REFRESH > 1 indicates length of REFRESH period. I picked 2.

Tested on Metro M0 and M4.

@dhalbert dhalbert requested a review from tannewt February 27, 2018 20:50
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

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

Successfully merging this pull request may close these issues.

2 participants