This Arduino Mega 2560 board contains an Atmel ATmega2560 chip (datasheet & pinmapping). This µcontroller has four 8-bit PWM Channels and Six/Twelve PWM Channels with Programmable Resolution from 2 to 16 Bits. Each of the 54 digital pins on the Arduino 2560 Mega can be used as an input or output. In addition, some pins have specialized functions. Gebruik de Arduino IDE om dit kaartje te programmeren. (Language Reference).
Serial 0: 00 (RX0) and 01 (TX0);
- Externe interrupts
|Interrupts zijn pennen die een onmiddelijke actie in de processor veroorzaken. De pennen kunnen worden geprogrammeerd om te reageren op: steigende flank, vallende flank of op beiden. De Arduino IDE kent voor de externe interrupts standaard het attachInterrupt commando. Op een Arduino Uno kan dat uitsluiten pin 2 of pin 3 zijn. pins
|The board can be supplied with power either from the DC power jack (7 - 12V), the USB connector (5V), or the VIN pin of the board (7-12V). Supplying voltage via the 5V or 3.3V pins bypasses the regulator, and can damage your board. We don`t advise it. Drawable power for projects: USB=100mA, Mega=400mA µcontroller|
The Arduino Mega has a resettable polyfuse that protects your computer`s USB ports from shorts and overcurrent. Although most computers provide their own internal protection, the fuse provides an extra layer of protection. If more than 500 mA is applied to the USB port, the fuse will automatically break the connection until the short or overload is removed. The recommended power range is 7 to 12 volts, by plugging a 2.1mm center-positive plug into the board`s power jack.Vin is not exactly the same as the external positive power input. The jack also has a diode, to protect against reverse polarity. Vin does not have this diode. But other than that, they are the same.
Each pin operates at 5 volts and can provide or receive a maximum of 40 mA and has an internal pull-up resistor (disconnected by default) of 20-50 kOhms.
|This circuit-board contains 4 on-board LEDs:
||User LED, high=on, low=off
||Transmit serial interface TX0
||Receive serial interface RX0
Serial 1: 19 (RX1) and 18 (TX1);
Serial 2: 17 (RX2) and 16 (TX2);
Serial 3: 15 (RX3) and 14 (TX3).
Serials are used to receive (RX) and transmit (TX) TTL serial data. Pins 0 and 1 are also connected to the corresponding pins of the ATmega16U2 USB-to-TTL Serial chip and thereby also to 2 on-board LED`s.
PWM: 2 to 13 and 44 to 46. Provide 8-bit PWM output with the analogWrite() function.
The Mega2560 has 16 analog inputs, each of which provide 10 bits of resolution (i.e. 1024 different values). By default they measure from ground to 5 volts, though is it possible to change the upper end of their range using the AREF pin and analogReference() function.
AREF. Reference voltage for the analog inputs. Used with analogReference().
Reset. Bring this line LOW to reset the microcontroller. Typically used to add a reset button to shields which block the one on the board.
SPI connections are: 50=MISO, 51=MOSI, 52=SCK and 53=CS.
You can find additional information on the pin allocations in the under mentioned programs using this controller.