Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] Project to replace CY7C64613 in the ICD2

Status
Not open for further replies.
@ roykyn

No, you can't.
ICD2 clone needs Parallel Port interface and 18F2550 doesn't have this function.

Luca.
 

For all those people who can't read or being too lazy to get through ~60 pages of this topic

Some basic thesis :
1. If you don't have some advanced skills in electronics - don't do this project !!! (make some easier programmer)
2. If you have only multimeter & soldering iron - don't do this project !!!
3. If you don't want to debug your code via ISP - don't do this project...

Why ?
Because, for 99.99%, you'll fail...

What you should have in your equipment :
1. Good soldering iron (decent hotair for TQFP smd work)
2. Good multimeter
3. Any kind of logic analyzer, oscilloscope, etc... (it don't have to scope 20MHz signals....)
4. Reliable simple programmer for 18F PICs (Lothar's Stolz JDM (check his site), SCHAER, etc...)

What next ? :

1. Choose your project - potyo2 or some PiCS
or
1a. Get the schematics and create your own PCB (the harder way)
2. Get the parts
- Yes, there are 0.47 Ohm resistors ... (smd and thru-hole are available)
- No, you can not use 18F2550 instead of 4550 (Parallel Port is needed)
- Yes, you can solder manual potentiometer instead of MCP41010 digpot
- the inductance of VPP generator's coil may be about 100-200uH
3. Make the PCB
- using your favourite method (toner transfer or UV varnish)
- if you created your own PCB :
- check the connections
- check them again
- now get the original schematic and check your routes again
- and again... (most errors comes from erratic layout)
4. Make vias or jumpers
- Yes, it is possible to create doublesided PCB at home with vias
- Yes, it is possible to create doublesided PCB at home with under-IC vias (you need some 0.5-0.6mm copper wire and this kind of tool : **broken link removed**)
- No, you don't have to solder the vias
- Yes, you should have 0.5mm drill in your equipment

5. Solder ICs (TQFPs and SOICs)
5a. Check shorts twice
6. Depending on your project you should program your 4550 & 877(A) now, or you can do it later

7. Solder remaining parts
7a. Check shorts and major connections (power rails for shorts, D+, D-, PSP0-7 lines, RD, CS, WR, 877_MCLR)
8. Connect to USB port

If Windoze detects it & driver installation is ok & MPLAB recognizes it clearly, download the OS & be happy - you're very lucky guy (chick :) )

But, for 99.99%, something went wrong...

Troubleshooting:
1. Unknown Device :
- there may be problem with power rails - check for shorts
- there may be problem with D+,D- rails
- there may be problem with 4550 programming - reprogram it
- there may be problem with 4550 config fuses :
4550 configuration most important settings:
a) HS+PLL oscillator
b) 96MHz prescaler - divide by 5 (20MHz input)
c) CPU system clock postscaler - PLL/2 (48MHz CPU clock)
d) FullSpeed USB clock source - PLL/2
e) USB Voltage Regulator - Enabled
f) Watchdog disabled
- there is not enough of bypass capacitors (VUSB to GND)
- there is too big capacitance between VUSB & GND (10uF should be max) - check capacitors you've soldered

- of course there can be some more stupid errors...

2. If device is recognized by WinXX then the driver should be installed without problems - if not - you might have problem with your PC/windoze

3. If device is visible in Device Manager as MicrochipTools then MPLAB should detect it - if not - reinstall MPLAB, reinstall ICD2 USB drivers

4. Select ICD2 as PROGRAMMER & Setup ICD2 in MPLAB - communication:USB, DO NOT CONNECT AUTOMATICALLY, DO NOT UPLOAD OS AUTOMATICALLY !!!! (at least for the first time)

5. There should be enabled Download ICD2 Operating System command in Programmer menu - try it
- Unable to communicate with ICD or Product ID (0) - COMMUNICATION FAIL between 4550 & 877x !!! : - check PSP lines, RD, WR, CS, check 877_MCLR, check 877(A) programming, check 877(A) fuses, 877(A) power rails bypass capacitors
877(A) configuration FUSES :
a) HS oscillator
b) WDT off
c) PUT off
d) BOD off
e) LVP disabled
f) all code protection OFF !!!

- framing errors - read general problems troubleshooting (comes next in this post)

- first time you get connected ok, then after Reset&Connect you have Unable to connect : CHECK 1MCLR line - 877 isn't resetted properly by 4550

6. OS Downloaded OK, but ICD2 Self Test Failed : go into Programmer/Settings/Status
- MCLR Vdd : Low - enable Power Target from ICD & run Self Test again - if it pass then it is normal behavior
- MCLR Vdd : Low/ Target Vdd : Low - check 1RA1 line, VDD metering resistors , switching transistors (those PNP ones)
- Module Vpp / MCLR Vpp High/Low - check VPP generator for output voltage, VPP metering resistors (1RA0 line, 1RA3 line)
- MCLR Gnd : HIGH - connection problem with 1RA0 line - 1RA0 pin is floating...


GENERAL FAILURES TROUBLESHOOTING :
- check VPP generator's filtering capacitors - IT IS CRITICAL for ICD2 - if it's too low, then the spikes from generator would kill any USB & inter-IC transmittions by spreading via power lines
- scope power lines for spikes & check bypass capacitors
- recheck again for short-circuits
- reprogramm 4550 and/or 877(A) with proper HEX
- install earlier version of MPLAB (Yes, it sometimes cures the thing)
- IC's shouldn't get hot or even warm - check for shorts and check for proper voltages on terminals - if 4550 is getting warm, but ICD is working then you have not enough bypass capacitors on it's power rails... the same may be applied to 877(A)

Of course, there can be more problems, but if you can not overcome them, then you should drink some coffee and let this great programmer to be made for you by someone else...
 

Hi,

I have a little question regarding the 18F4550. Since this is not available in our place, can i use one of it's variant the 18LF4455? They are in the same datasheet when i download the 18f4550. I really love to build this ICD2 clone. As of now, i'm using a serial ICD2 clone but my laptop have no serial port. Commercial available USB converter is unstable.

Hope for your reply.

BR
 

LF4455 may not work, it has smaller amount of code memory - probably you would have to adjust firmware to fit in new code area conditions (ICD-USB firmware should fit, but there is also bootloader - there may be some address problems...)
 

I can`t instal the drivers. I use Win XP SP3. When I try to instal the drivers (XP drivers or Microchip) I see a blue screen.
 

So, you've got a problem with your OS - reinstall windoze, try your ICD on another PC...
 

Hi

Sorry my bad English. i build potyo2 but i live some problem module vpp and mclr vpp in self test write low not run usb power led and icd2 vpp is low

Target Vdd:5.0
Target Vpp: 3.99
Mplap Icd2 Vpp : 4.39

and i can't find and solve problem please help me for run it

Best Regards:cry::cry:
 

Hey guys, I made a PiCS REV.B and works perfectly! But now i have some troubles, suddenly my 18F4550 stopped to work, and it's damaged, don't work anymore in my ICD2. But if I verify the 18F4550 in the MPLAB, I can read the pic, program, everything, but doesn't work in the ICD2. I bought a new one, and my ICD2 started to work again, but somedays from now, it happends again this trouble, the 18F4550 stops to work in the ICD2, but works in the MPLAB, and if I put a new one, works again my ICD2... What can be to sometimes my 18F4550 stay damaged?? I lost two 18F4550, and now I want to know why they don't work anymore in the ICD2, where the MPLAB say that his OK.

thanks for any help, and sorry for my english!
Otto Hartfelder
 

sorry for asking silly questions
where can i find potyo2's ICD2 schematics
 

did any one follow crazyduck's schematics
can anyone tell me what is MG411

Added after 3 minutes:

can anyone tell me is MG411 = DG411???
 

hi everyone !!

first good job here!!!
so i have a question i want to realise this version of ICD2 clone :




do this shematic work well? is he have mistake again??
do this clone work with MPLAB 8.20??

thank
 

thank for your response ! it's true that pickit2 seem to be very powerful !
is a debugger too?

but the reason of my choice about icd2 realisation is that there exist a "PDIP" version of this debug / programmer.
is exist a "PDIP" version of pickit2 ??
 

My Junebug kit is a PDIP version of the PICkit2 and yes the PICkit2 supports debug. Download the Junebug manual from my site.
**broken link removed**
 

HI All, I feel really bad about posting this question as I feel it has been answered before, but I just can't find the answer. Could someone please tell me on the potyo v2, what is the X5 jumper for? Is it to choose whether the ICD provides power to the target? if so, which pads should be shorted for with mode??

Thanks

Mark
 

Gents

I had constructed the ICD2 clone posted somewher on this forum.....so far this is running okey in programming chips, updating its own software & etc. So far the one mode that I didnt tested yet is the debugger mode.

My question upon voltage test the bMPLAB gives 4.5 & 11.38 respectively.
Is there any unforseen side effects on this.

The PIC I am using is PIC16F877A with com2 connectivity.
The software I initially loaded is the one from Blue of Canada
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top