The MP3car.com Store The MP3car.com Blog    

Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Hardware Development

Reply
 
LinkBack Thread Tools Display Modes
Old 03-02-2005, 03:37 PM   #1
Raw Wave
 
rando's Avatar
 
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.
__________________
2004 4runner

Last edited by rando; 03-23-2005 at 07:59 PM.
rando is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 03-02-2005, 03:39 PM   #2
Raw Wave
 
rando's Avatar
 
Join Date: Mar 2004
Location: Redondo Beach, CA
Posts: 1,969
My assembled board -- ugly!
Attached Images
 
__________________
2004 4runner
rando is offline   Reply With Quote
Old 03-02-2005, 03:40 PM   #3
Raw Wave
 
rando's Avatar
 
Join Date: Mar 2004
Location: Redondo Beach, CA
Posts: 1,969
and the backside solder traces
Attached Images
 
__________________
2004 4runner
rando is offline   Reply With Quote
Old 03-02-2005, 03:43 PM   #4
Raw Wave
 
rando's Avatar
 
Join Date: Mar 2004
Location: Redondo Beach, CA
Posts: 1,969
If you want to make it cleaner, download the free version of Eagle Schematic/Layout editor and build yourself a nice board. Then order a custom PCB from SparkFun Electronics for only $2.50 per square inch.

http://www.cadsoftusa.com/
http://www.sparkfun.com/shop/index.p...190157&cat=86&
__________________
2004 4runner
rando is offline   Reply With Quote
Old 03-02-2005, 03:44 PM   #5
MySQL Error
 
jcdillin's Avatar
 
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.
__________________
肚子笑痛了
S60 Install
jcdillin is offline   Reply With Quote
Old 03-03-2005, 09:35 PM   #6
Zac
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.
Zac is offline   Reply With Quote
Old 03-03-2005, 09:47 PM   #7
Raw Wave
 
rando's Avatar
 
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.
__________________
2004 4runner
rando is offline   Reply With Quote
Old 03-03-2005, 10:36 PM   #8
Zac
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...
Zac is offline   Reply With Quote
Old 03-03-2005, 10:46 PM   #9
Raw Wave
 
rando's Avatar
 
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
__________________
2004 4runner
rando is offline   Reply With Quote
Old 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
Attached Images
 

Last edited by Chris31; 03-14-2005 at 03:05 PM.
Chris31 is offline   Reply With Quote
Old 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
Attached Images
 
Chris31 is offline   Reply With Quote
Old 03-14-2005, 04:06 PM   #12
Raw Wave
 
rando's Avatar
 
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?
__________________
2004 4runner
rando is offline   Reply With Quote
Old 03-14-2005, 04:10 PM   #13
MySQL Error
 
MatrixPC's Avatar
 
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.
__________________
2004 Matrix XR A7N8X-VM/400 AMD XP-M 2500+, DS-ATX
89 Supra Turbo P3 600E@750/Abit BE6 II, Alpine M-BUS Car2PC.
Y2K Accord Dell GX150
RoadRunner is the best FE PERIOD
EmoRebellion is a SCAMMER
MatrixPC is offline   Reply With Quote
Old 03-14-2005, 04:30 PM   #14
Raw Wave
 
rando's Avatar
 
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.
__________________
2004 4runner
rando is offline   Reply With Quote
Old 03-14-2005, 04:34 PM   #15
MySQL Error
 
MatrixPC's Avatar
 
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.
__________________
2004 Matrix XR A7N8X-VM/400 AMD XP-M 2500+, DS-ATX
89 Supra Turbo P3 600E@750/Abit BE6 II, Alpine M-BUS Car2PC.
Y2K Accord Dell GX150
RoadRunner is the best FE PERIOD
EmoRebellion is a SCAMMER
MatrixPC is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


All times are GMT -5. The time now is 04:23 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics