Maker Pro
Maker Pro

Why the pull-up resistor is used with debounce buttons?

Dani

Mar 5, 2013
2
Joined
Mar 5, 2013
Messages
2
Why the pull-up resistor is used with debounce buttons?
 

CocaCola

Apr 7, 2012
3,635
Joined
Apr 7, 2012
Messages
3,635
A pull up or down resistor is used to force the logic to return to the 'negative' (not pressed) state between button presses...
 

Dani

Mar 5, 2013
2
Joined
Mar 5, 2013
Messages
2
My understanding is that a pull-up resistor prevent excessive amount of pulse, So using it with de-bounce buttons on trainer is only to force these pulse to slow down?
 

BobK

Jan 5, 2010
7,682
Joined
Jan 5, 2010
Messages
7,682
You cannot simply connect a button to a digital input, because, when the button is not pressed there would be no signal on the input. This is called a floating input. In CMOS logic, a floating input can give undefined results, it may read as either high or low. the pull-up resistor guarantees that it reads high when the button is not pressed. It has nothing to do with de-bouncing.

Bob
 

gorgon

Jun 6, 2011
603
Joined
Jun 6, 2011
Messages
603
My understanding is that a pull-up resistor prevent excessive amount of pulse, So using it with de-bounce buttons on trainer is only to force these pulse to slow down?

I'm sorry to say it, but you need to reeducate your understanding. As said, a pull up or down resistor only predefines the idle level of a digital input, and return the input to this level after activation.
You define the lenght of the active level pulse by pressing the push button. When you release the button the pulse ends and the signal return to the inactive state.

If the resulting pulse is shorter, or longer, than the time you press the button, there is some form of electronic processing circuit between the button input and the pulse output.
 
Top