Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 1st February 2007, 10:41 PM   (permalink)
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.
Bryan76 is offline   Reply With Quote
Old 2nd February 2007, 12:00 AM   (permalink)
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....
Bryan76 is offline   Reply With Quote
Old 2nd February 2007, 01:18 AM   (permalink)
3v0
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
3v0 is offline   Reply With Quote
Old 2nd February 2007, 02:17 AM   (permalink)
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
ljcox is offline   Reply With Quote
Old 2nd February 2007, 02:20 AM   (permalink)
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.
Andy1845c is offline   Reply With Quote
Old 2nd February 2007, 02:47 AM   (permalink)
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.
Bryan76 is offline   Reply With Quote
Old 2nd February 2007, 02:48 AM   (permalink)
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.
Bryan76 is offline   Reply With Quote
Old 2nd February 2007, 03:10 AM   (permalink)
3v0
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

---------------------------------------------------------------------
3v0 is offline   Reply With Quote
Old 2nd February 2007, 03:15 AM   (permalink)
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
File Type: gif MultiChipPgmr-Cct.gif (13.0 KB, 59 views)
__________________
Gayan

My Website
http://gsmicro.blogspot.com/
Gayan Soyza is offline   Reply With Quote
Old 2nd February 2007, 04:00 AM   (permalink)
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.
__________________
I thought what I'd do was I'd pretend I was one of those deaf-mutes.

Last edited by Oznog; 2nd February 2007 at 04:41 AM.
Oznog is offline   Reply With Quote
Old 2nd February 2007, 06:54 AM   (permalink)
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?
Bryan76 is offline   Reply With Quote
Old 2nd February 2007, 08:01 AM   (permalink)
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
eblc1388 is offline   Reply With Quote
Old 2nd February 2007, 08:06 AM   (permalink)
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?
Bryan76 is offline   Reply With Quote
Old 2nd February 2007, 08:18 AM   (permalink)
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.
__________________
Gayan

My Website
http://gsmicro.blogspot.com/
Gayan Soyza is offline   Reply With Quote
Old 2nd February 2007, 08:34 AM   (permalink)
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
eblc1388 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
programmer! 4electros Micro Controllers 8 12th November 2007 07:47 PM
PIC Programmer using C burg General Electronics Chat 2 24th January 2007 07:26 AM
PIC programmer & WinPicProg: my findings eblc1388 Micro Controllers 5 27th August 2005 11:13 AM
PIC Programmer through COM and ICSP (JDM ??) test1 Micro Controllers 6 12th October 2004 08:06 AM



All times are GMT. The time now is 08:21 AM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.