Skip to content

10-bit PWM possible? #539

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

You must be logged in to vote

Uh, you can get 3 channels at up to 16-bit as demonstrated in that example.

Unfortunately those examples aremdated. They are missing an important bit:

You want to call takeOverTCA0(); before you start reconfiguring the timer. This prevents calls to digitalWrite() from turning off PWM on the wrong pins.

You can also with much more work, get 2 channels of 12-bit PWM on two specific pins from TCD0, assuming you're not using it for millis (programming that one is an adventure for sure)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

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