Arduino Mega (ATmega1280) Pinout

Arduino Mega (ATmega1280) pinout. 2009 Mega Arduino with ATmega1280 and FT232RL USB bridge.

Jump to pin index ↓

Main pinout

2009 Mega Arduino with ATmega1280 and FT232RL USB bridge. The photo board is marked MEGA03 on the back and supports shields of the Duemilanove format, with SPI and I²C in its own headers.

100%Drag to pan · Ctrl/⌘ + wheel to zoomSwipe up/down to scroll the page · Swipe sideways to pan · Use two fingers to pan and zoom
Alternative functions

Pin index

Pin index

Quickly scan every header pin, port name, supported function and usage note.

82 visible
PinMCU pinTypesNotes
AnalogExternal reference entry of the ADC.
GNDGround next to AREF.
PWMGPIOD13 digital 5 V ATmega1280 (PB7) E / S. Supports PWM with analogWrite().
PWMGPIOD12 digital 5 V ATmega1280 (PB6) E / S. Supports PWM with analogWrite().
PWMGPIOD11 digital 5 V ATmega1280 (PB5) E / S. Supports PWM with analogWrite().
PWMGPIOD10 digital 5 V ATmega1280 (PB4) E / S. Supports PWM with analogWrite().
PWMGPIOD9 digital 5 V ATmega1280 (PH6) E / S. Supports PWM with analogWrite().
PWMGPIOD8 digital 5 V ATmega1280 (PH5) E / S. Supports PWM with analogWrite().
PWMGPIOD7 digital 5 V ATmega1280 (PH4) E / S. Supports PWM with analogWrite().
PWMGPIOD6 digital 5 V ATmega1280 (PH3) E / S. Supports PWM with analogWrite().
PWMGPIOD5 digital 5 V ATmega1280 (PE3) E / S. Supports PWM with analogWrite().
PWMGPIOD4 digital 5 V ATmega1280 (PG5) E / S. Supports PWM with analogWrite().
PWMGPIOD3 digital 5 V ATmega1280 (PE5) E / S. Supports PWM with analogWrite().
PWMGPIOD2 digital 5 V ATmega1280 (PE4) E / S. Supports PWM with analogWrite().
UARTGPIOD1 digital 5 V ATmega1280 (PE1) E / S. USART0 transmission.
UARTGPIOD0 digital 5 V ATmega1280 (PE0) E / S. USART0 reception.
UARTGPIOD14 digital 5 V ATmega1280 (PJ1) E / S. USART3 transmission.
UARTGPIOD15 digital 5 V ATmega1280 (PJ0) E / S. USART3 reception.
UARTGPIOD16 digital 5 V ATmega1280 (PH1) E / S. USART2 transmission.
UARTGPIOD17 digital 5 V ATmega1280 (PH0) E / S. USART2 reception.
UARTGPIOD18 digital 5 V ATmega1280 (PD3) E / S. USART1 transmission.
UARTGPIOD19 digital 5 V ATmega1280 (PD2) E / S. USART1 reception.
I2CGPIOD20 digital 5 V ATmega1280 (PD1) E / S. Data from bus I²C / TWI.
I2CGPIOD21 digital 5 V ATmega1280 (PD0) E / S. Reloj del bus I²C/TWI.
InternalATmega1280 reboot, low active.
Power3.3 V output from FT232RL. Máximo 50 mA.
PowerRegulated rail of 5 V board.
GNDFirst ground contact of the POWER block.
GNDSecond ground contact of the POWER block.
Power5 V regulator input for recommended 7–12 V external source.
AnalogADC0 analogue input of 10 bits. E / S digital D54 in the AVR core.
AnalogADC1 analogue input of 10 bits. E / S digital D55 in the AVR core.
AnalogADC2 analogue input of 10 bits. E / S digital D56 in the AVR core.
AnalogADC3 analogue input of 10 bits. E / S digital D57 in the AVR core.
AnalogADC4 analogue input of 10 bits. E / S digital D58 in the AVR core.
AnalogADC5 analogue input of 10 bits. E / S digital D59 in the AVR core.
AnalogADC6 analogue input of 10 bits. E / S digital D60 in the AVR core.
AnalogADC7 analogue input of 10 bits. E / S digital D61 in the AVR core.
AnalogADC8 analogue input of 10 bits. E / S digital D62 in the AVR core.
AnalogADC9 analogue input of 10 bits. E / S digital D63 in the AVR core.
AnalogADC10 analogue input of 10 bits. E / S digital D64 in the AVR core.
AnalogADC11 analogue input of 10 bits. E / S digital D65 in the AVR core.
AnalogADC12 analogue input of 10 bits. E / S digital D66 in the AVR core.
AnalogADC13 analogue input of 10 bits. E / S digital D67 in the AVR core.
AnalogADC14 analogue input of 10 bits. E / S digital D68 in the AVR core.
AnalogADC15 analogue input of 10 bits. E / S digital D69 in the AVR core.
PowerCarril de 5 V.
GPIOD22 digital 5 V ATmega1280 (PA0) E / S.
GPIOD24 digital 5 V ATmega1280 (PA2) E / S.
GPIOD26 digital 5 V ATmega1280 (PA4) E / S.
GPIOD28 digital 5 V ATmega1280 (PA6) E / S.
GPIOD30 digital 5 V ATmega1280 (PC7) E / S.
GPIOD32 digital 5 V ATmega1280 (PC5) E / S.
GPIOD34 digital 5 V ATmega1280 (PC3) E / S.
GPIOD36 digital 5 V ATmega1280 (PC1) E / S.
GPIOD38 digital 5 V ATmega1280 (PD7) E / S.
GPIOD40 digital 5 V ATmega1280 (PG1) E / S.
GPIOD42 digital 5 V ATmega1280 (PL7) E / S.
PWMGPIOD44 digital 5 V ATmega1280 (PL5) E / S. Supports PWM with analogWrite().
PWMGPIOD46 digital 5 V ATmega1280 (PL3) E / S. Supports PWM with analogWrite().
GPIOD48 digital 5 V ATmega1280 (PL1) E / S.
SPIGPIOD50 digital 5 V ATmega1280 (PB3) E / S. SPI, peripheral data to the controller.
SPIGPIOD52 digital 5 V ATmega1280 (PB1) E / S. Bus clock SPI.
GNDCommon ground.
PowerCarril de 5 V.
GPIOD23 digital 5 V ATmega1280 (PA1) E / S.
GPIOD25 digital 5 V ATmega1280 (PA3) E / S.
GPIOD27 digital 5 V ATmega1280 (PA5) E / S.
GPIOD29 digital 5 V ATmega1280 (PA7) E / S.
GPIOD31 digital 5 V ATmega1280 (PC6) E / S.
GPIOD33 digital 5 V ATmega1280 (PC4) E / S.
GPIOD35 digital 5 V ATmega1280 (PC2) E / S.
GPIOD37 digital 5 V ATmega1280 (PC0) E / S.
GPIOD39 digital 5 V ATmega1280 (PG2) E / S.
GPIOD41 digital 5 V ATmega1280 (PG0) E / S.
GPIOD43 digital 5 V ATmega1280 (PL6) E / S.
PWMGPIOD45 digital 5 V ATmega1280 (PL4) E / S. Supports PWM with analogWrite().
GPIOD47 digital 5 V ATmega1280 (PL2) E / S.
GPIOD49 digital 5 V ATmega1280 (PL0) E / S.
SPIGPIOD51 digital 5 V ATmega1280 (PB2) E / S. SPI, controller to peripheral data.
SPIGPIOD53 digital 5 V ATmega1280 (PB0) E / S. Active selection of the SPI peripheral.
GNDCommon ground.

Specifications

Photo revision
MEGA03, PCB marking on the back. Arduino Mega original (26 March 2009).
Microcontroller
Atmel ATmega1280-16AU · AVR de 8 bits · TQFP-100.
Clock and logic
Cristal de 16 MHz · 5 V logic.
Memory
128 KB flash (124 KiB for program with official AVR profile), 8 KB SRAM, 4 KB EEPROM.
E/S
54 digital contacts D0-D53 and 16 ADC inputs from 10 bits A0-A15, usable as D54-D69.
PWM
15 outputs according to AVR core: D2-D13 and D44-D46. The original tab announced 14.
Interfaces
4 UART, I²C (D20/D21), SPI (D50–D53) y conector ICSP.
Power supply
5 V USB or external input. 7–12 V recommended by VIN or jack CC; published historical interval of 6–20 V.
3.3 V output
Up to 50 mA, supplied by the FT232RL.
PCB
101.6 × 53.3 mm without outstanding connectors, 2.54 mm nominal pass.

References

Datasheets

Manufacturer references and technical documentation.

ChipRoleManufacturerNotesLink
Arduino MegaSchematicArduinoArduino_MEGA_02 launch pattern, 26 March 2009.Datasheet
Arduino MegaEAGLE reference designArduinoOriginal design of board and schematic.Datasheet
ATmega1280DatasheetMicrochip / AtmelDS40002211A. Ports, timers and alternative functions.Datasheet
FT232RLDatasheetFTDIConvertidor USB a UART.Datasheet
MC33269Datasheetonsemi5 V linear regulator.Datasheet
Arduino AVRNumbering and PWMArduinoMega variant of the official core, shared by the ATmega1280 and ATmega2560 profiles.Datasheet
MEGA03Photographs of both sidesSparkFunDEV-09152. Front photo cut and turned for diagrams.Datasheet

Board notes

ICSP
Contacto 1 MISO, 2 5V, 3 SCK, 4 MOSI, 5 RESET y 6 GND. The three SPI signals are doubled in D50-D52. See the ICSP detail view.
Servicio FT232RL
X3 pads offer CTS #, DSR #, DCD # and RI #. The RESET-EN bridge links DRR with C12. See the X3 and RESET-EN detail view.
Physical identification
Blue PCB Made in Italy with the MEGA03 inscription on the back. The board has a six-contact POWER header.