Pages: [1]   Go Down
Author Topic: Basic MEGA pins question  (Read 655 times)
0 Members and 1 Guest are viewing this topic.
Central MN, USA
Offline Offline
Tesla Member
***
Karma: 76
Posts: 7307
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Everyone!

I just started using my MEGA1280 for a prototype work. I am learning my MEGA speak now.

Arduino official site says MEGA has 54 digital pins and 16 analog pins. So a total of 70 independent pins, correct?
The Atmel Doc2549 says 86 programmable I/O lines for MEGA640/1280/2560. Does this mean some of the I/O lines are not brought out on MEGA1280/2560?

Just want to know all my pins  smiley-mr-green in case I need to use RuggedCircuit's MegaRAM shield.

Thank you!
Logged


Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 362
Posts: 17307
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Everyone!

I just started using my MEGA1280 for a prototype work. I am learning my MEGA speak now.

Arduino official site says MEGA has 54 digital pins and 16 analog pins. So a total of 70 independent pins, correct?
The Atmel Doc2549 says 86 programmable I/O lines for MEGA640/1280/2560. Does this mean some of the I/O lines are not brought out on MEGA1280/2560?

Just want to know all my pins  smiley-mr-green in case I need to use RuggedCircuit's MegaRAM shield.

Thank you!

Yes there are 16 pins that the arduino mega boards do not break out to any socket pins, no traces leaving those chip pins. The Seeeduino mega board (1280 based) does break out those additional 16 pins to an additional socket but I'm not sure the arduino core pins definition includes those 'extra' 16 I/O pin or not and if not you would have to use direct port access commands to read or write to them.

Lefty
Logged

Central MN, USA
Offline Offline
Tesla Member
***
Karma: 76
Posts: 7307
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you Lefty! I should be alright with 56+16. Just be sure, the 16 analog pins can be used as digital pins, right?

What about the serial pins? Can I use serial ports 1-3 pins without getting into trouble?
Logged


Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 362
Posts: 17307
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you Lefty! I should be alright with 56+16. Just be sure, the 16 analog pins can be used as digital pins, right?

Yes
What about the serial pins? Can I use serial ports 1-3 pins without getting into trouble?

Yes, actually less troublesome then serial 0 as there is no USB serial converter wired to those pins.

Logged

Central MN, USA
Offline Offline
Tesla Member
***
Karma: 76
Posts: 7307
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you Lefty! I should be alright with 56+16. Just be sure, the 16 analog pins can be used as digital pins, right?

Yes
What about the serial pins? Can I use serial ports 1-3 pins without getting into trouble?

Yes, actually less troublesome then serial 0 as there is no USB serial converter wired to those pins.


Thanks again. I may want to remove the instantiation of the serials 1-3 to save some 192 bytes of SRAM since I'm not using them.
Logged


Pages: [1]   Go Up
Jump to: