====Mega2560====
{{boards:mega2560-1.jpg?200}}
\\ \\
{{boards:arduino-mega-pinout-diagram.png?200|Pinout}}
Arduino and clones using the ATmega2560.
===JTAG===
Enable jtag on arduino mega 2560
avrdude -B 5 -P `pavr2cmd --prog-port` -c avrisp2 -p m2560
avrdude -B 5 -P `pavr2cmd --prog-port` -c avrisp2 -p m2560 -e -U efuse:w:0xFD:m -U hfuse:w:0x18:m -U lfuse:w:0xFF:m
Test
avrdude -B 5 -c atmelice -p m2560
^Pin ^ Funcion^
|PF4 |TCK |
|PF5 |TMS|
|PF6 |TDO|
|PF7| TDI|
===Resources===
[[https://ww1.microchip.com/downloads/aemDocuments/documents/OTH/ProductDocuments/DataSheets/ATmega640-1280-1281-2560-2561-Datasheet-DS40002211A.pdf|Data-sheet]]