Author Topic: Difference between Pickits  (Read 21467 times)

0 Members and 1 Guest are viewing this topic.

Offline Bruce Abbott

  • Frequent Contributor
  • **
  • Posts: 627
  • Country: nz
    • Bruce Abbott's R/C Models and Electronics
Re: Difference between Pickits
« Reply #25 on: May 18, 2017, 07:59:54 pm »
You cannot program much with PK2 though, mostly older obsolete parts.
Because any PIC introduced more than 18 months ago is obsolete.  ::)

PICKit2 Device file 1.63.148  - supported devices

PICkit 2 Device Data File Editor
Quote
The program is generally only useful for adding new parts not currently supported by the devicefile bundled with the PICKit 2. The process, after opening the devicefile, is simply to choose an existing PIC from the list of devices, right click on it and select Duplicate Item. There will now be a copy of the part you selected. Change the properties of the new part, including the part name, to appropriate values for the new part. Then save the file and you're done.
 

Offline NorthGuy

  • Super Contributor
  • ***
  • Posts: 3146
  • Country: ca
Re: Difference between Pickits
« Reply #26 on: May 19, 2017, 04:23:01 am »
PICkit 2 Device Data File Editor
Quote
The program is generally only useful for adding new parts not currently supported by the devicefile bundled with the PICKit 2. The process, after opening the devicefile, is simply to choose an existing PIC from the list of devices, right click on it and select Duplicate Item. There will now be a copy of the part you selected. Change the properties of the new part, including the part name, to appropriate values for the new part. Then save the file and you're done.

Except that many new parts use different programming algorithms which are not known to PK2. There's no similar "existing devices" which you could choose.
 

Offline daflory

  • Contributor
  • Posts: 16
  • Country: us
Re: Difference between Pickits
« Reply #27 on: May 20, 2017, 01:54:54 am »
Pickit 3's are weird. I remember MPLABX wouldn't recognize mine at first and I thought it was DOA. It only came to life once I flashed it using MPLAB version 8.92.

Also because those without serial number are probably not going to work anymore. I have a clone, i can use it only on older versions on a windows machine. On a mac it's almost impossible to make it go
I also have a genuine so screw it.

The only real issue with the pickit 3, in my opinion, is the target power supply. It's nowhere as good as with the pickit 2. Granted, you can go much lower in voltage but you can't supply 5 volts on anything that isn't mid-range, you will get an error that the read target voltage doesn't correspond to the set voltage so i have to go down to a freaking 2.8V to power the chip i have to program without getting errors.

It's not the usb voltage. it's not the target current consumption. It's in the pickit 3. Besides that, i don't care for programming eeprom, or the logic analyzer, i care about a more powerful debugger and a much higher programming speed.

Have you tried using a USB 3.0 or high current USB port? I haven't had trouble (yet) with powering 5V circuits with the pickit 3, but I was using my Thinkpad's high-current/charging port.
 


Offline stj

  • Super Contributor
  • ***
  • Posts: 2155
  • Country: gb
Re: Difference between Pickits
« Reply #29 on: May 20, 2017, 01:07:58 pm »
that's what i use,
but that wasnt what i was asked was it, i was asked how to program an avr with a pk2.
 


Offline stj

  • Super Contributor
  • ***
  • Posts: 2155
  • Country: gb
Re: Difference between Pickits
« Reply #31 on: May 20, 2017, 06:44:21 pm »
i dont use "official avr tools", they only run on the devil's operating system - and i only use Linux.  8)

i use it with AVRdude - that is by coincidence the best avr programming soft anyway!
 

Offline nForceTopic starter

  • Frequent Contributor
  • **
  • Posts: 393
  • Country: ee
Re: Difference between Pickits
« Reply #32 on: May 21, 2017, 01:07:10 pm »
AVRdude is just a programer, what do you use for debugging and coding?
 

Offline stj

  • Super Contributor
  • ***
  • Posts: 2155
  • Country: gb
Re: Difference between Pickits
« Reply #33 on: May 21, 2017, 01:09:10 pm »
gcc and a text editor.
i do it oldschool!
 

Offline nForceTopic starter

  • Frequent Contributor
  • **
  • Posts: 393
  • Country: ee
Re: Difference between Pickits
« Reply #34 on: May 21, 2017, 06:09:54 pm »
But with gcc, you can't realtime debug program on a chip.
 

Offline stj

  • Super Contributor
  • ***
  • Posts: 2155
  • Country: gb
Re: Difference between Pickits
« Reply #35 on: May 21, 2017, 07:32:00 pm »
i have never needed to, my only errors have always thrown a compiler error
 

Offline Bruce Abbott

  • Frequent Contributor
  • **
  • Posts: 627
  • Country: nz
    • Bruce Abbott's R/C Models and Electronics
Re: Difference between Pickits
« Reply #36 on: May 21, 2017, 07:55:05 pm »
Except that many new parts use different programming algorithms which are not known to PK2.
Can you give some examples? I need to know which new parts to avoid!
 

Offline daflory

  • Contributor
  • Posts: 16
  • Country: us
Re: Difference between Pickits
« Reply #37 on: May 21, 2017, 08:44:15 pm »
Except that many new parts use different programming algorithms which are not known to PK2.
Can you give some examples? I need to know which new parts to avoid!

If you have MPLABX installed, you can set up a program for whatever PIC and when you get to debugging options it will show a red bullet by any debugger that won't work. This will often include the Pickit2 unless the microcontroller is a fairly old classic. If the bullet mark is yellow then it should work but isn't guaranteed, and green means tested/working.
 

Offline NorthGuy

  • Super Contributor
  • ***
  • Posts: 3146
  • Country: ca
Re: Difference between Pickits
« Reply #38 on: May 21, 2017, 09:49:26 pm »
Except that many new parts use different programming algorithms which are not known to PK2.
Can you give some examples? I need to know which new parts to avoid!

From 8-bit ones:

PIC16F153xx
PIC16F188xx
PIC16F191xx
PIC18FxxK4x

These are good parts, especially PIC18FxxK42 is very promising. You may consider getting PK3 instead of avoiding them.
 

Offline stj

  • Super Contributor
  • ***
  • Posts: 2155
  • Country: gb
Re: Difference between Pickits
« Reply #39 on: May 21, 2017, 10:23:31 pm »
the chinese clones are so cheap you could just get both - and a USBasp - then you have the full set  :-+
 

Offline nForceTopic starter

  • Frequent Contributor
  • **
  • Posts: 393
  • Country: ee
Re: Difference between Pickits
« Reply #40 on: February 25, 2018, 05:49:58 pm »
I am looking now for these cheap AVRASP programmers.

What is the difference between these two:

https://www.banggood.com/3_3V-5V-USBASP-USBISP-AVR-Programmer-Downloader-ATMEGA8-ATMEGA128-With-Download-Cable-p-1179967.html?rmmds=search&cur_warehouse=CN

And the cheaper one:

https://www.ebay.com/itm/USBASP-USBISP-AVR-Programmer-Adapter-10-Pin-Cable-USB-ATMEGA8-ATMEGA128-Arduino/310506909410?epid=1168759813&hash=item484ba76ee2:g:yJQAAOSwrqlZhZ4S

1) So the first one supports 3.3V and 5V, the second one does not? Which voltage levels are using Atmel chips?
2) So both are for programming ATMEGA8 and ATMEGA128, what about others? What does it even mean 8 and 128?
3) Which microcontroller is using Arduino uno? The old ones and newer?

Thanks for answering my questions.  :)
 

Offline stj

  • Super Contributor
  • ***
  • Posts: 2155
  • Country: gb
Re: Difference between Pickits
« Reply #41 on: February 25, 2018, 09:33:12 pm »
1: atmel chips run at 5v, unless they end in "L" and then you can run them lower - but the maximum clock speed is reduced.

2: read the datasheets,

3: arduino-uno uses ATMEGA328 afaik.
 
The following users thanked this post: nForce

Offline westfw

  • Super Contributor
  • ***
  • Posts: 4199
  • Country: us
Re: Difference between Pickits
« Reply #42 on: February 25, 2018, 09:52:59 pm »
Quote
atmel chips run at 5v, unless they end in "L" and then you can run them lower
Older Atmel chips had separate versions ("L" or "V") for low voltage operation.   Newer Atmel chips (anything with "PicoPower"(?), which includes the ATmega328p used in most Arduinos) run from 1.8 to 5.5V using the same chip.   You still have the max clock decrease as voltage goes down.
 
The following users thanked this post: nForce

Offline nForceTopic starter

  • Frequent Contributor
  • **
  • Posts: 393
  • Country: ee
Re: Difference between Pickits
« Reply #43 on: February 26, 2018, 08:42:18 am »
Ok, thanks. But no one answered what is the difference between those two products, one from banggood and other from ebay.
 

Offline stj

  • Super Contributor
  • ***
  • Posts: 2155
  • Country: gb
Re: Difference between Pickits
« Reply #44 on: February 26, 2018, 10:22:51 am »
nothing - look at the pictures.
 
The following users thanked this post: nForce

Offline bd139

  • Super Contributor
  • ***
  • Posts: 23018
  • Country: gb
Re: Difference between Pickits
« Reply #45 on: February 26, 2018, 10:43:11 am »
Random replies:

1. What's the difference? None - they're all pretty much the same.
2. What does 8/128 mean? They are difference devices. Look at the data sheets.
3. Which uC does the Arduino use? Various depending on where you buy them from.

Best approach I have found for AVR on a budget is:

1. Buy a cheap USBasp, doesn't matter where from. Stick some tape over the LED on it or it'll burn your eyes out.
2. Buy a cheap Arduino Pro mini board. 5v model. These have an ATMEGA328P which is quite a hefty device. It has the uC, crystal and reset circuit canned on it already.
3. Wire it up according to the various instructions on the Internet. I include a picture of my dev rig for these below for the sake of inspiration. Instructions I used are here: https://www.bitsbox.co.uk/index.php?main_page=page&id=24&pos=v&chapter=20#
4. If you're on windows, follow these instructions to get the right driver: https://rlogiacco.wordpress.com/2016/09/01/usbasp-windows-10/
5. You can write your code in Arduino IDE (yuck) or AVR-GCC something else to program it. I am using the latter using Windows Subsystem for Linux on windows and then programming it with eXtreme Burner.
6. If you use the Arduino UI: (1) set target device to ATMEGA328P 16MHz 5V (2) set target programmer to USPasp (3) load the blink sketch example (4) use Sketch -> Upload using programmer (normal upload wont work with USBasp as that requires an arduino bootloader).



This is an in development RF power meter.

If you want to use a PIC, use PICkit3 with an in circuit target. That plus MPLAB X is a much better environment if you ask me if you want to work in assembly. If you want C, then the AVR is better. I tend to use PICs (12/16 series) for noddy tasks like replacing bits of logic and AVRs for computational and more complex tasks mainly because it's pretty easy to look inside the arduino library source code and nick bits of code for controlling LCDs etc.
« Last Edit: February 26, 2018, 10:45:07 am by bd139 »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf