| Author |
Message |
SirQui
Joined: 08 Apr 2007 Posts: 2
|
08 Apr 2007 14:41 icd2 mclr |
|
|
|
|
Hello,
I made the USB ICD2 Clone from Stolz with the 16F876A chip.
When I try to connect in MPLAB (v7.2) it gives a self-test error.
| Code: |
Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to target
Target Device PIC18F4580 found, revision = Rev 0x1
...Reading ICD Product ID
Running ICD Self Test
... Failed Self Test. See ICD2 Settings (status tab) for details.
MPLAB ICD 2 Ready |
When I then try to program/clear the 18F4580 that is connected to my ICD2:
| Code: |
Programming Target...
...Erasing Part
...Programming Program Memory (0x0 - 0xFF)
Verifying...
...Program Memory
...Verify Succeeded
...Programming succeeded
MPLAB ICD 2 Ready
Erasing Target Device...
...Erase Succeeded
MPLAB ICD 2 Ready
Blank Checking...
...Program Memory
.. Config Memory
...EEPROM
...User ID Memory
...Blank Check Passed
MPLAB ICD 2 Ready |
(After programming, the target does not seems to react on the program)
The self-test gives:
| Code: |
Target Vdd: Pass
Module Vpp: Pass
MCLR Gnd: High
MCLR Vdd: Pass
MCLR Vpp: Pass |
The power tab:
| Code: |
Target Vdd: 5.00
Target Vpp: 9.75
MPLAB ICD 2 Vpp: 12.06 |
Ofcourse I connected the ground of the ICD and the target PIC.
Anyone knows a solution for my problem?
Thank you very much!
|
|
| Back to top |
|
 |
are
Joined: 16 Nov 2004 Posts: 81 Helped: 5 Location: Balen (Belgie)
|
09 Apr 2007 21:21 icd2 mclr gnd high |
|
|
|
|
The power tab:
Code:
Target Vdd: 5.00
Target Vpp: 9.75
MPLAB ICD 2 Vpp: 12.06
Check the USB voltage! Its must bee 5V!!!!
Check L1
Check VPP,VDD whit an digital voltmeter
At the output of the OpAmp, You should tweak it to about 13V (see Voltage Monitor at ICD's Status Dialog in MPLAB!). Since the programming voltage
VPP is 13V !!!!!!!!!!!!
You can change R8, R9, R11: 330R to 100R
|
|
| Back to top |
|
 |
SirQui
Joined: 08 Apr 2007 Posts: 2
|
11 Apr 2007 18:54 mclr problem |
|
|
|
|
All voltages seem to be correct.
Changing the resistors doesn't work.
I'm now trying different MPLAB versions.
|
|
| Back to top |
|
 |
are
Joined: 16 Nov 2004 Posts: 81 Helped: 5 Location: Balen (Belgie)
|
17 Apr 2007 16:37 error setting mclr vdd |
|
|
|
|
I have seen date r is a GND problem.
You can make some test.
Remove the 16F877A and connect RC0,RC1 and RC2 whit a resistor (1K) to the VDD (+5)
Then you must put a gnd to RC0, on the target pin 1 you must have VPP 13V
Then you must put a gnd to RC1, on the target pin 1 you must have VDD 5V
Then you must put a gnd to RC2, on the target pin 1 you must have GND 0V (test it to the VDD)
|
|
| Back to top |
|
 |
Google AdSense

|
17 Apr 2007 16:37 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
Kurenai_ryu
Joined: 10 Jun 2006 Posts: 179 Helped: 22 Location: Bolivia
|
17 Apr 2007 18:38 mplab icd2 target vdd high |
|
|
|
|
Target Vdd: Pass
Module Vpp: Pass
MCLR Gnd: High <---------------------------
MCLR Vdd: Pass
MCLR Vpp: Pass
I think ICD can`t get MCLR to GND, maybe because the circuit around RC2 isn`t working, or maybe, you have connected MCLR directly to VDD, are you using an pull-up in MCLR? pull-down? wich value?
also the are's test should give you a clue...
|
|
| Back to top |
|
 |
are
Joined: 16 Nov 2004 Posts: 81 Helped: 5 Location: Balen (Belgie)
|
18 Apr 2007 10:15 icd2 vpp 13v |
|
|
|
|
Its also possible that you have place a capacity on the target MCLR. When you are using ICD2 then you must remove the capacity on the target MCLR.
Added after 4 minutes:
For making the test you may only one pin (RC0,RC1 or RC2) on the same time connecting to the GND
|
|
| Back to top |
|
 |