| Author |
Message |
blueroomelectronics
Joined: 17 Sep 2006 Posts: 1681 Helped: 99 Location: Toronto, Canada
|
03 Jan 2009 1:35 Project to replace CY7C64613 in the ICD2 |
|
|
|
|
| HS_OSC should be on. Just open MPLAB and import the hex file. This will allow you to see the config fuse settings the ICD2 wants.
|
|
| Back to top |
|
 |
mistey
Joined: 28 Oct 2006 Posts: 9
|
03 Jan 2009 1:57 Re: Project to replace CY7C64613 in the ICD2 |
|
|
|
|
nothing changes:(. i got this mesages in mplab 6.10
Auto-connect not enabled - Not connecting (Try enabling auto-connect on the ICD2 settings pages.)
MPLAB ICD 2 Ready
Connecting to MPLAB ICD 2
ICD0021: (CICDAPI::Connect) Unable to connect with MPLAB ICD 2
ICD0021: (CICDController::Connect) Unable to connect with MPLAB ICD 2
MPLAB ICD 2 Ready
Downloading Operating System
ICD0021: (CICDAPI::Connect) Unable to connect with MPLAB ICD 2
...Download Operating System Failed
ICD0152: (CCommDriver::Receive) Failed to read all of requested bytes (0x0 of 0x2)
ICD0082: (CICDAPI::SendCommandAndReceiveResponse) Failed MPLAB ICD 2 operation
ICD0082: (CICDAPI::SendCommandAndReceiveResponse) Failed MPLAB ICD 2 operation
MPLAB ICD 2 Ready
Connecting to MPLAB ICD 2
ICDWarn0027: The selected baud rate is not supported by your system. Chances are it will work anyway, but if persistent communications occur, consider switching to a lower baud rate.
ICD0021: (CICDAPI::Connect) Unable to connect with MPLAB ICD 2
ICD0021: (CICDController::Connect) Unable to connect with MPLAB ICD 2
MPLAB ICD 2 Ready
|
|
| Back to top |
|
 |
ntung
Joined: 04 Aug 2006 Posts: 4
|
11 Jan 2009 3:06 Project to replace CY7C64613 in the ICD2 |
|
|
|
|
| Is it possible to use newer PIC16F886/887 for ICD2?
|
|
| Back to top |
|
 |
MPi
Joined: 10 Jun 2006 Posts: 21 Location: Hungary
|
12 Jan 2009 0:05 Re: Project to replace CY7C64613 in the ICD2 |
|
|
|
|
| ntung wrote: |
| Is it possible to use newer PIC16F886/887 for ICD2? |
This depends on the MPLAB, not the ICD2. Use the last MPLAB version.
|
|
| Back to top |
|
 |
ntung
Joined: 04 Aug 2006 Posts: 4
|
12 Jan 2009 11:24 Project to replace CY7C64613 in the ICD2 |
|
|
|
|
| What I mean is using PIC16F887 instead of PIC16F877 for ICD2 firmware.
|
|
| Back to top |
|
 |
Picstudent
Joined: 05 May 2004 Posts: 536 Helped: 13 Location: India
|
12 Jan 2009 14:38 Re: Project to replace CY7C64613 in the ICD2 |
|
|
|
|
Hello
I have made What we call 'PICs' ICD2 and is working smoothly on 16 and 18F.
Now I had tested it for Dspic 30F2010.
In MPLAB 8.1 it is not at all working for dspic- chip is not recognized-.
I have made two small dspic boards, just crystal and I/O pins to connectors.
Both boards work perfectly in MPLAB 8.1 with my original ICD2 from Microchip. But my clone even cant see the dspic.
But with MPLAB7.4 my clone detects one board while it can't with other board. But all works with original ICD2.
Is this 'Pics' icd cant do with dspics? if it is known to be working for dspics there must be some small inconsistency in data or MCLR lines in my case, which the original ICD can handle.
Any clues from those who have similer experience
regards
|
|
| Back to top |
|
 |
levy_k
Joined: 30 Dec 2008 Posts: 5
|
12 Jan 2009 14:50 Re: Project to replace CY7C64613 in the ICD2 |
|
|
|
|
| PICs clone doesn't work with low voltage devices, due to the missing output buffers.I have read around here that potyo's clone works properly with low voltage devices like PIC24, dsPIC, PIC18LF etc.
|
|
| Back to top |
|
 |
Picstudent
Joined: 05 May 2004 Posts: 536 Helped: 13 Location: India
|
12 Jan 2009 15:04 Re: Project to replace CY7C64613 in the ICD2 |
|
|
|
|
| What I am trying is not a low voltage device!
|
|
| Back to top |
|
 |
levy_k
Joined: 30 Dec 2008 Posts: 5
|
12 Jan 2009 15:22 Re: Project to replace CY7C64613 in the ICD2 |
|
|
|
|
| Sorry I haven't seen that. Do some measurements around mclr on the original and on the clone too, and compare them. What does MPLab report? Voltages? Self test? Errors?
|
|
| Back to top |
|
 |
Picstudent
Joined: 05 May 2004 Posts: 536 Helped: 13 Location: India
|
13 Jan 2009 5:37 Re: Project to replace CY7C64613 in the ICD2 |
|
|
|
|
MPLAB reports that chip cannot be detected. chip id is read as 0
Self test is ok. VPP I have set to around 12.90 volts (shown in power tab of ICD setings.
Thanks
|
|
| Back to top |
|
 |
levy_k
Joined: 30 Dec 2008 Posts: 5
|
13 Jan 2009 15:56 Re: Project to replace CY7C64613 in the ICD2 |
|
|
|
|
I advise you to check out the dsPIC30F Programming Specification http://ww1.microchip.com/downloads/en/DeviceDoc/70284B.pdf.In chapter "11.0 ICSP MODE" there is a figure: "FIGURE 11-3: ENTERING ICSP MODE".
Measure your clone and the original too with an oscilloscope, especially on MCLR and VDD lines.Compare the results, and look for some kind of delay.
Cheers!
Last edited by levy_k on 15 Jan 2009 12:48; edited 1 time in total |
|
| Back to top |
|
 |
Picstudent
Joined: 05 May 2004 Posts: 536 Helped: 13 Location: India
|
14 Jan 2009 5:07 Re: Project to replace CY7C64613 in the ICD2 |
|
|
|
|
Thanks for the suggestions. I will try to Analise those issues.
btw programming specifications for dsPIC30F2010 is http://ww1.microchip.com/downloads/en/DeviceDoc/70102J.pdf
The problem had to be somewhere in the switching transistors section of my clone. MCLR and Vdd may not be in responding as per specifications.
Thanks a lot .will update on results.
btw this attached file is the ckt diagram i am using
Regards
|
|
| Back to top |
|
 |
Picstudent
Joined: 05 May 2004 Posts: 536 Helped: 13 Location: India
|
14 Jan 2009 11:06 Re: Project to replace CY7C64613 in the ICD2 |
|
|
|
|
One update.
My hardware seems to be partially ok.
2 times it detected chip and debugged. but again lost. no chance to loose contact. made on pcb.
Any ground issue?. sometimes ok, sometimes not. will any slight supply difference can cause this issue ?
regards
|
|
| Back to top |
|
 |
levy_k
Joined: 30 Dec 2008 Posts: 5
|
14 Jan 2009 13:28 Re: Project to replace CY7C64613 in the ICD2 |
|
|
|
|
Did you place extra capacitors between the VCC and GND lines of the ICD? Because I don't see any of them on the schematic, but they are essential for proper and stable working.Place those 100nF capacitors between the PIC18F4550 and PIC16F877(A) VCC and GND line.
The other thing is that I have seen this Vpp switching mechanism on Lothar Stolz's ICD2 clone http://aerwin.szene-forum.com/stolz.de.be/icd/text02.html, but he is using different base-resistors and transistors.Here is what he says about this Vpp generator mechanism:
| Quote: |
The two diodes should be germanium or schottky type because of the lower voltage drop across them. The values of resistors together with the defined limited current amplification of the B-series transistors ensure that there will flow sufficient but not too high currents into the MCLR-Pin so the target's PIC won't latch-up.
If you use different types of transistors, you have to adjust R1 to R4. If you spend extra current limiting resistors (about 50Ohm) in line with Vpp/Vdd at T2/T3, R1 to R4 aren't cirital any more. You should be able to use 10K for R1 to R4 then. |
So, check those resistor values, and try to use a resistor on the MCLR line, about 50 to 100Ohms to prevent the latch up.
Cheers!
P.S. By the way, thank you for the points.
|
|
| Back to top |
|
 |
Picstudent
Joined: 05 May 2004 Posts: 536 Helped: 13 Location: India
|
14 Jan 2009 14:16 Re: Project to replace CY7C64613 in the ICD2 |
|
|
|
|
| levy_k wrote: |
Did you place extra capacitors between the VCC and GND lines of the ICD? Because I don't see any of them on the schematic, but they are essential for proper and stable working.Place those 100nF capacitors between the PIC18F4550 and PIC16F877(A) VCC and GND line.
So, check those resistor values, and try to use a resistor on the MCLR line, about 50 to 100Ohms to prevent the latch up.
Cheers!
P.S. By the way, thank you for the points. |
Thanks for the thread.I am looking into that- base resistors. i have introduced a 100 ohm in MCLR, but no use.
If I connect my original ICD, programe this dspic , remove it and connect this clone again , it will work for 1 minute. then back to old problem Wondering what is happening?
Regarding .1uF bypass I have already added them. Actually the schematic I posted in the original from net. I have added decoupling caps to them in my clone.
Thanks a lot
regards
|
|
| Back to top |
|
 |
Picstudent
Joined: 05 May 2004 Posts: 536 Helped: 13 Location: India
|
15 Jan 2009 11:26 Re: Project to replace CY7C64613 in the ICD2 |
|
|
|
|
I think I have found some clues.
When I use my ICD clone to debugg dspic 30F2010, the chip is stuck into somesort of a 'hanged' state.
PGC pins goes high whenever powered. No response afterwords. Even if power removed and applied. In this condition if I connect my original ICD and programe, chip will be back to normal. Again when I connect my clone chip will be detected and all ok. But if I programe using clone, chip again locks up.
You guys got the clue?
Please suggest, I am in severe pressure to solve this issue .
Thanks
|
|
| Back to top |
|
 |
levy_k
Joined: 30 Dec 2008 Posts: 5
|
15 Jan 2009 12:48 Re: Project to replace CY7C64613 in the ICD2 |
|
|
|
|
First of all, get a scope or a logic analyser and check those MCLR, VDD, PGD, PGC lines.It could be a timing issue, but we can't go any further without those images.Capture the original and the clone signals too, and there will be your answer.
Or try to build a new Vpp generator circuit and take a chance to add the output buffers too from Potyo's version.
Cheers!
|
|
| Back to top |
|
 |
Picstudent
Joined: 05 May 2004 Posts: 536 Helped: 13 Location: India
|
15 Jan 2009 13:02 Re: Project to replace CY7C64613 in the ICD2 |
|
|
|
|
| levy_k wrote: |
| First of all, get a scope or a logic analyser and check |
Ok. Will arrange a scope and see what is going on.
I have only a old ocilloscope, no storage. I think nothing can be done on that.
Let me arrange a DSO
Thanks a lot
|
|
| Back to top |
|
 |
hugo
Joined: 01 Jan 1970 Posts: 286 Helped: 27 Location: canada
|
17 Jan 2009 1:13 Re: Project to replace CY7C64613 in the ICD2 |
|
|
|
|
| Picstudent wrote: |
| levy_k wrote: |
| First of all, get a scope or a logic analyser and check |
Ok. Will arrange a scope and see what is going on.
I have only a old ocilloscope, no storage. I think nothing can be done on that.
Let me arrange a DSO
Thanks a lot |
A cheap logic analyzer( $10) with ATMEGA16 you'll find here :
http://www.ikalogic.com/scanalogic_home.php
|
|
| Back to top |
|
 |
Picstudent
Joined: 05 May 2004 Posts: 536 Helped: 13 Location: India
|
17 Jan 2009 5:28 Re: Project to replace CY7C64613 in the ICD2 |
|
|
|
|
Thanks for the link.
Could you suggest me a reasonably to low prized DSO for my purposes- MCU work. (Not high end).
Logic analyzer, I think I can build this.
Thanks a lot
Regards
|
|
| Back to top |
|
 |
mistey
Joined: 28 Oct 2006 Posts: 9
|
25 Jan 2009 3:07 Project to replace CY7C64613 in the ICD2 |
|
|
|
|
hi all
i have made an rs-232 icd2. it is seen by mplab.
but i cant program 16ef877 . this i can see in the window:
Programming Target...
...Erasing Part
...Programming EEPROM Memory
...Programming Program Memory
...Programming User IDs
...Loading DebugExecutive
...Programming DebugExecutive
...Programming Debug Vector
...Programming Configuration Bits Verifying...
...Program Memory ICD0161: (CMemory::Verify) Verify failed (MemType = 0x0, Address = 0x0, Expected Val = 0x18A, Val Read = 0x0)
...Verify Failed (and stopped)
...Verify Failed (and stopped) .
..Programming failed
thanx
|
|
| Back to top |
|
 |
Google AdSense

|
25 Jan 2009 3:07 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
IchKG
Joined: 01 Feb 2009 Posts: 3
|
02 Feb 2009 0:46 Re: Project to replace CY7C64613 in the ICD2 |
|
|
|
|
hi
first sorry for my english
i want to built my own ICD2 from PiCS
but what is the last version of this clone?
on www.icd2clone.com there are two versions Rev B and Rev C but the link to the two *.zip files are both the same so where can i get the last(and better) version?
greets
IchKG
|
|
| Back to top |
|
 |
buddace
Joined: 06 May 2007 Posts: 15
|
03 Feb 2009 8:51 Re: Project to replace CY7C64613 in the ICD2 |
|
|
|
|
Question about ICD2 clone PiCS (Rev B).
I build my prototype, program 18f4550 like desc file (mclr disable and RE3 enable).
PC correct recognize microchip ICD2 but MPLAB can't connect to ICD. There are different fuse setting for 16F877A?
How can I can check if my prototype is mounted correct ?
|
|
| Back to top |
|
 |
whipeoutnrw
Joined: 25 Oct 2006 Posts: 3
|
23 Feb 2009 20:50 Project to replace CY7C64613 in the ICD2 |
|
|
|
|
Hi buddace,
install the device driver:
C:\Programme\Microchip\MPLAB IDE\Utilities\MPUsbIRU\MPUsbIRU.exe
Then plug in the ICD2 into the usb...
Hope i can help you...
whpeoutnrw
|
|
| Back to top |
|
 |
ARMAN_23
Joined: 23 Feb 2009 Posts: 2
|
24 Feb 2009 2:17 Project to replace CY7C64613 in the ICD2 |
|
|
|
|
EXELENTE TRabajo ...
ALGUEN QUE HABLE ESPAÑOL PODRIA DECIRME DONDE DESCARAGAR EL ESQUEMA ACTUALISADO DEL ICD2 CLONE de tantos ya perdi la cuenta
|
|
| Back to top |
|
 |
KXLU
Joined: 21 Mar 2007 Posts: 8
|
24 Feb 2009 20:28 Re: Project to replace CY7C64613 in the ICD2 |
|
|
|
|
I've built Potyo v2 programmer and have problem with Vpp signal.When I'm trying to connect to ICD2 in MPLAB, error unknown target comes.In status I have:
Target Vdd: pass
Module Vpp:low
MCLR Gnd:pass
MCLR Vdd:low
MCLR Vdd:low
In Power I have:
Target Vdd:2.62
Target Vpp:2.56
MPLAB ICD2 Vpp:2.88
I connect jumper Vpp to jumper CMOS-EN.(X5-3 and X5-2).Reset(J1-J2) are not connected.Programmer is detected by OS and it is possible to upload a firmware into it.
As i know Vpp must be 13V,but i can't understand how can programmer get 13 volts from 5 volt USB.I measured voltage between GND and Vpp and there is 3V.
I put 150uH inductivity instead of 170uH.Can this be a mistake?Also I don't understand what R41 resistance is.It is written 0.47,I soldered 4k7.But in MC34063 thre is 47k resistance.So maybe because of 4k7 Vpp is not 13V?
Thanks.
Added after 2 hours 48 minutes:
I changed R41 to 47k but there is still low Vpp
|
|
| Back to top |
|
 |
potyo
Joined: 16 Apr 2006 Posts: 181 Helped: 10 Location: Ada, Vajdaság
|
24 Feb 2009 21:10 Project to replace CY7C64613 in the ICD2 |
|
|
|
|
| 0.47 is 0.47ohm
|
|
| Back to top |
|
 |
KXLU
Joined: 21 Mar 2007 Posts: 8
|
24 Feb 2009 21:21 Re: Project to replace CY7C64613 in the ICD2 |
|
|
|
|
| Hm,I think there is no resistor which hase 0.47ohm resistance.In potyo2.pdf there is R41 0.47 resistor.Can I change it to jumper(short)?
|
|
| Back to top |
|
 |
IchKG
Joined: 01 Feb 2009 Posts: 3
|
24 Feb 2009 21:24 Re: Project to replace CY7C64613 in the ICD2 |
|
|
|
|
no the resitor is important for the curentlimit
mfG
IchKG
|
|
| Back to top |
|
 |
KXLU
Joined: 21 Mar 2007 Posts: 8
|
24 Feb 2009 21:27 Project to replace CY7C64613 in the ICD2 |
|
|
|
|
| There are no resistors whith 0.47ohm resistance.Maybe 47ohm resistor is needed?
|
|
| Back to top |
|
 |