Pages: [1]   Go Down
Author Topic: Program Atmega328 with bootloader already loaded  (Read 960 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 13
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

My problem: I have a circuit which uses an atmega328 which is connected only to the quartz and few other components.

Is it possible to program it without ICSP using the serial connection simply connecting the 2 serial pins of an arduino 2009 board to the pin on the circuit? The 2 microcontrollers should get programmed at the same time, no?

thanks!
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 508
Posts: 31431
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
The 2 microcontrollers should get programmed at the same time, no?
What two micro controllers you didn't mention where they came from.
The simple answer is no you can't do two at the same time because they respond at a different rate to be fed the next bytes/
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 13
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

you are right.. let me ask it this way:

I have an arduino 2009 board with atmega328, and an atmega328 which is in a working circuit (not a board, it has no usb, serial or ICSP connections) and has the arduino bootloader preloaded in it.

What is the simplest way to program the in circuit microcontroller through the arduino 2009 board?

thanks
Logged

United States (Texas)
Offline Offline
God Member
*****
Karma: 2
Posts: 525
Arduino socks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

solder some wires from the tx rx and ground connection of the one being used, take out the atmega from the arduino board, then connect those wires to the tx rx and ground of the now processor-less arduino board.
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 508
Posts: 31431
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Make a programming header with the TX, RX, Reset, power and ground, just like this project:-
http://www.thebox.myzen.co.uk/Hardware/MIDI_Footsteps.html
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 331
Posts: 16514
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Or if your standalone board's 328 is mounted in a IC socket, you could just take it out and replace it with the processor in your Arduino board, program it normally with the Arduino IDE and then put it back into your standalone socket.

Lefty
Logged

ottawa, canada
Offline Offline
God Member
*****
Karma: 5
Posts: 989
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Make a programming header with the TX, RX, Reset, power and ground, just like this project:-
http://www.thebox.myzen.co.uk/Hardware/MIDI_Footsteps.html

I strongly concur.  I have never regretted the board space or time to add a programming header with auto reset and I have had occasion to regret not doing so.
Logged

Pages: [1]   Go Up
Jump to: