|
 |
|
03-02-2005, 03:37 PM
|
#1
|
|
Raw Wave
Join Date: Mar 2004
Location: Redondo Beach, CA
Posts: 1,969
|
Homebrew Microchip ICD2 Clone
I've been asked about this since I mentioned it in another thread. There are several good PIC programmer circuits that can be constructed for < $10 on the web. The big limitation of most of them is the software. Unless the software that controls your programmer supports the PIC you want, you'll be out of luck.
The best way around this is to build a programmer that emulates one of the Microchip designs supported by Microchip's MPLAB development environment. This particular example goes one step further and emulates the Microchip In Circuit Debugger 2. It can program and debug any chip supported by MPLAB. MPLAB almost always has support for newer chips long before anything else.
The circuit I built is more or less exactly the one specified by Lothar Stolz ( http://stolz.de.be/icd/main.html) I only changed the transistors to parts I had lying around. You can get all of the parts you need cheaply from Randy at glitchbuster.com or use Digikey, Mouser, Jameco, ... if you want to pay a bit more. The circuit board you can get at radio shack -- or maybe glitchbusters has them too, dunno. I think I spent less than $30 on this.
Last edited by rando; 03-23-2005 at 07:59 PM.
|
|
|
|
|
|
Advertisement
|
Sponsored links
|
03-02-2005, 03:39 PM
|
#2
|
|
Raw Wave
Join Date: Mar 2004
Location: Redondo Beach, CA
Posts: 1,969
|
My assembled board -- ugly!
|
|
|
03-02-2005, 03:40 PM
|
#3
|
|
Raw Wave
Join Date: Mar 2004
Location: Redondo Beach, CA
Posts: 1,969
|
and the backside solder traces
|
|
|
03-02-2005, 03:44 PM
|
#5
|
|
MySQL Error
Join Date: May 2003
Location: Miami, FL
Posts: 4,353
|
ICD is awesome, so much cheaper than the incircuit I built with the huge relay. Great info rando.
|
|
|
03-03-2005, 09:35 PM
|
#6
|
|
Constant Bitrate
Join Date: Feb 2004
Location: VA
Posts: 192
|
Haha kickass thread dude. I built one on a breadboard but I think I messed something up.  Mplab connects, gives a few errors, says "ICD2 Ready" then nothing. Guess I'll try looking at the schematic once more.
Ah - also noticed you put the LEDs in...nice touch.
|
|
|
03-03-2005, 09:47 PM
|
#7
|
|
Raw Wave
Join Date: Mar 2004
Location: Redondo Beach, CA
Posts: 1,969
|
I added 2 LEDs based on a different schematic that showed which pins they go on. I've only ever seen one of them light up though.
Sorry it's not working for you. Try debugging it a piece at time -- starting with your max232. You can completely ignore the target interface until you get the MPLAB communication part working with your PIC. Did you use the 16F876 or did you try the 876A or 877 or 877A? The MPLAB bootloader is for the 876 only I believe.
|
|
|
03-03-2005, 10:36 PM
|
#8
|
|
Constant Bitrate
Join Date: Feb 2004
Location: VA
Posts: 192
|
Yeah I'm using the 16F877 and it is probally why. I couldn't source a 16F876(non-A for some reason.) I burned the fw to it fine and the website doesn't mention any differences. What I think I'm going to do is just use a different schematic. I found ICD2_clone_3_4.zip ( http://icd2clone.narod.ru/) using the 876A and the zip includes the bootloader. So I figure I can try that next....minus the whole SMD thing...
|
|
|
03-03-2005, 10:46 PM
|
#9
|
|
Raw Wave
Join Date: Mar 2004
Location: Redondo Beach, CA
Posts: 1,969
|
You can get the 876 at glitchbusters.com. Check out the thread below. There is a link to ICD661.hex bootloader that supposedly will work with an 876A chip. Also a guy in there had problems making the circuit work with an 877 -- just like you.
http://www.picbasic.org/forum/showth...highlight=ICD2
|
|
|
03-14-2005, 02:54 PM
|
#10
|
|
Raw Wave
Join Date: May 2003
Posts: 2,021
|
Heres the PCB I made.
Added a power LED, polarity protection diode, smooting capacitor and a resistor to limit the VPP current just in case of a short. I believed rando blew one of the transistor
Last edited by Chris31; 03-14-2005 at 03:05 PM.
|
|
|
03-14-2005, 02:57 PM
|
#11
|
|
Raw Wave
Join Date: May 2003
Posts: 2,021
|
Opps, heres the solder side.
Anyone interested in the PCB pattern? Let me know and Ill post it as PDF
|
|
|
03-14-2005, 04:06 PM
|
#12
|
|
Raw Wave
Join Date: Mar 2004
Location: Redondo Beach, CA
Posts: 1,969
|
Oooh that's nice. What did you use to lay that out with? Also, did you fab that yourself or did you have it done at a PCB house?
|
|
|
03-14-2005, 04:10 PM
|
#13
|
|
MySQL Error
Join Date: Sep 2003
Location: Beach City, Socal
Posts: 4,035
|
Dam that nice and clean.
If you could, please post the pdf of the PCB.
|
|
|
03-14-2005, 04:30 PM
|
#14
|
|
Raw Wave
Join Date: Mar 2004
Location: Redondo Beach, CA
Posts: 1,969
|
If you have a Digikey or Mouser quick order list that would help people to get one of these together fairly quickly.
|
|
|
03-14-2005, 04:34 PM
|
#15
|
|
MySQL Error
Join Date: Sep 2003
Location: Beach City, Socal
Posts: 4,035
|
Quote: Originally Posted by rando
If you have a Digikey or Mouser quick order list that would help people to get one of these together fairly quickly.
Thanks Rando, that is one part I forgot to ask.
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:23 AM.
| |