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 1, 2  Next
 
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

Why did my PIC die?
PostPosted: Thu Jun 15, 2006 4:21 am     Reply with quote

Hi,

please help me understanding why my PIC died?

schematic of the reset button : (howto display this on the forum btw?)

http://users.[spam].be/chs/Werk/reset1.jpg

I used low ohmic pull-up in order to protect the PIC from ESD. The R-C network for the same reasons.

Vpic = 3V:

http://users.[spam].be/chs/Werk/3V.jpg

schematic of the PIC :

http://users.[spam].be/chs/Werk/pic1.jpg

I'm using CCS-ICDU40 (usb) programmer. On programming 13V is put on the reset line. Why does my PIC die?
rberek



Joined: 10 Jan 2005
Posts: 207
Location: Ottawa, Canada

View user's profile Send private message

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

Your pull up should be 47K on the reset if you are programming with the ICD.

I this the small resisitor let the reset pin sink way too much current.
Christophe



Joined: 10 May 2005
Posts: 323
Location: Belgium

View user's profile Send private message

PostPosted: Thu Jun 15, 2006 5:14 am     Reply with quote

How is that?

Don't you see the 390K ohms in series with the MCLR and the button.
Ttelmah
Guest







PostPosted: Thu Jun 15, 2006 5:24 am     Reply with quote

First comment. You show connections being bought out to a header, as though you are going to use LVP ICSP. If so, the PGM line, should have a resistor to GND, otherwise during bootup, when the pin is programmed as an input, the line can float enough to trigger programming.
Second comment, there are a lot of lines going 'off circuit' (SCAN, Dn etc.). What do these connect to, how are these protected?.
I'd seriously consider having a zener across the piezo element, and a resistor to limit any back emf into the PIC. Remember a piezo element, can both convert voltage to sound, and also operate the other way. This is how piezo lighters etc., work. If an impact takes place on the piezo module, it is very possible that this could have damaged the pin to which it is connected, or the rest of the PIC...

Best Wishes
Christophe



Joined: 10 May 2005
Posts: 323
Location: Belgium

View user's profile Send private message

PostPosted: Thu Jun 15, 2006 5:29 am     Reply with quote

The problem is round the MCLR line. When I connected my programmer, my pic dies!

the data and scan lines are protected at the place where ESD sparks can enter the circuit (not shown).

Don't think the buzzer killed the PIC. The cause is around MCLR line, I don't understand how.

Pin RB3 is used for debugging using the CCS C compiler/programmer
rberek



Joined: 10 Jan 2005
Posts: 207
Location: Ottawa, Canada

View user's profile Send private message

PostPosted: Thu Jun 15, 2006 5:40 am     Reply with quote

I apologize. I went only by your verbal description.
asmallri



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

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

Re: Why did my PIC die?
PostPosted: Thu Jun 15, 2006 5:54 am     Reply with quote

You have not used standard reset circuitry.

You should not have the 2.2uF capacitor on the reset line in this configuration. It will result in the 12 volt remaining applied to the reset pic after you have programmed the chip which in turn can result in the PIC being erased or erroneously programmed.

390K is too high a value, especially if there is any leakage current with the capacitor.

The Piezo could damage the port pin (not likely).

If R4/R5 is meant to allow you to measure the battery voltage then this is way outside the supported input impedance to the A/D - it should be less than 2.5K - you should consider putting an opamp configured as a voltage follower between the divider and the PIC. If you stay with just a voltage divider (can't see how you can) then you should also add a diode (preferably schottky) from the resistor junction to the PIC VCC rail.

The same goes for Vadap on AN1.
_________________
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 6:02 am     Reply with quote

Thanks for input, I understand your remarks, but I still don't understand why the PIC died.
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Thu Jun 15, 2006 6:09 am     Reply with quote

rberek you are right.
Quote:

Your pull up should be 47K on the reset if you are programming with the ICD.


Christophe, first of all you must wire the ICD according to CCS spec, then if it doesnīt work, you should search another causes.

http://www.ccsinfo.com/faq.php?page=icd_connection


Humberto
Christophe



Joined: 10 May 2005
Posts: 323
Location: Belgium

View user's profile Send private message

PostPosted: Thu Jun 15, 2006 6:15 am     Reply with quote

Humberto, for SURE it works following the CCS ICD specs.

I want to know why it does not work how I wired it.

My PIC died because of something and I want to know why.

edit: That Pic still programs but on verify it reads all 0000h on all adresses. So it's dead.
Ttelmah
Guest







PostPosted: Thu Jun 15, 2006 6:33 am     Reply with quote

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
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Thu Jun 15, 2006 7:00 am     Reply with quote

Christophe, the technical information available is the one that provides the manufacturer through the data sheets. For this of kind of problems, the help is limited because the complete internal circuit is not available. Anyway I do not understand what is your final interest in knowing why a component fails while itīs working outside specification.
I believe that you would have to direct this question directly to the manufacturer.


Humberto
Christophe



Joined: 10 May 2005
Posts: 323
Location: Belgium

View user's profile Send private message

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

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.
Christophe



Joined: 10 May 2005
Posts: 323
Location: Belgium

View user's profile Send private message

PostPosted: Thu Jun 15, 2006 7:40 am     Reply with quote

ICD messages:

http://users.[spam].be/chs/Werk/pg1.jpg

http://users.[spam].be/chs/Werk/pg2.jpg
asmallri



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

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

PostPosted: Thu Jun 15, 2006 7:44 am     Reply with quote

I am not familar with your programmer..

Are you doing a bulk erase?

The 2.2uF could have resulted in the fuses being set to some value other than what you are expecting. For example the protect fuses could be set.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
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 1, 2  Next
Page 1 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