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.

Need input on troubleshootinc PiCs Icd2Clone.

Status
Not open for further replies.
funnynypd said:
check the pin-out on ICSP interface.

Sorry, funnynypd, can you explain better ?
I don't really understand what do you mean.


Pigi

BTW here is my pinout of the icsp connector:

pin 1 : ( vpp ) from vpp of icd board to MCLR of pic in the target board
pin 2 : ( vcc ) from vcc of icd board to vcc of target board
pin 3 : ( GND ) from GND of icd board to GND of target board
pin 4 : ( PGD ) from RC4/5 of 877A to pin 40 of pic in the target board ( RB7/PGD )
pin 5 : ( PGC ) from RC3 of 877a to pin 39 of pic in target board ( RB6 / PGC )

Added after 1 hours 13 minutes:

Ok,
I've fixed the problem with the Module VPP: high.

It was my fault as I've exchanged a 2.2k resistor with a 22k
Replacing it with the right 2.2k res now I get 5 pass on status tab.

Now the last one.....
"Invalid target device ID ".

It seems that there is something wrong with my connector, but everything seems right.

Any other hints on this ?

Pigi
 

I have set a Pic16F877 and connected an old board with a pic16f877 to the ICD connector following the right pinout
ICDWarn0020: Invalid target device id (expected=0x4F, read=0x0)
Device ID for 16F877 is 0x4D and for 16F877A is 0x71. What is 0x4F ID? Why?
 

Jankop,
I don't know, maybe was only the output from several try.

I have done it now with the correct device and the error is :
Auto-connect not enabled - Not connecting (Try enabling auto-connect on the ICD2 settings pages.)
Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to MPLAB ICD 2
ICDWarn0020: Invalid target device id (expected=0x4D, read=0x0)
...Reading ICD Product ID
Running ICD Self Test
...Passed
MPLAB ICD 2 Ready


How much volt should I read on vpp ?

Pigi
 

So that's the problem.
I get only 5.16 volts on connector, and also the mplab settings->power tab says 5.16


I suspect I should have other errors around the mc34063.

Any idea on what to check for error ?

Added after 41 minutes:

I reply to my self:

The trouble was in the L2 that was 200 uh .
I have removed L1, and changed L2 to 100uh.
I have also changed the two resistor R1 and R2 with a trimmer ( 22k value )
With this trimmer I have regulated vpp to read 12.5 v .

At this point everithing works.
I can read a device, and also program it without trouble.

I have not check for debug, but I think it should work.

Thanks to everyone who helped.

I hope someone, reading trough this thread will find some help to fix their ICD.

Good luck.

Pigi

Added after 5 hours 25 minutes:

Last comment:
YESSSSS it also works as debugger.

I had an issue where the ICD stopped working, but I have reprogrammed and everything starts to work again.


Pigi
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top