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

CPU "Crash" when AD line goes below GND

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



Joined: 30 Aug 2005
Posts: 155
Location: Calgary, AB

View user's profile Send private message

CPU "Crash" when AD line goes below GND
PostPosted: Tue Oct 11, 2005 2:58 am     Reply with quote

Can somebody explain why a 16F819 chip doesn't function correctly when when an ad defined pin voltage is slightly negative with respect to VSS?

I was just expecting the protection diode to kick in and give me a value of 0.
Ttelmah
Guest







PostPosted: Tue Oct 11, 2005 5:17 am     Reply with quote

If it is only going fractionally below Vss, what you describe should not happen. 'Fractionally', is down to about -0.3v.
Stop thinking in terms of protections diodes. There are none!. The diode behaviour, is an inherent feature of the structure of the output FETs, not a seperate diode as such. Unfortunately, the presence of both the output FET, and analog input on the same pin, when dealing with -ve excursions, result in the input gate becoming reverse biased _before_ the low side FET starts to conduct. The FET structure protects the chip from destruction, but does not stop an unexpected current flowing into the input multiplexer. Normally if the source has a relatively high impedance, the current is limited to levels that don't stop the chip. There is a 'balancing act' here between the requirements for the source to have a low impedance to give fast acquisition, and avoiding this problem.

Best Wishes
Eugeneo



Joined: 30 Aug 2005
Posts: 155
Location: Calgary, AB

View user's profile Send private message

PostPosted: Mon Oct 17, 2005 4:21 am     Reply with quote

Thanks for the reply. Where did you find out they use a field effect transistor structure in the chip? Do they have a detailed design PDF somewhere?
asmallri



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

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

PostPosted: Mon Oct 17, 2005 6:52 am     Reply with quote

What do you call slightly negative? What current is flowing? Good chance you might be inadvertently attempting to destroy the chip?
_________________
Regards, Andrew

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







PostPosted: Mon Oct 17, 2005 6:57 am     Reply with quote

Talk directly to MicroChip. They sent me a 'Spice' model of the input (with a classic "you won't let anyone else have this" requirement), when I needed to work out how a source was going to behave into the analog inputs.

Best Wishes
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