Pages: [1]   Go Down
Author Topic: Analog pins A6 and A7 ber included in standard library  (Read 1070 times)
0 Members and 1 Guest are viewing this topic.
Aptos, California
Offline Offline
Jr. Member
**
Karma: 0
Posts: 64
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,

I was wondering if this has already be done, including the 2 additional pins, in the standard Ardunio software, for the mega328 chip when you use the 32 pin package. I would like to be able to read those two pins if possible. I built a PCB with the 32 pin chip and, well I need a different pin for an external interrupt and if I can use these that will free up another pin for the interrupt. Can anyone help me out.

Stan K'
Logged

Offline Offline
Edison Member
*
Karma: 17
Posts: 1041
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Arduino 1.0.1 defines A6 and A7. It also supports analogRead on them.

However, those two pins cannot be used as digital pins due to the way the chips were made (check out the datasheet!)
Logged

Aptos, California
Offline Offline
Jr. Member
**
Karma: 0
Posts: 64
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello WizenedEE,

Thanks for the input. I wasn't aware that that 1.0.1 was able to read the A6 and A7 analog inputs. Yeah, I have read a good part of the 448 pages of the data sheet. A6 and A7 are read only, that's why I wanted to use the other Ax inputs for digital  i/o and use A6 and A7 for analog only inputs. Where on the web site does it describe the addition of the additional analog inputs?

StanK
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 443
Posts: 23837
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The additional pins are used on the Nano. Select that as a board type and you should be able to access them.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Pages: [1]   Go Up
Jump to: