You are on page 1of 20

DEBOUNCE SWITCHES

Presented by:
Binu Merrin Alex Tejasvini Dhuri Prity Maurya Nikita Powar

Main contents of our presentation:


Introduction List of components Description of components Circuit Description Working Advantages Disadvantages Applications Conclusions

A device that allows the flow of current entirely. Mechanical devices that separates two bits of metal(contacts). When the metal doesnt touch, current doesnt flow. When the metal touches it is called a closed circuit. When the metal doesnt touch, is called an open circuit. (closed=ON, open=OFF)

Basic schematic of switch

A physical problem in the real world

When we press a button, there is a change in state Simple pushbutton bounce

Button bounces a small amount

But when it hits the contact, it debounces in the air Breaks the contact for a few milliseconds

Switches connected to sources of constant logic 0 and 1 are often

used in digital systems to supply user inputs.

In high speed digital logic applications we must consider another aspect of switch operation, the time dimension.

A simple make or brake operation, which occurs instantly as far as


we slow-moving humans are concerned, actually has several phases that are distinguishable by high-speed digital logic.

Single Pole Single Throw=SPST


A simple ON-OFF switch. To switch the power supply to a circuit.

Two terminal device


Connected or disconnected to each other Short circuit or an open circuit

Circuit symbol Example

SPST toggle switch

Single Pole Double Throw=SPDT


This switch can be ON in both the positions, switching on a separate device in each case. It is often called a changeover switch. It has a common that is either connected to one pole or the other eg: Two position slider switch A

COM
B

Circuit Symbol SPDT Switch

Sr. no. 1. 2. 3. 4. 5.

Name Resistors NAND gate

Range 10kohms IC7400

Quantity 2 2 1 1 1

SPDT slider switch Battery LED 5V -

The circuit uses different components such as cross coupled 7400 gates, resistors and 5V battery and a single pole double throw switch to generate a single logic input. In this the pull up resistors are used to generate the logic circuit
Pin diagram of NAND gate

NAND

IC 7400

In situations where momentarily shorting gate outputs must

be avoided, a similar circuit can be designed using SR latch


and pull-up resistors as shown in figure.
5V 10k

Q 10k 5V

Figure shows the debounce circuit. Two cross-coupled NAND gates form a simple Set-Reset (SR) latch.

The design requires a double throw switch. Two pull-up


resistors generate a logic one for the gates; the switch pulls one of the inputs to ground.

To latch the value created by the input signal to the device and hold that value until some other signal changes it.

In an SR latch with two cross coupled NAND gates:


By setting S to 0, the output Q will be 1 that putting the latch in the set state. By setting R to 0, the circuit goes to reset state and stay there even after both input returns to 1. The undefined state is when both inputs are zero. It is also called SR latch., because NAND latch requires zero signal to change its state.

(set)

(reset) NAND gate SR latch

Switch Bounce happens when you close a mechanical switch A tendency of metal contacts to generate multiple signals.

Switches take a few microseconds to a few milliseconds to


completely close .

Typical switches bounce for 10-20 ms, a very long time compared to the switching speeds of logic gates.

Switch Debounce is the process of getting rid of switch

bounce .

It ensures only one digital signal can be registered

5V 10k

Truth Table

S=0
Q

S
0 0 1 1

R
0 1 0 1

Q
1 0

Q
0 1

Not allowed

Q
10k 5V R=1

Latch

5V
SWITCH MOVES touches the other contact

Truth Table

10k

S=1
Q

S
0 0 1 Q 1

R
0 1 0 1

Q
1 0

Q
0 1

Not allowed

10k 5V

Latch

R=0

SWITCH MOVES bounces slightly

5V Truth Table 10k

S=1
Q S 0 0 R 0 1 Q 1 Q 0 Not allowed

Q
10k 5V R=1

1
1

0
1

Latch

You might also like