Joined: 10 Dec 2011 Posts: 376 Location: Sofiq,Bulgariq
pullups
Posted: Sun Jan 15, 2012 3:12 am
Hi! I'm an amateur in writing codes on CCS and I'm wondering, what is the main purpose of the pullups function, when we use it, and why we need it? Some examples would help.
I hope someone understood me!
Thx. in advance!
SherpaDoug
Joined: 07 Sep 2003 Posts: 1640 Location: Cape Cod Mass USA
Posted: Sun Jan 15, 2012 6:35 am
The pull up resistors allow you to put a switch on a PIC pin without having to add an external resistor for the switch to work against. Better yet if you can switch off the pull ups when you are not reading the switches you can save battery power.
Pull ups can also stop unused pins from floating, therefore drawing excessive power. A digital input that happens to lie at an intermediate voltage level causes the input buffer to draw more power than it would at valid logic levels. _________________ The search for better is endless. Instead simply find very good and get the job done.
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