Using Arduino Uno to program an external microcontroller

Is this possible? I found this: http://arduino.cc/en/Tutorial/ArduinoToBreadboard but it says only for the Duemilanove.

I'd like to use the board just to program the microcontroller. Once this is complete, I plan on using only the programmed microcontroller (with necessary external components) in my project.

Thanks!

The Uno works fine as a programmer. If you have the latest bootloader installed, you do not need to disable auto-reset. Otherwise, you will have to either update the bootloader or try a resistor then capacitor until you find the incantation that disables auto-reset. Some details are available here...
http://www.arduino.cc/playground/Main/DisablingAutoResetOnSerialConnection

So how exactly would I do that? Can I follow the same procedure as that website I previously posted?

rptort:
So how exactly would I do that? Can I follow the same procedure as that website I previously posted?

Have a look here, I cannot find the way to do it...

http://arduino.cc/forum/index.php/topic,84095.0.html

rptort:
Can I follow the same procedure as that website I previously posted?

Yes.

And then, following the programing, the wires between the external microcontroller and the arduino board can be removed, and the microcontroller will continue to run the onboard sketch?

Yes.

How about external circuitry? I plan on placing the microncontroller on a PCB...what exactly would I need to do this correctly?

Also, I'd like to be able to reprogram/debug the microcontroller while it's mounted on the PCB. Any suggestions on the best way of doing that?

Thanks again

rptort:
How about external circuitry? I plan on placing the microncontroller on a PCB...what exactly would I need to do this correctly?

If you plan to run the processor using the internal oscillator then you need a pull-up resistor on RESET and a 0.1 uF capacitor across VCC and GND.

If you plan to run the processor using an external crystal then you will need the two things listed above plus a crystal and two appropriate capacitors.

Also, I'd like to be able to reprogram/debug the microcontroller while it's mounted on the PCB. Any suggestions on the best way of doing that?

FTDI chip (or FTDI connector with separate board) + bootloader.

Okay I understand the external circuitry, but I'm not familiar with FTDI.

I found this: ATMega328 - TQFP - COM-09261 - SparkFun Electronics Could I just mount that on the PCB (with the external circuitry) and route the programming pins to some headers on the PCB.

Sorry if these are ignorant questions...I'm new to this kind of thing.

...route the programming pins to some headers on the PCB

Yes. But, using a bootloader and a serial interface (like an FTDI chip) will make it possible to debug using Serial.

When you said... "debug the microcontroller" ...what did you have in mind?

I meant just like reprogram. Like for example let's say I have my device complete, but I want to increase the number of samples it averages. I'd like to connect the PCB to the arduino uno (using something like this SHARK FEEDING REQUEST FORM) and then connect the arduino uno to my computer and edit the sketch like I normally would.

Does that make sense? Is it possible?

rptort:
I meant just like reprogram.

...in that case...

Could I just mount that on the PCB (with the external circuitry) and route the programming pins to some headers on the PCB.

Yes. A 2 x 3 male header connected to the programming pins is exactly what you need.

Great! Thanks! If I have any other questions, I'll be back

aaaand I already have a question ha. Where can I get PCB mountable chips pre-loaded with the arduino uno bootloader OR is it possible to put the bootloader onto a new chip? I know I can buy ATmega328 DIL chips pre-loaded with the bootloader, but as I said, eventually I want to put the chip on a PCB.

One (of many) ways to install a bootloader...

Awesome...I have a couple questions though. What microcontrollers can I do this to? Just the Atmel AVR ones? And what about that "note" at the top that says you can't use the Uno to do that?

rptort:
What microcontrollers can I do this to? Just the Atmel AVR ones?

I suspect the answer is yes. Or, at least, mostly yes. The protocol may work for other Atmel processors but I doubt it works for processors from other manufacturers.

And what about that "note" at the top that says you can't use the Uno to do that?

That is a dirty filthy lie. One that I wish would be corrected.

Great...looks like I can make a few purchases and get to work. Thanks a lot for your help. I really appreciate it. If I have any other questions, I will definitely be back.

Happy New Year!