Go Down

Topic: atmega 328 programming with FTDI programmer (Read 5636 times) previous topic - next topic

qtechknow

Oct 02, 2011, 11:05 pm Last Edit: Oct 02, 2011, 11:59 pm by qtechknow Reason: 1
Hello! I'm trying to use a FTDI programmer with an atmega.  I don't know which pins go to the programmer.  I know about the arduino and trying to just program the atmega 328 right now.  Is there anyone who knows how to do program an atmega with a FTDI programmer form sparkfun in arduino code?

Thanks,
qtechknow

retrolefty

FTDI programmer ?

Could you provide a specific SparkFun link to the programmer you are talking about?

Lefty

qtechknow

Here is the link http://www.sparkfun.com/products/9716

Thanks lefty!

retrolefty

Ok, that is not technically a programmer but rather a USB serial convertor module. It can of course be used to program a 328p chip if the chip has a bootloader installed in it and is being run at one of the standard clock speeds of a defined board type.

As far as wiring the FTDI transmit pin wires to arduino pin # 0 (328p chip pin 2). FTDI rec pin wires to arduino pin #1 (328p pin 3). FTDI ground to 328p chip ground. Then a .1 mfd cap should be wired between the FTDI DTR pin to arduino reset pin (328p pin 1).

This would allow one to upload sketches from the Arduino IDE to a 328p chip. Now if you want to talk about a different atmega chip then we need to know more details like what chip specifically, does it have a bootloader program installed, what PC software are you wishing to use to upload to the chip?

So what you have purchased isn't a general purpose ICSP programmer module, but can be used to program a certain AVR mega chips with certain assumptions, i.e. bootloader installed in chip, chip running at one of the standard board clock speeds, etc.

So what are you trying to do specifically giving all the gory details?

Lefty

putyn

#4
Oct 03, 2011, 10:49 am Last Edit: Oct 03, 2011, 11:00 am by putyn Reason: 1
what you want to do its use the bitband mode provided by the ftdi chip to use it as a programmer to burn the arduino bootloader on new chips then use it as a usb to serial converter to upload code via serial interface :P

for that i recommend you to read this
http://www.ladyada.net/learn/breakoutplus/ftdifriend.html this uses the same ftdi chip but the board its a lil different from the ftdi board sparkfun sells but if you pay attention to the pin name/number you can get your ftdi from sparkfun to do the same
http://www.geocities.jp/arduino_diecimila/bootloader/index_en.html - useful information here + software

//later today
after looking at ftdi basic schematics the RTS looks like its not broken out so youll need to solder an wire to that pin



qtechknow

Lefty, what cap should i use between rst and dtr?

retrolefty


Lefty, what cap should i use between rst and dtr?


Auto reset function is accomplished by wiring a .1 mfd capacitor between the FTDI DTR signal and the atmega328p reset pin.

Go Up