Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Programming all PIC chips with PICkit 2

Status
Not open for further replies.
This doesn't support Linux for burning does it? I think I am stuck with the Micro's version do to the differences in chipsets. I would really prefer not to but I am in Linux running Eagle as well, so windows is just a VMachine.

I would have love to get one of these tho! You do a great job and very good designs I have to say Blue, and a Man who can post his Schemo, in the public is always great with me:)

Cheers m8, :D
-BaC
 
Last edited:
Thank you Bill.

-BaC
 
Cheer;)
Linux support goes on top of my list:)

Good prices on ZIFFs: **broken link removed**

-BaC
I made a little breakout board for my PK2 with some bits and pieces to program any 18, 28, 40 pin PIC for less then $5

**broken link removed**

I put together a video guide of the project here **broken link removed**

Needless to say I use this extensivly! :eek:
 
Last edited:
Linux support goes on top of my list:)
Unfortunately, Linux support for PICS is still not so good. Piklab works reasonably well, but there's no PICkit 2 debugging yet - only ICD2.

Of all the computers here (too many), they're all Linux except one for accounting and video editing/DVD authoring and this one for microcontroller programming. All the good MCU tools are Windoze only. Some will run with Wine if you feel like fighting with it, but not enough.

Sometimes when I get interested I have one Windows box for my MIDI/music studio. But lately all that stuff is collecting dust.

Wish I could get rid of Windoze completely but it's impossible. Linux is great, but weak in certain areas.
 
It would have to be ported, no small job my any means. Yeah, I know ICD2 doesn't work, but if I can burn the hex from Linux, just one less thing on windows:)

I have a VMachine for windows my Linux box is the host OS, so I just go on that just to debug for now. But when I do a program, It puts it out on the shared mount point, and my shell-script does the rest, including backup with tar.

This way I can remove another task in win32..lol

-BaC
Unfortunately, Linux support for PICS is still not so good. Piklab works reasonably well, but there's no PICkit 2 debugging yet - only ICD2.

Of all the computers here (too many), they're all Linux except one for accounting and video editing/DVD authoring and this one for microcontroller programming. All the good MCU tools are Windoze only. Some will run with Wine if you feel like fighting with it, but not enough.

Sometimes when I get interested I have one Windows box for my MIDI/music studio. But lately all that stuff is collecting dust.

Wish I could get rid of Windoze completely but it's impossible. Linux is great, but weak in certain areas.
 
Just re-opening this thread again as I have a weird PIC problem with circuit I'm using to program the PIC.

I am just testing the PIC16F877A with its own power supply. I have a 7805 in place which is outputting the 5V (5.14V to be precise) to the VDD pin. However the chip is not working. When I plug the PICKit 2 in to the circuit the chip starts working....then when I unplug the PICKit 2 it stops again. This is without even supplying a power source to the PICKit 2.

One thing I noted is that when the PICKit 2 is plugged in the VDD drops down to 5.06V. Would this be causing it to work?

Cheers,

Craig

EDIT: Just as a footnote. When I turn everything on and unplug the VDD connection to the V+ then the V+ is actually 5.06V. As soon as I plug in the VDD then the voltage goes up to 5.14V. Is this expected?
 
Last edited:
I am just testing the PIC16F877A with its own power supply. I have a 7805 in place which is outputting the 5V (5.14V to be precise) to the VDD pin. However the chip is not working. When I plug the PICKit 2 in to the circuit the chip starts working....then when I unplug the PICKit 2 it stops again. This is without even supplying a power source to the PICKit 2.
Do you have a pullup resistor on MCLR? If it's not there you'll have trouble when the programmer is unplugged.

One thing I noted is that when the PICKit 2 is plugged in the VDD drops down to 5.06V. Would this be causing it to work?
It's not the voltage thing. Any voltage between around 3V (and change) and 5V plus a bit should be fine.

EDIT: Just as a footnote. When I turn everything on and unplug the VDD connection to the V+ then the V+ is actually 5.06V. As soon as I plug in the VDD then the voltage goes up to 5.14V. Is this expected?
That's not abnormal.
 
Last edited:
If your using in circuit programming then have a look in the PK2 software package on how to sire up the circuit, theres a great wiring diagram there


If your programming it separately (this is what I usually do), then you simply need to connect the following pins for use in the target circuit (don't worry about the external oscillator if your using the internal one)

**broken link removed**
Note; (5 pins, positions vary for different PIC's, but the 18F1320 is shown above)

You don't need a 10K pull up resistor on MCLR when it is not being used with ICP (in circuit programming), but you do need 5 volts to enable the cpu to stop continually resetting... This could very well be you fault!

And to program the PIC, I use a breadboard like this,

**broken link removed**

Handy as you can program almost every DIP package PIC easily :eek:
 
Last edited:
Thanks heaps for the pointers. I actually found that the problem was caused by me not setting the B port in the code. If I initialise this (output) and set it to 0 then the PIC worked fine without the PK2 attached.
 
If your using in circuit programming then have a look in the PK2 software package on how to sire up the circuit, theres a great wiring diagram there


If your programming it separately (this is what I usually do), then you simply need to connect the following pins for use in the target circuit (don't worry about the external oscillator if your using the internal one)

**broken link removed**
Note; (5 pins, positions vary for different PIC's, but the 18F1320 is shown above)

You don't need a 10K pull up resistor on MCLR when it is not being used with ICP (in circuit programming), but you do need 5 volts to enable the cpu to stop continually resetting... This could very well be you fault!

And to program the PIC, I use a breadboard like this,

**broken link removed**

Handy as you can program almost every DIP package PIC easily :eek:

I'm hoping to build a small circuit board JUST for programming the pic's nothing else
how could I modify the circuit above?
I was hoping to power the board from the usb port to save having a seperate psu (JUST for power +5V nothing else) would this work or not, or DO I NEED a 12v psu as well? I still cant figure out if I need to supply 12v or if the pickit somehow supplies that from the 5v usb port?
I wont be doing in circuit programming, I'm hoping to build a small circuit board JUST for programming the pic's nothing else, do I need the xtal?

What I've got is the pickit2 programmer, I've looked at the manual for the pickit but I'm as lost now as whebn i got it almost a month ago
I wont be doing in circuit programming, I'm hoping to build a small circuit board JUST for programming the pic's nothing else, do I need the xtal?
 
Do you mean like THIS? IF so can I power the PIC itself from the pickit2 or will I HAVE to supply a seperate 5v psu?
**broken link removed**
 
Just use a **broken link removed**. Simple, inexpensive and flexible. Excellent for experimenting and prototyping. For lots of photos and examples, have a look at my site.

This one is getting a tad crowded. :D I have bigger ones...
View attachment 19694

The PICkit 2 (Junebug too) can program/debug almost the full line of PICs.

were did you get your breadboard power supply and the heatsink for it
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top