Skip to content

Question on DAC handling #98

Answered by SpenceKonde
robmaxtech asked this question in Q&A
Discussion options

You must be logged in to vote

hm, are you shifting the data appropriately? if you have a number X that is a 10 bit desired output value, you're setting DAC0.DATA = X <<6? That register is left-adjusted so it can be a normal 16-bit register while letting you write the low byrte onlyto use as an 8-bit DAC.,

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@robmaxtech
Comment options

Answer selected by robmaxtech
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants