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 support@ccsinfo.com

internal pullups vs. external pullups

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



Joined: 07 Oct 2003
Posts: 66
Location: England

View user's profile Send private message

internal pullups vs. external pullups
PostPosted: Mon Apr 04, 2005 7:08 am     Reply with quote

Hi all

Is it unwise to use the weak internal pullups to detect switch changes when designing equipment to be used in an industrial environment?
Would external stronger pullup resistors be better guard against noise?
Or am I being to cautious!
Thanks.

Dave
valemike
Guest







PostPosted: Mon Apr 04, 2005 7:57 am     Reply with quote

Personally, i never have used internal pullups. Microchip and Atmel have similiar appnotes where they use internal pullups for keypad applications.

I always use external pullups anyways. That way, if a board change is needed, then i won't be confined to port_b.

It's not the pullups that will protect you against noise either. You'll need EMI filters on your inputs in some harsh cases. For example, UL has recommended us to use a 100pF capacitor, 56uH inductor, to act as an LC filter at the input. That blocks high frequency noise. Of course, you'll still need your current limiting resistor, pullup, and typical .01-.1uf capacitor for switch noise. You might not need so many discrete parts nowadays, since they do have ESD/EMI filter chips (e.g. Onsemi, Fairchild, etc.)
Steve H
Guest







PostPosted: Mon Apr 04, 2005 8:04 am     Reply with quote

Maxim makes some really nice fully protected switch debouncers. I have used these in the past and they are really great.

MAX6816, MAX6817, MAX6818
±15kV ESD-Protected, Single/Dual/Octal, CMOS Switch Debouncers

www.maxim-ic.com

Regards,

Steve H.
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Mon Apr 04, 2005 9:17 am     Reply with quote

What sort of switch are you using? If you have a grounded metal box with a grounded metal switch handle going through it to say a toggle switch, you should not have any EMI problems.
On the other hand if you have twenty feet of wire going to a switch on the opposite side of an arc welder you are in EMI hell. Going with one of those Maxim chips is pretty safe, but may be overkill.
_________________
The search for better is endless. Instead simply find very good and get the job done.
valemike
Guest







PostPosted: Mon Apr 04, 2005 12:39 pm     Reply with quote

Steve H wrote:
Maxim makes some really nice fully protected switch debouncers. I have used these in the past and they are really great.

MAX6816, MAX6817, MAX6818
±15kV ESD-Protected, Single/Dual/Octal, CMOS Switch Debouncers

www.maxim-ic.com

Regards,

Steve H.


I bought a couple dozen of the MAX6818 a few months ago, hoping to use it for my switches. I got scared to use it though because they require ~40ms of stable levels before they switch state. My board has a lot of noise caused by PWM switching of high currents. I'm afraid that the MAX6818 might not change state if it is too sensitive to such pwm noise.
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