PIN assignments and digital PWM #1057
coderatchance
started this conversation in
Library discussion
Replies: 2 comments 10 replies
-
|
Here an example O, and I get the feeling that you think that you must use analogWrite with analog pins. Analog pins are only required for analogRead, since the analog pins can be used by the ADC. They should have called "analogWrite" "pwmWrite". Then nobody has to be confused. |
Beta Was this translation helpful? Give feedback.
4 replies
-
|
Thanks for the link, explanation.
Looking at the 3216 pinouts According to the Arduino conventional pin numbering.
I am after using the 8 PWMs , and if I am not wrong, those can be manipulated with the analogWrite() in the Arduino IDE on all of the 8 pins with the tilde? That is: 0, 1, 7, 8, 9, 10, 11 and 16?In this case, if I want to use the TWI, namely the SDA and SCL, then the alternative pins have to be used, like 14 and 15?
Not sure how to tackle this.However, at some times along those in assignments, the RXD and TXD are as well needed.
I guess changing during the program routine between the TXD and PWM on the pin 7 is not that a big problem? Is this the right way to look at it?
In addition, such a mapping could as well be used on the 1616?
|
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello all,
I am getting out of analog PWM ports, hence I am looking at how to enable and use the digital PWM ports.
For example, when looking at the Attinyx_06.gif for the At tiny 406 the only extra PWM is available at the PB2 , namely digital PWM, however, I am not really sure how to use it with the Arduino code? Any ideas, examples?
Best.
Beta Was this translation helpful? Give feedback.
All reactions