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.

ICD2 debugger stays at 0x0000 (NOP) with Enhanced mid-range PIC 16F1827

Status
Not open for further replies.

lovefool

Newbie level 4
Newbie level 4
Joined
Dec 19, 2003
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
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.
 

Attachments

  • IMG_0784.JPG
    IMG_0784.JPG
    124 KB · Views: 175
  • IMG_0793.JPG
    IMG_0793.JPG
    116.7 KB · Views: 146
  • IMG_0792.JPG
    IMG_0792.JPG
    135.8 KB · Views: 131
  • 877ATEST.zip
    1 KB · Views: 129
Last edited:

[solved]

After studying several schematics, I had decided to make a add-on board of ICSP circuit using tristate buffers 74HC125 & 126. (Poyto rev.C) Today I've just made PCB and hooked to ICD2 clone. Now the debugger (at least CCS) works!
sch.jpgpcb.jpgIMG_0804.JPG
love
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top