Hi -
How do you know when to use a pullup or a pulldown resistor?
Know when to use what resistor and then what value is not straight forward to me and trying to figure out a simple way to remember to know which to use.
Thanks -
Hi -
How do you know when to use a pullup or a pulldown resistor?
Know when to use what resistor and then what value is not straight forward to me and trying to figure out a simple way to remember to know which to use.
Thanks -
If there is a "memory save" button in the system, then I use pull down resistors instead of pull ups. => Button press pulls up.
Reason: If power is removed, then there is a possibility that pin goes down before PIC goes off. The program then acts as if the button was pressed.
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
ok
Code:If PortA.1 = 1 THEN ' if logic high = true use pulldown to 'make untrue Do something here ! else ' false this is where the pulldown does it's work.Code:If PortA.1 = 0 THEN ' If logic low is true use a pullup to ' make false Do something here !Light an LED . . . else ' False, again this is where pullup does it's job Your code here . . . Say, turn off the LED
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Thanks - That's what I was thinking you were saying before but wanted to be sure. Greatly appreciate it.
Keith
Bookmarks