How do you make a dip switch either GND or VCC, but not floating?
Kaos Kidd
Posts: 614
I need a dip switch that sets either a High (VCC) or GND when in either of it's states.
From what I can tell, it's simple to from VCC through·the dip to the chip input.
When the dip is on, the pin is at VCC, high.· When the Dip is off, the pin is left floating, not at gound.
Is it a simple matter of a reistor tied through the out side of the dip (the side that goes to the chip) to ground?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Propeller + Hardware - extra bits for the bit bucket =· 1 Coffeeless KaosKidd
·
From what I can tell, it's simple to from VCC through·the dip to the chip input.
When the dip is on, the pin is at VCC, high.· When the Dip is off, the pin is left floating, not at gound.
Is it a simple matter of a reistor tied through the out side of the dip (the side that goes to the chip) to ground?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Propeller + Hardware - extra bits for the bit bucket =· 1 Coffeeless KaosKidd
·
Comments
Yes, a pullup (or pulldown) resistor ~10K will do the job.
-Phil
THis is the same concept as the sda and scl lines on the demo board, isn't it? The resistor forces it to see ground or vcc, not floating potententally between...
Dudes, a good old 50 watt light just wen off somewhere... Oooph, but it's blinding me...
Pullup / down... now it makes...
as quoted else where "weakly pulled down", would mean a lesser resistor going to ground, right?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Propeller + Hardware - extra bits for the bit bucket =· 1 Coffeeless KaosKidd
·