Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • I'm sorry, I'm not familiar with PWM libraries within the Arduino framework, but I've taken a look at the microcontroller datasheet, and it appears there is a way to operate 16-bit PWM on pin 9 (OC1A) while retaining normal port operation on pin 10 (OC1B). Please refer to table 20-4 on page 170 of the datasheet if you are willing to configure the timer manually. It is rather involving unfortunately. Perhaps there is a library for that. Commented Sep 24, 2018 at 18:22
  • I think I agree with you, after reading the datasheet, therefore I will just rewire the board and not use output pin 9. If I get a little time I will do some testing with variations but for now I don't have the time. Thank you for the info! Commented Sep 26, 2018 at 1:10
  • @user49780, read the updated answer from Gerben Commented Sep 27, 2018 at 17:54
  • You mean “Timer 1”. Both outputs 9 and 10 are driven from Timer 1, not Timer 2. Commented Sep 27, 2018 at 18:19
  • Yes, you are correct, I did mean timer 1. Commented Sep 28, 2018 at 18:35