Pages: [1]   Go Down
Author Topic: Programming Atmega2560 on PCB  (Read 567 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,

I need to program a bare Atmega2560 chip that'll be on a custom made PCB. I would like to use an Arduino UNO or Arduino Mega2560 to act as the ISP. I've looked at the link provided by Arduino on how to burn the bootloader to the bare chip by connecting the 6 pins: MISO,MOSI, SS, SCK, 5 V, and GND. http://arduino.cc/en/Tutorial/ArduinoToBreadboard

After this, you remove the MCU from the Arduino and wire RX and TX to some pins to the Atmega 2560.
What I am confused about is what pins do I need to map to from the Arduino to my Atmega 2560 in order to upload sketches using the Arduino IDE. Also what capacitors and resistors would be needed as well.

Thank you.

Logged

USA, FL
Offline Offline
God Member
*****
Karma: 14
Posts: 689
A life? Where can I download one of those?
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Attached is a minimal 2560 schematic. 

Look at the datasheet to find the pinout.


* 2560.png (69.52 KB, 1657x1282 - viewed 26 times.)
Logged

//LiNK

Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

In a nutshell, I don't understand the process in uploading a sketch after uploading the bootloader on a Atmel chip residing on a custom PCB. I am trying to make sure I have the proper pins on my PCB schematic so I can access them for uploading sketches.

I've looked at the minimal schematic but it hasn't been much help. I guess what I'm wondering is do I just need the same set up as in the image attached, where I am just mapping to pins RX0 and TX0 on the Atmega 2560, AVCC, VCC, and GND in order to upload a sketch to my bootloaded MCU.


* ArduinoUSBSerial (1).png (51.57 KB, 606x205 - viewed 17 times.)
« Last Edit: March 21, 2013, 03:05:50 pm by sbel » Logged

USA, FL
Offline Offline
God Member
*****
Karma: 14
Posts: 689
A life? Where can I download one of those?
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I've looked at it but it hasn't been much help. I guess what I'm wondering is do I just need the same set up as in the image attached, where I am just mapping to pins RX0 and TX0 on the Atmega 2560, AVCC, VCC, and GND in order to upload a sketch to my bootloaded MCU.

And Reset... Yes
Logged

//LiNK

Pages: [1]   Go Up
Jump to: