lovefool
Newbie level 4
- Joined
- Dec 19, 2003
- Messages
- 7
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 68
Hi all,
I know ICD2 is obsolete and we can buy ICD3 at less than $200 now. BTW, I needed to debug my code on 16F1827 and most of parts were on hand, I had decided to build a ICD2 clone and a 8.5V Vpp limitter. (poyoto rev.B?, using transistors) It took a few days from etching PCB to soldering, now it works fine with old PICs like 16F877A. (erase, program, debug)
Now the problem is the debugger (both MPLAB and CCS) stays at 0x0000 (NOP) when I debug new Enhanced mid-range PIC like 16F1827. I have searched and found the following post that says ICSPCLK needs to be fixed. Does anybody know what is the ISCPCLK problem and how to fix it?
https://www.microchip.com/forums/m557422.aspx
For more information about my ICD2 clone
The thing I added to the original.
1) Add SMT 0.1uF caps between VCC & GND of 4550/877A
2) Add SMT 0.1uF and 47uF electro between 5V USB line.
(This made the circuit very stable. Before adding these two caps, USB-LED became off when I touch 4550)
3) Add 10K to MCLR of 4550. (no changes)
Before working, I did several test as followings;
1) Removed 4550, then jumper 36pin of 4550 to VCC, and measured the voltage of MCLR of 877A. (reset of 877a) it was 0.1V, so the NPN transistor is OK and reset from 4550 should work.
2) Made a small test program for 877A.
This program blinks leds (BUSY and ERROR that connected to 877A), so I can see 877A have correct voltage line & signal from X'tal. Also when I press "connect" of MPLAB, I can see 877A restart blinking. (You need to insert 4550, since both PICs share the X'tal.)
3) Verified connection between 4550 & 877A at least 5 times. (8 data lines, 3 control lines, X'tal and reset line)
Used firmware
1)icd24550-woCP_by_Zedman.hex for 4550
2)ICD2_16F877A_boot.hex for 877A
After starting MPLAB, I need to download OS "ICD01020706.hex" manually. (I don't know why not automatically downloaded, even tho setting is YES to download.)
Thanks in advance,
love.
I know ICD2 is obsolete and we can buy ICD3 at less than $200 now. BTW, I needed to debug my code on 16F1827 and most of parts were on hand, I had decided to build a ICD2 clone and a 8.5V Vpp limitter. (poyoto rev.B?, using transistors) It took a few days from etching PCB to soldering, now it works fine with old PICs like 16F877A. (erase, program, debug)
Now the problem is the debugger (both MPLAB and CCS) stays at 0x0000 (NOP) when I debug new Enhanced mid-range PIC like 16F1827. I have searched and found the following post that says ICSPCLK needs to be fixed. Does anybody know what is the ISCPCLK problem and how to fix it?
https://www.microchip.com/forums/m557422.aspx
For more information about my ICD2 clone
The thing I added to the original.
1) Add SMT 0.1uF caps between VCC & GND of 4550/877A
2) Add SMT 0.1uF and 47uF electro between 5V USB line.
(This made the circuit very stable. Before adding these two caps, USB-LED became off when I touch 4550)
3) Add 10K to MCLR of 4550. (no changes)
Before working, I did several test as followings;
1) Removed 4550, then jumper 36pin of 4550 to VCC, and measured the voltage of MCLR of 877A. (reset of 877a) it was 0.1V, so the NPN transistor is OK and reset from 4550 should work.
2) Made a small test program for 877A.
This program blinks leds (BUSY and ERROR that connected to 877A), so I can see 877A have correct voltage line & signal from X'tal. Also when I press "connect" of MPLAB, I can see 877A restart blinking. (You need to insert 4550, since both PICs share the X'tal.)
3) Verified connection between 4550 & 877A at least 5 times. (8 data lines, 3 control lines, X'tal and reset line)
Used firmware
1)icd24550-woCP_by_Zedman.hex for 4550
2)ICD2_16F877A_boot.hex for 877A
After starting MPLAB, I need to download OS "ICD01020706.hex" manually. (I don't know why not automatically downloaded, even tho setting is YES to download.)
Thanks in advance,
love.
Attachments
Last edited: