Pages: [1] 2   Go Down
Author Topic: Pickit 2 with the ATMega  (Read 4460 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Can I use it to program the chip on an Arduino board with the FTDI interface?
Logged

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 524
Posts: 26440
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

What is "pickit 2"?
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 474
Posts: 18696
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

An ICSP programmer device for the MicroChip range of processors.

I think the simple answer is: No.
Logged

Offline Offline
Edison Member
*
Karma: 116
Posts: 2205
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Can I use it to program the chip on an Arduino board with the FTDI interface?

Yes, you can.
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 474
Posts: 18696
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hmm. It looks like the PicKit has got a UART mode, so with the right connections it may work. I haven't tested it. Which Arduino board do you have? Why not just use the USB interface?
Logged

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

Hmm. It looks like the PicKit has got a UART mode, so with the right connections it may work. I haven't tested it. Which Arduino board do you have? Why not just use the USB interface?

I want to use a pair of barebones arduinos in my project, to cut costs. I just wanted to know if I can use my existing programmer, or if I'd have to buy a programmer.
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 474
Posts: 18696
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Right, then we have to get the terminology right. Will these barebones boards have a bootloader on them? If not, the FTDI interface won't put it there. You need an ICSP programmer (one that uses the SPI interface) and I strongly doubt that the Pic Kit will do that. Its interface will be for PIC chips.

To save costs, if you have at least one Arduino already you can use that as an ICSP programmer. Search for "Arduino as ISP". I wrote a sketch that lets you put code onto SD cards and program bare baords, as described here:

http://www.gammon.com.au/forum/?id=11638

Example in use:



However you can get cheap ISP programmers.  eg. This one for $20:

http://www.pololu.com/catalog/product/1300

Logged

Offline Offline
Edison Member
*
Karma: 116
Posts: 2205
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I want to use a pair of barebones arduinos in my project, to cut costs.

A standalone programmer for the price of a cup of latte.

Quote
I just wanted to know if I can use my existing programmer, or if I'd have to buy a programmer.

Yes you can. But standalone programmer for avr is easier.
Logged

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

So would the $15 pocket AVR programmer from Sparkfun be able to burn the bootloader?
I do have a couple of unburnt ATMegas in transit.

I can use the Pickit 2 to flash in place, but not to burn.
Logged

Valencia, Spain
Offline Offline
Faraday Member
**
Karma: 144
Posts: 5336
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

So would the $15 pocket AVR programmer from Sparkfun be able to burn the bootloader?
I do have a couple of unburnt ATMegas in transit.

Yes. You can also use it to program ATtiny chips like the ATtiny84 and ATtiny85, etc. Make really small devices.

Logged

No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

Offline Offline
Edison Member
*
Karma: 116
Posts: 2205
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
So would the $15 pocket AVR programmer from Sparkfun be able to burn the bootloader?

Yes. Better yet, $5 avr programmers can do that too.
Logged

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

Where's a $5 AVR programmer?
Logged

Rapa Nui
Offline Offline
Edison Member
*
Karma: 60
Posts: 2066
Pukao hats cleaning services
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

http://www.ebay.com/sch/i.html;jsessionid=B963627E40ECEEA2581357A48E3273E6?_sacat=0&_from=R40&_nkw=usbasp&_nkwusc=uspasp&_rdc=1
Logged

the land of sun+snow
Offline Offline
Faraday Member
**
Karma: 158
Posts: 2888
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Yes, you can.

Maybe in a parallel universe, ie programming a PIC. [would be nice if "just once" there was some
explanation attached to those comments, so we wouldn't have to be mind readers all the time].

I have PICKIT2 and PICKIT3 and actually do most of my programming on PICs. The PICKITs and PICs in
general use completely different programming algorithms from AVR, and have 3 output pins, Mclr/Vpp
[typically 13V for programming], plus SCLK and SDA lines, which are not Sclk, MOSI, MISO.

Also, I've used the UART mode of the PICKIT and it really doesn't work all that well for some reason,but
maybe could be jiggered for downloading sketches to an Arduino bootloader [which is unnecessary in any
case], but doubtful for recoding a raw AVR. Better to use an FTDI Friend/etc on a board without a USB
chip.

I also bought one of the AVR programming dongles from Pololu, but never could get it installed properly on
my notebook, so to burn bootloaders, I use 2 Arduino boards connected via the ICSP headers, and run the
bootloader sketch from the IDE on the master board.
 





Logged

SF Bay Area (USA)
Offline Offline
Tesla Member
***
Karma: 124
Posts: 6647
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

http://dangerousprototypes.com/2010/04/07/program-your-avr-with-pickit2/

the owner seems to have disappeared, though.
Logged

Pages: [1] 2   Go Up
Jump to: