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

Please explain why this kind of a connection is used ??

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



Joined: 08 Sep 2003
Posts: 492
Location: India

View user's profile Send private message Send e-mail

Please explain why this kind of a connection is used ??
PostPosted: Wed Oct 04, 2006 9:27 am     Reply with quote

Hi,

I usually see this kind of a network in Reset/MCLR pins..

The reset/MCLR pin is connected to one end of a capacitor (usually 0.1 micro F) and a 10 K resistance. The other end of the cap is connected to +5 V and the other end of the resistance to GND.

Kindly explain why this kind of a network is used ??

Also is it OK if I connect the pin directly to +5 V, is the above network really essential ??

This is essential because I usually connect the reset./MCLR pins directly to +5 V in all my previous designs (and these have worked).

thanks
arunb
davekelly



Joined: 04 Oct 2006
Posts: 53
Location: Berkshire, England

View user's profile Send private message

PostPosted: Wed Oct 04, 2006 9:37 am     Reply with quote

It is most likely the resistor is connected to VCC, and the capacitor to GND.

It holds the device in reset for a few ms while the capacitor charges. It isn't usually necessary on most PICs, as they have a powerup timer fuse

Best practice is to still use a pullup resistor on the MCLR line, of nominally 10k
Ttelmah
Guest







PostPosted: Wed Oct 04, 2006 10:02 am     Reply with quote

Historically, the resistor/capacitor connection was needed on the older PIC's that didn't have a power up timer. Normally with the resistor also bypassed with a reverse diode to give rapid discharge of the capacitor, when the power is turned off. Using a resistor, in general when connecting pins, even when tying them directly to a logic rail, is quite a 'good thing', since it limits the maximum current that can flow if something goes wrong. With an input only pin, it shouldn't matter, but some CMOS inputs, can suffer from input latch-up, and if the resistor is not present, and this happens, it destroys the chip. The PIC is pretty well protected against this. A resistor is often still used, since this pin needs to be pulled up to Vpp, for ICSP.

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