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

My 6722 died yesterday !!

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
cstan_02



Joined: 24 Jul 2005
Posts: 13

View user's profile Send private message

My 6722 died yesterday !!
PostPosted: Thu Dec 15, 2005 7:57 pm     Reply with quote

Hello,
Can you tell me what are reasons for the PIC to fail ??
And when it fails, it grounds the +5v supply. I was field testing my working code and it suddenly failed. I had tested my unit for 24 hour runs before and never had any problems. The power supply is stable(from a battery). Everything was fine ?? I am using a PIC18LF6722 with external 24Mhz oscillator. This happened before atleast once, which was more than six months back. That time i suspected that it had something to do with my hardware. This time I have separate power supplies for different classes of components, and all are stable. I just wanted to know how can I prevent this from happening again.

Thanks
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Dec 15, 2005 9:43 pm     Reply with quote

It's possible that it's a CMOS latch-up problem. Describe the components
and circuits that are connected to the PIC pins.
cstan_02



Joined: 24 Jul 2005
Posts: 13

View user's profile Send private message

PostPosted: Thu Dec 15, 2005 11:04 pm     Reply with quote

Well to say, the circuit is simple with a spi flash memory which uses the 3.3v rail, one transciever connected to one of the uart and a gps on the other. The power for the latter two components are isolated from that of the main 6722 power. That is, there are two +5v rail and another 3.3v rail. Talking to the flash is through some voltage dividers. Other than that there is a MAX232, an external 24 Mhz oscillator and some few transistors.

Anyway, is there something like overclocking the PIC. Well I don't think so. But Mr. PCM_Programmer i don't understand by what you said it can be a CMOS latchup problem. Can you explain a bit more. That would be so nice !!


Thanks.
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 Dec 15, 2005 11:33 pm     Reply with quote

Quote:
Anyway, is there something like overclocking the PIC. Well I don't think so. But Mr. PCM_Programmer i don't understand by what you said it can be a CMOS latchup problem. Can you explain a bit more. That would be so nice !!


This is the condition that occurs if the input voltage on a pin exceeds the VDD of the device. High current flows can occur and it is non unusaul for the device to be destroyed. This often occures if a voltage is applied to an I/O pin before VDD has applied to the device or in cases when the VDD voltage rise time is slow.

Another very common problem occurs when two systems, running from independant supplies (like a PC connected in a PIC) are connected togther without first connecting a common ground between then. In this scenario the devices are floating with respect to each other and the latchu condition can easily occur when a signal voltage is applied to an inout before the grounds have been connected together leading to the destruction of the device. This is how a lot of ICD2 get destroyed by hobbyists :-)
_________________
Regards, Andrew

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



Joined: 24 Jul 2005
Posts: 13

View user's profile Send private message

PostPosted: Fri Dec 16, 2005 12:37 am     Reply with quote

Thanks Andrew, I'll try to take care of the latchup problem next time. But is there any sure way of preventing this, like if i power everything in the circuit with a single supply, will it eleminate the problem ?? Or is it enough that I put capacitors to increase the VDD rise time of the components connected to the PIC I/O ??

Thanks.
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: Fri Dec 16, 2005 2:39 am     Reply with quote

Generally if you have a common power supply with a siingle power rail (VDD and VSS are common) then latchup will not occur. It is possible for latchup to occur if you have two seperate power rails. For example, assume you have a 9 to 12 volt power source that you use to derive 5volts for a PIC and 3.3 volts for some other device. Assume you have two regulators, a 7805 derives the 5 volts for the PIC from the power source and a 3.3 volt regulator derives its output from the +5 volt regulator. If you have a large capacitor on the output of the 3.3 volt regulator then the 5 volt rail will rise before the 3.3 volt rail. If the PIC asserts a high level out to the 3.3volt device during this period then latchup can occur.

This problem can be solved in two ways. First you mimimise the difference in rise time between the two power supplies and secondly you incorporate a delay in your PICs startup to enable the power supplies to stabalise before asserting any outputs.
_________________
Regards, Andrew

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



Joined: 24 Jul 2005
Posts: 13

View user's profile Send private message

PostPosted: Fri Dec 16, 2005 3:21 am     Reply with quote

Thanks Andrew, have a nice day !!



:-)
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
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