Go Down

Topic: PortManipulation page lacks information about Arduino Mega (Read 4304 times) previous topic - next topic

Hi,

The PortManipulation page has the names and corresponding pins of the ports on the smaller arduino's but doesn't have this info for my new Arduino Mega 2560. I went through the schematic for the Mega 2560 and made a table of the ports and pins. I think this info should be included on the PortManipulation page, or linked to if that is more stream lined.

Here it is (also attached in a file):

For the Arduino Mega 2560

Pin   Port Mapping
0   PORTE 0
1   PORTE 1
2   PORTE 4
3   PORTE 5
4   PORTG 5
5   PORTE 3
6   PORTH 3
7   PORTH 4

8   PORTH 5
9   PORTH 6
10   PORTB 4
11   PORTB 5
12   PORTB 6
13   PORTB 7

14   PORTJ 1
15   PORTJ 0
16   PORTH 1
17   PORTH 0
18   PORTD 3
19   PORTD 2
20   PORTD 1
21   PORTD 0

22   PORTA 0
23   PORTA 1
24   PORTA 2
25   PORTA 3
26   PORTA 4
27   PORTA 5
28   PORTA 6
29   PORTA 7

30   PORTB 7
31   PORTB 6
32   PORTB 5
33   PORTB 4
34   PORTB 3
35   PORTB 2
36   PORTB 1
37   PORTB 0

38   PORTD 7
39   PORTG 2
40   PORTG 1
41   PORTG 0
42   PORTL 7
43   PORTL 6
44   PORTL 5
45   PORTL 4

46   PORTL 3
47   PORTL 2
48   PORTL 1
49   PORTL 0
50   PORTB 3
51   PORTB 2
52   PORTB 1
53   PORTB 0


Graynomad

Thanks for this list, I'm desigining a Mega clone at present and it was good to have a second opinion to verify my own design against. I did in fact find two pins swapped because I checked against your list.

I also think I have found a bug in the list

30   PORTB 7
31   PORTB 6
32   PORTB 5
33   PORTB 4
34   PORTB 3
35   PORTB 2
36   PORTB 1
37   PORTB 0

30-37 == PC7-0 not PB.

I think the rest is correct, or at least the same as what I have :)

______
Rob
Rob Gray aka the GRAYnomad www.robgray.com

Manny

Thank you soooooooooooooooooooooooooo muucchh!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

David Cuartielles

thanks,

I am sending this to the documentation team,

/d


Graynomad

Quote
The mapping is available in the schematic:

True, but it's not in a convenient tabular form.

______
Rob
Rob Gray aka the GRAYnomad www.robgray.com

tigoe

Please see http://arduino.cc/en/Hacking/PinMapping2560 for the 2560 pin mapping and convenient tablular presentation.

Go Up