Pages: [1]   Go Down
Author Topic: nano v3.0 digital pin 20 and 21  (Read 2079 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 5
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I recently purchased the Arduino Nano v3.0 and I see it has an additional two analog pins A6 and A7.  I'd like to use these as digital outputs (D20 and D21) just like I do with A0-A5 (D14 - D19).

I tried
Code:
digitalwrite(20, HIGH)
but it didn't work like it does for 14 - 19.

I see this is a limitation of the Arduino IDE. Does anyone know of a way to overcome this maybe using registry values or something.
Logged

Chicago, USA
Offline Offline
Jr. Member
**
Karma: 0
Posts: 99
<3 U Long Time, Arduino!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

From the ATmega328 datasheet:

Quote
ADC7:6 (TQFP and QFN/MLF Package Only)
In the TQFP and QFN/MLF package, ADC7:6 serve as analog inputs to the A/D converter.
These pins are powered from the analog supply and serve as 10-bit ADC channels.

Quote
Note that ADC pins ADC7 and ADC6 do not have digital input buffers, and therefore do not
require Digital Input Disable bits.

Unfortunately, ADC6 and ADC7 are analog input only, and do not interface with the digital input or output buffers.

Need more I/O, A/D, and another PWM?  Check out the Teensyduino:
http://www.pjrc.com/teensy/teensyduino.html
« Last Edit: February 15, 2010, 04:25:51 pm by SufiBrett » Logged

Pages: [1]   Go Up
Jump to: