Mega 2560 Pinout Mapping
Pin No. Function Description
1 PG5 PWM on Digital Pin 4
2 PE0 Digital Pin 0 (RX0)
3 PE1 Digital Pin 1 (TX0)
4 PE2 XCK0/AIN0
5 PE3 PWM on Digital Pin 5
6 PE4 PWM on Digital Pin 2
7 PE5 PWM on Digital Pin 3
8 PE6 T3/INT6
9 PE7 CLKO/ICP3/INT7
10 VCC. VCC
11 GND Ground
12 PH0 Digital Pin 17 (RX2)
13 PH1 Digital Pin 16 (TX2)
14 PH2 XCK2
15 PH3 PWM on Digital Pin 6
16 PH4 PWM on Digital Pin 7
17 PH5 PWM on Digital Pin 8
18 PH6 PWM on Digital Pin 9
19 PB0 Digital Pin 53 (SS)
20 PB1 Digital Pin 52 (SCK)
21 PB2 Digital Pin 51 (MOSI)
22 PB3 Digital Pin 50 (MISO)
23 PB4 PWM on Digital Pin 10
24 PB5 PWM on Digital Pin 11
25 PB6 PWM on Digital Pin 12
26 PB7 PWM on Digital Pin 13
27 PH7 T4
28 PG3 TOSC2
29 PG4 TOSC1
30 RESET RESET
31 VCC VCC
32 GND Ground
33 XTAL2 XTAL2
34 XTAL1 XTAL1
35 PL0 Digital Pin 49
36 PL1 Digital Pin 48
37 PL2 Digital Pin 47
38 PL3 PWM on Digital Pin 46
39 PL4 PWM on Digital Pin 45
40 PL5 PWM on Digital Pin 44
41 PL6 Digital Pin 43
42 PL7 Digital Pin 42
43 PD0 Digital Pin 21 (SCL)
44 PD1 Digital Pin 20 (SDA)
45 PD2 Digital Pin 19 (RX1)
46 PD3 Digital Pin 18 (TX1)
47 PD4 ICP1
48 PD5 XCK1
49 PD6 T1
50 PD7 Digital Pin 38
51 PG0 Digital Pin 41
52 PG1 Digital Pin 40
53 PC0 Digital Pin 37
54 PC1 Digital Pin 36
55 PC2 Digital Pin 35
56 PC3 Digital Pin 34
57 PC4 Digital Pin 33
58 PC5 Digital Pin 32
59 PC6 Digital Pin 31
60 PC7 Digital Pin 30
61 VCC VCC
62 GND Ground
63 PJ0 Digital Pin 15 (RX3)
64 PJ1 Digital Pin 14 (TX3)
65 PJ2 XCK3/PCINT11
66 PJ3 PCINT12
67 PJ4 PCINT13
68 PJ5 PCINT14
69 PJ6 PCINT15
70 PG2 Digital Pin 39
71 PA7 Digital Pin 29
72 PA6 Digital Pin 28
73 PA5 Digital Pin 27
74 PA4 Digital Pin 26
75 PA3 Digital Pin 25
76 PA2 Digital Pin 24
77 PA1 Digital Pin 23
78 PA0 Digital Pin 22
79 PJ7
80 VCC. VCC
81 GND Ground
82 PK7 Analog Pin 15
83 PK6 Analog Pin 14
84 PK5 Analog Pin 13
85 PK4 Analog Pin 12
86 PK3 Analog Pin 11
87 PK2 Analog Pin 10
88 PK1 Analog Pin 9
89 PK0 Analog Pin 8
90 PF7 Analog Pin 7
91 PF6 Analog Pin 6
92 PF5 Analog Pin 5
93 PF4 Analog Pin 4
94 PF3 Analog Pin 3
95 PF2 Analog Pin 2
96 PF1 Analog Pin 1
97 PF0 Analog Pin 0
98 AREF Analog Reference
99 GND Ground
100 AVCC Voltage Supply for Analog System
Thanks eletronic hub for pins