+ Reply to Thread
Page 1 of 4
1 2 3 4 Last
Results 1 to 15 of 50

Thread: Programming all PIC chips with PICkit 2

  1. #1
    richacm Newbie
    Join Date
    May 2008
    Location
    Hamilton, New Zealand
    Posts
    148

    Default Programming all PIC chips with PICkit 2

    Hi,

    I have been playing around with the PICkit 2 programmer I bought and it comes with a 20 pin PIC16F690 microchip. However it appears that 20pin microchips are the maximum I can program on this board.

    Is there a way for me to program a PIC16F887 or something similar using this board?

    Thanks,

    Craig


  2. #2
    futz Excellent futz Excellent futz Excellent futz Excellent futz Excellent futz Excellent futz Excellent
    Join Date
    Sep 2007
    Location
    Vancouver, B.C.
    Posts
    1,980

    Default

    Quote Originally Posted by richacm View Post
    I have been playing around with the PICkit 2 programmer I bought and it comes with a 20 pin PIC16F690 microchip. However it appears that 20pin microchips are the maximum I can program on this board.

    Is there a way for me to program a PIC16F887 or something similar using this board?
    Just use a solderless breadboard. 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. I have bigger ones...
    Name:  blehsm.jpg
Views: 901
Size:  103.9 KB

    The PICkit 2 (Junebug too) can program/debug almost the full line of PICs.
    Last edited by futz; 6th June 2008 at 12:57 AM.
    =========================
    Futz's Microcontrollers & Robotics
    =========================

  3. #3
    Krumlink Excellent Krumlink Excellent Krumlink Excellent Krumlink Excellent Krumlink Excellent
    Join Date
    Aug 2007
    Location
    Michigan, USA
    Posts
    2,093
    Blog Entries
    1

    Default

    Except the 3.3V ones I hear that bill is or you is possibly working on a 3.3VDC one?
    IF YOU WANT TO HELP FINE IF NOT PLEASE DON"T PEE IN MY CHEERO'S

  4. #4
    richacm Newbie
    Join Date
    May 2008
    Location
    Hamilton, New Zealand
    Posts
    148

    Default

    Sweet - thats good to know!

    I have a breadboard already...just briefly do you have a circuit diagram of what pins I attach to what?

    I see in one of your photo's you have resistors and capacitors across the values from the pin as well....its just a bit hard to see what pin number from the PICkit 2 kit goes to what terminals on the PIC chip.

    I suppose P6 goes to Vdd for starters.

    Thanks,

    Craig

  5. #5
    futz Excellent futz Excellent futz Excellent futz Excellent futz Excellent futz Excellent futz Excellent
    Join Date
    Sep 2007
    Location
    Vancouver, B.C.
    Posts
    1,980

    Default

    Quote Originally Posted by richacm View Post
    I see in one of your photo's you have resistors and capacitors across the values from the pin as well....its just a bit hard to see what pin number from the PICkit 2 kit goes to what terminals on the PIC chip.

    I suppose P6 goes to Vdd for starters.
    What the hell is P6?

    Looking at the PICkit 2 from the top side, starting at the arrow (pin 1):
    1. VPP - goes to MCLR (don't forget a 10K to 33K pullup resistor on MCLR)
    2. 5V - goes to VDD
    3. GND - ground
    4. PGD - to PGD pin on the PIC
    5. PGC - to PGC pin on the PIC
    6. Not used
    Last edited by futz; 6th June 2008 at 01:18 AM.
    =========================
    Futz's Microcontrollers & Robotics
    =========================

  6. #6
    richacm Newbie
    Join Date
    May 2008
    Location
    Hamilton, New Zealand
    Posts
    148

    Default

    Fantastic - thanks heaps. I think I will go out and buy a 16F887 now

    Sorry about P6....I saw a little P1 beside the right most pin, I assumed that was Pin 1. You've put me right though.

    Cheers,

    Craig

  7. #7
    Help us help you blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent
    Join Date
    Jan 2007
    Location
    Toronto, Canada
    Posts
    10,711
    Blog Entries
    5

    Default

    Quote Originally Posted by Krumlink View Post
    Except the 3.3V ones I hear that bill is or you is possibly working on a 3.3VDC one?
    The PICkit2 can program 3.3V PICs just fine, my Junebug version of the PICkit2 does not have the 3.3V clamps.
    If your target 3.3V PIC has its own power supply and the PGC & PCD pins are not analog you can just program directly with the Junebug.
    Bill
    Smart Kits build Smart People

    http://www.blueroomelectronics.com/

  8. #8
    richacm Newbie
    Join Date
    May 2008
    Location
    Hamilton, New Zealand
    Posts
    148

    Default

    OK, I have bought a PIC16F877A chip and I have wired it up as you described to the PICkit2 controller (see diagram for a schematic).

    I start up the PICKit2 programmer and it recognises the PIC16F877A which is great.

    I then Import the Hex (after compiling it for the PIC16F877A) and go to write it to the microchip...I then get an error message back "Programming failed at Program Memory address 0x000024". The number changes everytime I try to write.

    Any ideas?

    Thanks,

    Craig
    Attached Images

  9. #9
    richacm Newbie
    Join Date
    May 2008
    Location
    Hamilton, New Zealand
    Posts
    148

    Default

    Ah, I didn't connect the Vss to GND on the PIC. I did that and it now worked.

    Thanks again for the help guys.

  10. #10
    dusko Newbie
    Join Date
    Jul 2007
    Posts
    9

    Default

    I am not sure, but I think that you should connect pins 12 & 31 (Vss) to ground. Also, the 20k resistor is a "pull-up" -- to be connected to +5V (although this is probably not critical).

  11. #11
    futz Excellent futz Excellent futz Excellent futz Excellent futz Excellent futz Excellent futz Excellent
    Join Date
    Sep 2007
    Location
    Vancouver, B.C.
    Posts
    1,980

    Default

    Quote Originally Posted by dusko View Post
    I am not sure, but I think that you should connect pins 12 & 31 (Vss) to ground.
    Yes, connect ALL VSS and VDD pins.

    Also, the 20k resistor is a "pull-up" -- to be connected to +5V (although this is probably not critical).
    This IS critical. It must be a pullup. If you pull it down the PIC is in reset and halted. Nothing will happen until that MCLR pin gets pulled high. The only reason it works at all is that the PICkit 2 is connected and controlling it (overriding the pulldown).
    Last edited by futz; 6th June 2008 at 04:29 AM.
    =========================
    Futz's Microcontrollers & Robotics
    =========================

  12. #12
    BaCaRdi Good BaCaRdi Good
    Join Date
    Apr 2008
    Location
    Hoboken / NYC
    Posts
    233

    Default

    Well seems the outage screw up all the uploaded attachments, hate when that happens!

    -BaC
    Error[888] "while trying to load":[reality.sh] kernel: [Panic!]...{Universe has been Modified!}...

  13. #13
    futz Excellent futz Excellent futz Excellent futz Excellent futz Excellent futz Excellent futz Excellent
    Join Date
    Sep 2007
    Location
    Vancouver, B.C.
    Posts
    1,980

    Default

    Quote Originally Posted by BaCaRdi View Post
    Well seems the outage screw up all the uploaded attachments, hate when that happens!
    What do you mean?
    =========================
    Futz's Microcontrollers & Robotics
    =========================

  14. #14
    BaCaRdi Good BaCaRdi Good
    Join Date
    Apr 2008
    Location
    Hoboken / NYC
    Posts
    233

    Default

    Yep it's me doesn't work in FireFox now, just in IE..damn this computer...sorry about that should have checked first!


    Quote Originally Posted by futz View Post
    What do you mean?
    Last edited by BaCaRdi; 6th June 2008 at 05:18 AM.
    Error[888] "while trying to load":[reality.sh] kernel: [Panic!]...{Universe has been Modified!}...

  15. #15
    futz Excellent futz Excellent futz Excellent futz Excellent futz Excellent futz Excellent futz Excellent
    Join Date
    Sep 2007
    Location
    Vancouver, B.C.
    Posts
    1,980

    Default

    Quote Originally Posted by BaCaRdi View Post
    humm maybe it's me, can you click that file a bit up in this thread that says

    File Type: gif Programmer.gif (9.6 KB, 144 views)

    Every time I try it bombs out
    There's something wrong with your browser. Works fine for me in both Firefox and IE6.
    =========================
    Futz's Microcontrollers & Robotics
    =========================

+ Reply to Thread
Page 1 of 4
1 2 3 4 Last

Similar Threads

  1. PICKit 2 question
    By speakerguy79 in forum Micro Controllers
    Replies: 2
    Latest: 17th April 2008, 04:11 PM
  2. connecting to the pickit 2
    By Thunderchild in forum Micro Controllers
    Replies: 11
    Latest: 22nd January 2008, 10:13 PM
  3. Want a Pickit 2 ? They're On Sale.
    By JaXz in forum General Electronics Chat
    Replies: 0
    Latest: 12th January 2008, 06:20 PM
  4. PICKIT 2 Programmer
    By gramo in forum Micro Controllers
    Replies: 4
    Latest: 11th June 2007, 04:52 PM
  5. Pickit
    By YAN-1 in forum Micro Controllers
    Replies: 4
    Latest: 15th August 2006, 09:05 PM

Tags for this Thread