CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Why did my PIC die?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Christophe



Joined: 10 May 2005
Posts: 323
Location: Belgium

View user's profile Send private message

PostPosted: Thu Jun 15, 2006 8:07 am     Reply with quote

No I just programmed my PIC. Is there a way to reset the protect bit?

Is my PIC actually dead?
asmallri



Joined: 12 Aug 2004
Posts: 1680
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Thu Jun 15, 2006 8:17 am     Reply with quote

Based on the information you have given, taken at face value - I suspect not.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
Christophe



Joined: 10 May 2005
Posts: 323
Location: Belgium

View user's profile Send private message

PostPosted: Thu Jun 15, 2006 8:19 am     Reply with quote

asmallri wrote:
Based on the information you have given, taken at face value - I suspect not.


How can I get it back running then?
Ttelmah
Guest







PostPosted: Thu Jun 15, 2006 10:23 am     Reply with quote

Christophe wrote:
Ttelmah wrote:
I'd say Tvhhr.
The data sheet requires the voltage on Mclr, to rise from Vdd to Vihh in less than 1uSec. I presume that during the transition, the charge pump does not properly start, and may well overheat. Having a capacitor directly on the Mclr pin, will prevent this from happening.

Best Wishes


Can you be more clear in your explanation please? I am VERY sure that the 2u2F capacitor is the reason for my PIC dying !

Just tested it out with 100K pull up and RC (390K - 2u2F) and after programming verified all 0000h at all adresses.
After removing the RC network, same problem => PIC dead.


In the early PICs, the programming supply, was just that. The supply used for the programming. Now it is not. Instead it is a reference, used to control the output from an internal charge pump, which is turned on, when the voltage rises above Vss. Now many such circuits, will oscillate, or draw unexpected current in the 'wake up' state. Many signals draw excessive current during the 'transitions', so this is not abnormal. The programming data sheet specifies a maximum rise time on the line, of 1uSec. Now manufacturers do not give specifications without a reason (they don't give a 'minimum', since presumably it is happy to have the line switched as fast as possible). The implication is that if you switch significantly slower than the specified rate, it causes some problem to the internal circuits.
Now the rule of thumb, is that unless you want to be a 'test pilot', keep signal levels and transitions, inside what the manufacturer says.
What the implications of a slow transition on this line are, it is impossible to say, without the full internal circuit. However two possibilities come to mind:
1) It destroys part of the programming circuit.
2) It results in abnormal programming.
If you are using LVD (the fact that you connect to the programming pins for this, suggests you may be using this), then it is possible that all that needs to be done, is to erase the chip _using a high voltage programmer_. This would be the case if the protection fuses had become set, which cannot be cleared using LVP.
However the second possibility is that it has destroyed part of the internal programming circuit.

Best Wishes
adrian



Joined: 08 Sep 2003
Posts: 92
Location: Glasgow, UK

View user's profile Send private message

PostPosted: Fri Jun 16, 2006 5:27 am     Reply with quote

Christophe

Quote:
Can you be more clear in your explanation please? I am VERY sure that the 2u2F capacitor is the reason for my PIC dying !


I cannot see you schematics - I am at work and the site is blocked. But I did find this quote recently...
Quote:
Fried -MCLR Line (this is probably a new one on everybody) - If you tie an electrolytic capacitor directly to the reset pin (-MCLR) of a PIC UV-erasable microcontroller (as is common practice in microcontroller reset circuits in order to guarantee a slow risetime on the pin), you can damage the internal circuitry, such that, the chip will appear to erase and appear to program correctly, but some of the code will not run correctly. We've found that code space above the 2K boundary is most commonly affected, but there seems to be no repeatability as to what specific memory areas are affected. The giveaway that the internal circuitry has been damaged in these chips is twofold: (a) a large leakage current into the -MCLR pin is measured (up to 100s of uA, instead of < 1 uA), and (b) the erasure time of the chips increases dramatically, compared to chips without damage (we've spent a few $$$ learning this one, too).
The Microchip datasheet DOES mention using a 100-1000 ohm series resistor in the -MCLR line to limit current flowing from an external capacitor "in the event of MCLR pin breakdown due to ESD or EOS" - so Microchip appears to be aware of the general susceptibility of this pin, but their use of the term "in the event of" is some kind of doubletalk. In fact, tying a capacitor directly to the pin is the source of the electrical overstress.


It's buried on this web site http://www.oricomtech.com/piclinks.htm

Hopes this helps.
rnielsen



Joined: 23 Sep 2003
Posts: 852
Location: Utah

View user's profile Send private message

PostPosted: Fri Jun 16, 2006 9:01 am     Reply with quote

It soulds as if you only have One PIC. Whenever you are designing new circuits _Always_ have Several PIC's on had because the odds on frying a few is rather high. I have had many PIC's give their life in the search of a better circuit. Shocked If, during your design process, your PIC suddenly stops functioning then it's time to grab an extra one and see if it's the circuit, software or PIC that's having the problem.

Ronald
Christophe



Joined: 10 May 2005
Posts: 323
Location: Belgium

View user's profile Send private message

PostPosted: Mon Jun 19, 2006 12:53 am     Reply with quote

adrian wrote:
Christophe

Quote:
Can you be more clear in your explanation please? I am VERY sure that the 2u2F capacitor is the reason for my PIC dying !


I cannot see you schematics - I am at work and the site is blocked. But I did find this quote recently...
Quote:
Fried -MCLR Line (this is probably a new one on everybody) - If you tie an electrolytic capacitor directly to the reset pin (-MCLR) of a PIC UV-erasable microcontroller (as is common practice in microcontroller reset circuits in order to guarantee a slow risetime on the pin), you can damage the internal circuitry, such that, the chip will appear to erase and appear to program correctly, but some of the code will not run correctly. We've found that code space above the 2K boundary is most commonly affected, but there seems to be no repeatability as to what specific memory areas are affected. The giveaway that the internal circuitry has been damaged in these chips is twofold: (a) a large leakage current into the -MCLR pin is measured (up to 100s of uA, instead of < 1 uA), and (b) the erasure time of the chips increases dramatically, compared to chips without damage (we've spent a few $$$ learning this one, too).
The Microchip datasheet DOES mention using a 100-1000 ohm series resistor in the -MCLR line to limit current flowing from an external capacitor "in the event of MCLR pin breakdown due to ESD or EOS" - so Microchip appears to be aware of the general susceptibility of this pin, but their use of the term "in the event of" is some kind of doubletalk. In fact, tying a capacitor directly to the pin is the source of the electrical overstress.


It's buried on this web site http://www.oricomtech.com/piclinks.htm

Hopes this helps.


That is exactly my problem! It seems erased but programs fine.

Ttelmah, I am using HVP. The problem is imo the fall time of the voltage on the MCLR - pin. The 12V stays there too long after programming is finished. I think that is the problem.

Now my boss is eager to use that R-C network instead of standard specs. Sad He wants a parallel resistor to the capacitor in order to let it discharge faster to ground. Is that a solution ?

What is the maximum current that comes out ICD-U40 12V MCLR line?
asmallri



Joined: 12 Aug 2004
Posts: 1680
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Mon Jun 19, 2006 12:56 am     Reply with quote

Christophe wrote:
adrian wrote:
Christophe

Quote:
Can you be more clear in your explanation please? I am VERY sure that the 2u2F capacitor is the reason for my PIC dying !


I cannot see you schematics - I am at work and the site is blocked. But I did find this quote recently...
Quote:
Fried -MCLR Line (this is probably a new one on everybody) - If you tie an electrolytic capacitor directly to the reset pin (-MCLR) of a PIC UV-erasable microcontroller (as is common practice in microcontroller reset circuits in order to guarantee a slow risetime on the pin), you can damage the internal circuitry, such that, the chip will appear to erase and appear to program correctly, but some of the code will not run correctly. We've found that code space above the 2K boundary is most commonly affected, but there seems to be no repeatability as to what specific memory areas are affected. The giveaway that the internal circuitry has been damaged in these chips is twofold: (a) a large leakage current into the -MCLR pin is measured (up to 100s of uA, instead of < 1 uA), and (b) the erasure time of the chips increases dramatically, compared to chips without damage (we've spent a few $$$ learning this one, too).
The Microchip datasheet DOES mention using a 100-1000 ohm series resistor in the -MCLR line to limit current flowing from an external capacitor "in the event of MCLR pin breakdown due to ESD or EOS" - so Microchip appears to be aware of the general susceptibility of this pin, but their use of the term "in the event of" is some kind of doubletalk. In fact, tying a capacitor directly to the pin is the source of the electrical overstress.


It's buried on this web site http://www.oricomtech.com/piclinks.htm

Hopes this helps.


That is exactly my problem! It seems erased but programs fine.

Ttelmah, I am using HVP. The problem is imo the fall time of the voltage on the MCLR - pin. The 12V stays there too long after programming is finished. I think that is the problem.

Now my boss is eager to use that R-C network instead of standard specs. Sad He wants a parallel resistor to the capacitor in order to let it discharge faster to ground. Is that a solution ?

What is the maximum current that comes out ICD-U40 12V MCLR line?


Your boss is a moron. Read the specs.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
kender



Joined: 09 Aug 2004
Posts: 768
Location: Silicon Valley

View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

PostPosted: Mon Jun 19, 2006 1:30 am     Reply with quote

asmallri wrote:
Christophe wrote:

Now my boss is eager to use that R-C network instead of standard specs. Sad He wants a parallel resistor to the capacitor in order to let it discharge faster to ground. Is that a solution ?


Your boss is a moron. Read the specs.


I concur with asmallri about your boss.
Sometimes folks add a diode for the capacitor to discharge, but even the diode is outside the spec. http://ww1.microchip.com/downloads/en/DeviceDoc/51265g.pdf
Christophe



Joined: 10 May 2005
Posts: 323
Location: Belgium

View user's profile Send private message

PostPosted: Mon Jun 19, 2006 5:28 am     Reply with quote

asmallri wrote:
Christophe wrote:
adrian wrote:
Christophe

Quote:
Can you be more clear in your explanation please? I am VERY sure that the 2u2F capacitor is the reason for my PIC dying !


I cannot see you schematics - I am at work and the site is blocked. But I did find this quote recently...
Quote:
Fried -MCLR Line (this is probably a new one on everybody) - If you tie an electrolytic capacitor directly to the reset pin (-MCLR) of a PIC UV-erasable microcontroller (as is common practice in microcontroller reset circuits in order to guarantee a slow risetime on the pin), you can damage the internal circuitry, such that, the chip will appear to erase and appear to program correctly, but some of the code will not run correctly. We've found that code space above the 2K boundary is most commonly affected, but there seems to be no repeatability as to what specific memory areas are affected. The giveaway that the internal circuitry has been damaged in these chips is twofold: (a) a large leakage current into the -MCLR pin is measured (up to 100s of uA, instead of < 1 uA), and (b) the erasure time of the chips increases dramatically, compared to chips without damage (we've spent a few $$$ learning this one, too).
The Microchip datasheet DOES mention using a 100-1000 ohm series resistor in the -MCLR line to limit current flowing from an external capacitor "in the event of MCLR pin breakdown due to ESD or EOS" - so Microchip appears to be aware of the general susceptibility of this pin, but their use of the term "in the event of" is some kind of doubletalk. In fact, tying a capacitor directly to the pin is the source of the electrical overstress.


It's buried on this web site http://www.oricomtech.com/piclinks.htm

Hopes this helps.


That is exactly my problem! It seems erased but programs fine.

Ttelmah, I am using HVP. The problem is imo the fall time of the voltage on the MCLR - pin. The 12V stays there too long after programming is finished. I think that is the problem.

Now my boss is eager to use that R-C network instead of standard specs. Sad He wants a parallel resistor to the capacitor in order to let it discharge faster to ground. Is that a solution ?

What is the maximum current that comes out ICD-U40 12V MCLR line?


Your boss is a moron. Read the specs.


You tell him that!

After sending the article about the MCLR dead, he -thank god- changed his mind; we now just omit the capacitor on the MCLR line.

thanks for all your input
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group