
It communicates using the original STK500 protocol ( reference, C header files). The ATmega2560 on the Mega 2560 comes preprogrammed with a bootloader that allows you to upload new code to it without the use of an external hardware programmer. For details, see the reference and tutorials.

The Mega 2560 board can be programmed with the Arduino Software (IDE).

Arduino mega 2560 pins serial#
It has 54 digital input/output pins (of which 15 can be used as PWM outputs), 16 analog inputs, 4 UARTs (hardware serial ports), a 16 MHz crystal oscillator, a USB connection, a power jack, an ICSP header, and a reset button. The Arduino Mega 2560 is a microcontroller board based on the ATmega2560. With 54 digital I/O pins, 16 analog inputs and a larger space for your sketch it is the recommended board for 3D printers and robotics projects. The MEGA 2560 is designed for more complex projects.
