Author Topic: program ATMEGA2560 (arduino mega) in circuit  (Read 3687 times)

0 Members and 1 Guest are viewing this topic.

Offline SnakeBiteTopic starter

  • Regular Contributor
  • *
  • Posts: 150
  • Country: il
  • OBSESSED MODDER
program ATMEGA2560 (arduino mega) in circuit
« on: June 05, 2014, 01:41:58 pm »
Hi,

i designing a PCB that include arduino mega 2560 microcontroller and i'd like to program it in circuit using arduino mega board that the microcontroller on it has been removed. which pins i need to connect to which pins in the arduino board? i do have 5v on my pcb and a local 16MHZ crystal.

thanks
Ido
Ido Aricha , Israel.
 

Offline retrolefty

  • Super Contributor
  • ***
  • Posts: 1648
  • Country: us
  • measurement changes behavior
Re: program ATMEGA2560 (arduino mega) in circuit
« Reply #1 on: June 05, 2014, 03:33:59 pm »
First you have to decide what method you wish to program it in, ICSP or USB serial via a installed bootloader?

 

Offline SnakeBiteTopic starter

  • Regular Contributor
  • *
  • Posts: 150
  • Country: il
  • OBSESSED MODDER
Re: program ATMEGA2560 (arduino mega) in circuit
« Reply #2 on: June 05, 2014, 10:38:56 pm »
I want the simplest way. i don't want to include more circuitry just to connect the mega2560 to exist arduino board (arduino mega) that doesn't have the microcontroller on it (desoldered from the board). how can i connect it?
 
Ido Aricha , Israel.
 

Offline retrolefty

  • Super Contributor
  • ***
  • Posts: 1648
  • Country: us
  • measurement changes behavior
Re: program ATMEGA2560 (arduino mega) in circuit
« Reply #3 on: June 05, 2014, 10:48:32 pm »
I want the simplest way. i don't want to include more circuitry just to connect the mega2560 to exist arduino board (arduino mega) that doesn't have the microcontroller on it (desoldered from the board). how can i connect it?

Ok, lets assume you have a arduino Mega board with it's micro chip removed, and on your 'target' PCB you have a ATmega2560 chip that has the proper arduino bootloader already installed in it. The hook-up would be as follows:

Arduino shield pin name                     ATmega2560 chip pin number on custom PCB

D0 serial rec                                                  2
D1 serial tx                                                    3
GND   (any ground pin)                                   PCB ground
RST   (reset pin)                                             30

 This also assumes your custom PCB supplies the needed +5vdc for it's chip, if not you could also jumper shield 5V pin to the Vcc bus of your PCB if the current requirements are within the USB current limit.

« Last Edit: June 05, 2014, 10:51:09 pm by retrolefty »
 

Offline SnakeBiteTopic starter

  • Regular Contributor
  • *
  • Posts: 150
  • Country: il
  • OBSESSED MODDER
Re: program ATMEGA2560 (arduino mega) in circuit
« Reply #4 on: June 05, 2014, 11:02:02 pm »
i have 5v on my pcb and also i have 16MHZ crystal.

thanks for your help! :-+
Ido Aricha , Israel.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf