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

Thread: Building First Pic Programmer

  1. #1
    Bryan76 Newbie
    Join Date
    Jun 2006
    Location
    Austin, TX
    Posts
    141

    Question Building First Pic Programmer

    First off let me say that this is my first time using the pic. I have 2 pic16f84a and would like to build a programmer for them. I went through the Newcomers, please read! (PIC regarded) post and am getting confused. Seems to be alot of options and Im wondering which way to go. What in your opion is the best route to take. I downloaded the mplab and installed it. This seems to be a pretty good looking piece of software, I would like to use it if possible (can it be used with any pic programmer?) but am open to suggestions.


  2. #2
    Bryan76 Newbie
    Join Date
    Jun 2006
    Location
    Austin, TX
    Posts
    141

    Default

    If someone has built more then one of the pics listed in the help post then please let me know which of them you would recomend. Or if you know of a better one no listed then send me a link. Thanks again....

  3. #3
    3v0
    3v0 is online now
    3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent
    Join Date
    Jul 2006
    Location
    USA
    Posts
    6,461
    Blog Entries
    11

    Default

    First see the sticky posts for this forum for a lot of how to get started info.

    For a first time PICer I suggest you buy your first programmer. It will save you a lot of time and headache. Maybe the PIC-PG2. With shipping about $15. You will not be able to use MPLAB with it, but since the 16F84A does not have any breakpoints there is no real downside. SparkFun provides the schematics for the PIC-PG2 and other programmers so you could build one from scratch if you like.

    In time you will want to move up to an In Circuit Debugger like the Inchworm ICD2 clone kit that was designed by one of the regulars on this forum.

    3v0

  4. #4
    ljcox Good ljcox Good
    Join Date
    Dec 2003
    Location
    Melbourne Australia
    Posts
    2,446

    Default

    Quote Originally Posted by 3v0
    You will not be able to use MPLAB with it, but since the 16F84A does not have any breakpoints there is no real downside.
    A point of clarification.

    I think 3v0 means that you can't programme a PIC from MPLAB with this PIC Programmer.

    However, you can use MPLAB to write, test and compile your programmes.

    MPLAB will produce a Hex file that you can then load into the PIC via the programmer using software such as icprog.
    Len

  5. #5
    Friend of the Electrons Andy1845c Good Andy1845c Good Andy1845c Good
    Join Date
    Apr 2006
    Location
    Southern Minnesota
    Posts
    1,156

    Default

    Quote Originally Posted by 3v0

    In time you will want to move up to an In Circuit Debugger like the Inchworm ICD2 clone kit that was designed by one of the regulars on this forum.
    I am new to PICs too. I bought the Inchworm and just finished it this week. I haven't tried it out yet as I can't find a cable, but so far I would recommend it. Its easy to solder so putting it together wasn't bad at all.

    I looked at building my own programmer too, but decided it was far easier to order the inchworm kit. My only regret is I didn't get the firefly companion board at the same time. As soon as I get some extra cash i'm gonna send for one.

  6. #6
    Bryan76 Newbie
    Join Date
    Jun 2006
    Location
    Austin, TX
    Posts
    141

    Default

    Quote Originally Posted by ljcox
    A point of clarification.

    I think 3v0 means that you can't programme a PIC from MPLAB with this PIC Programmer.

    However, you can use MPLAB to write, test and compile your programmes.

    MPLAB will produce a Hex file that you can then load into the PIC via the programmer using software such as icprog.
    Thanks for that info, it will help alot.

  7. #7
    Bryan76 Newbie
    Join Date
    Jun 2006
    Location
    Austin, TX
    Posts
    141

    Default

    Quote Originally Posted by Andy1845c
    I am new to PICs too. I bought the Inchworm and just finished it this week. I haven't tried it out yet as I can't find a cable, but so far I would recommend it. Its easy to solder so putting it together wasn't bad at all.

    I looked at building my own programmer too, but decided it was far easier to order the inchworm kit. My only regret is I didn't get the firefly companion board at the same time. As soon as I get some extra cash i'm gonna send for one.
    I tossed around the idea of just buying it but I decided to build it. If all else fails I will buy one. Thanks for the advice.

  8. #8
    3v0
    3v0 is online now
    3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent
    Join Date
    Jul 2006
    Location
    USA
    Posts
    6,461
    Blog Entries
    11

    Default

    Quote Originally Posted by ljcox
    A point of clarification.

    I think 3v0 means that you can't programme a PIC from MPLAB with this PIC Programmer...
    YES

    ---------------------------------------------------------------------

  9. #9
    Gayan Soyza Excellent Gayan Soyza Excellent Gayan Soyza Excellent Gayan Soyza Excellent Gayan Soyza Excellent Gayan Soyza Excellent
    Join Date
    Oct 2006
    Location
    Colombo
    Posts
    1,664
    Blog Entries
    1

    Default

    Quote Originally Posted by Bryan76
    I tossed around the idea of just buying it but I decided to build it. If all else fails I will buy one. Thanks for the advice.
    Here is a circuit diagram which can program some PICs up to 18 pins.I built this and still I'm using it.A nice LVP programmer circuit.I've tried PICs like 84,84A,628A & it works fine..

    here is the original link
    http://www.talkingelectronics.com/Fr...ipPgmr-P1.html
    Attached Images

  10. #10
    Oznog Excellent Oznog Excellent Oznog Excellent Oznog Excellent Oznog Excellent
    Join Date
    Apr 2004
    Location
    Austin, Tx
    Posts
    2,765

    Default

    I recommend Sparkfun's $99 ICD2 programmer/debugger. It's a cheap clone of Microchip's ICD2 and is supported with Microchip's ICD2 software releases. It's a do-it-all device and probably the last programmer you'll ever need. I mean the new dsPIC series came out after this thing and the all program just fine with it, but few other programmers can work with them. ICD2 is a tremendous help in code development.

    Also very very fast.

    I just think getting into PICs is enough work in itself, and programmers are so touchy from one setup to another that it's not worth the hassle.
    Last edited by Oznog; 2nd February 2007 at 04:41 AM.
    I thought what I'd do was I'd pretend I was one of those deaf-mutes.

  11. #11
    Bryan76 Newbie
    Join Date
    Jun 2006
    Location
    Austin, TX
    Posts
    141

    Default

    Ok I just finished putting it together on a proto board.
    I built the following: JDM Programmer (Ludipipo)
    http://www.ic-prog.com/index1.htm

    I have hooked it up straight to my com1 port on the computer. Now how the heck do I check to see if it is working?

  12. #12
    eblc1388 Excellent eblc1388 Excellent eblc1388 Excellent eblc1388 Excellent eblc1388 Excellent
    Join Date
    Jan 2005
    Location
    UK
    Posts
    2,226

    Default

    Quote Originally Posted by Bryan76
    I have hooked it up straight to my com1 port on the computer. Now how the heck do I check to see if it is working?
    You need also to use a controlling software(aka programming software) to load the HEX file into the software and then output to the PIC. There are a lot of choices.

    Your programmer is working if you can read the ID and flash content of the PIC, erase it and re-program it with the HEX file that you have made previously using MPLAB.
    L.Chung

  13. #13
    Bryan76 Newbie
    Join Date
    Jun 2006
    Location
    Austin, TX
    Posts
    141

    Default

    Quote Originally Posted by eblc1388
    You need also to use a controlling software(aka programming software) to load the HEX file into the software and then output to the PIC. There are a lot of choices.

    Your programmer is working if you can read the ID and flash content of the PIC, erase it and re-program it with the HEX file that you have made previously using MPLAB.
    I loaded a hex file using ic-prog and then attempted to copy it to the pic. Nothing seems to happen. Is there anyway to do a check just to make sure the comp and software is seeing the pic? Also while using ic-prog it seems that everytime i load it or execute a command i get the message "priviliged command" is that normal?

  14. #14
    Gayan Soyza Excellent Gayan Soyza Excellent Gayan Soyza Excellent Gayan Soyza Excellent Gayan Soyza Excellent Gayan Soyza Excellent
    Join Date
    Oct 2006
    Location
    Colombo
    Posts
    1,664
    Blog Entries
    1

    Default

    Quote Originally Posted by Bryan76
    I loaded a hex file using ic-prog and then attempted to copy it to the pic. Nothing seems to happen. Is there anyway to do a check just to make sure the comp and software is seeing the pic? Also while using ic-prog it seems that everytime i load it or execute a command i get the message "priviliged command" is that normal?
    From where did you get the hex file? Did you intalled the driver of IC PROG? if installed check the hardware tab in the IC PROG whether is correctly fixed to COM PORT..Also check whether windowsNT chechbox clicked.restart IC PROG & feed the hex file.

  15. #15
    eblc1388 Excellent eblc1388 Excellent eblc1388 Excellent eblc1388 Excellent eblc1388 Excellent
    Join Date
    Jan 2005
    Location
    UK
    Posts
    2,226

    Default

    Quote Originally Posted by Bryan76
    I loaded a hex file using ic-prog and then attempted to copy it to the pic. Nothing seems to happen.
    You've started to run before you can walk.

    Just do a READ operation on the PIC to see if one can read back the PIC ID correctly. If you can't no point trying to program it with a HEX file.

    For most programming softwares, there are options inside the software to check the hardware connections by turning ON/OFF the voltage on MCLR pin, VDD pin & PGD and PGC pins to verify the actual connection of the programmer to the PC.
    L.Chung

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

Similar Threads

  1. programmer!
    By 4electros in forum Micro Controllers
    Replies: 8
    Latest: 12th November 2007, 07:48 PM
  2. PIC Programmer using C
    By burg in forum General Electronics Chat
    Replies: 2
    Latest: 24th January 2007, 07:27 AM
  3. PIC programmer & WinPicProg: my findings
    By eblc1388 in forum Micro Controllers
    Replies: 5
    Latest: 27th August 2005, 11:13 AM
  4. PIC Programmer through COM and ICSP (JDM ??)
    By test1 in forum Micro Controllers
    Replies: 6
    Latest: 12th October 2004, 08:06 AM

Tags for this Thread