×

### Let's log you in.

or

Don't have a StudySoup account? Create one here!

×

or

## “Debouncing” and how to implement

1 review
by: abc595920430 Notetaker

39

8

2

# “Debouncing” and how to implement ECE 3710 A

Marketplace > Clemson University > Electrical Engineering > ECE 3710 A > Debouncing and how to implement
abc595920430 Notetaker
Clemson

Get a free preview of these Notes, just enter your email below.

×
Unlock Preview

“Debouncing” and how to implement
COURSE
Circuits & Electronics
PROF.
TYPE
Class Notes
PAGES
2
WORDS
KARMA
25 ?

## 8

1 review
"Great notes!!! Thanks so much for doing this..."
Dr. Fabiola Klein

## Popular in Electrical Engineering

This 2 page Class Notes was uploaded by abc595920430 Notetaker on Wednesday March 9, 2016. The Class Notes belongs to ECE 3710 A at Clemson University taught by in Spring 2016. Since its upload, it has received 39 views. For similar materials see Circuits & Electronics in Electrical Engineering at Clemson University.

×

## Reviews for “Debouncing” and how to implement

Great notes!!! Thanks so much for doing this...

-Dr. Fabiola Klein

×

×

### What is Karma?

#### You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!

Date Created: 03/09/16
ECE 371 Microcontroller Interfacing Paper The description  of   “Debouncing” Name: Haomeng Sang Date: March 8, 2015 What is debounce and why use it? Normally, Key switch usually used for mechanical elastic switch, when the mechanical  contact is open or closed, Due to the elasticity of the mechanical contacts, a key switch  when closed will not immediately be stably turned on and during disconnection does not suddenly disconnected. Thus at the closed and disconnected moment are accompanied by a series of jitter. Jitter is determined by the length of time of the mechanical  properties of the keys. Key jitter can lead to misread a button repeatedly. To ensure that the CPU is only  closed once when deal once for the key, the key must be removed jitter. Reading the  status of key when the key is in closed stable, and it  must make sure that the key is  release for stability before treatment. There are two methods to debounce: hardware  debouncing and software debouncing. Hardware debouncing is through the use of additional parts to eliminate interference  jitter miscellaneous pulse, for example capacitor filter, monostable delay circuit, etc. But in this course, we really need to master the software debouncing, and I will  introduce it  in detail below. Software debouncing Generally, the time of bounce is always 5~10ms. machine will run a  delay software  after the switch is used. It will have 5~10ms delay. After that, it will check again. If the  switch is still used, then machine can confirm the button is pressed for real. After  machine found the button has been released, there is 5~10ms delay as well. Then the  bouncing will be disappeared and the program of this button will run. The most  important part of software is to check the button continuously, until the button is stable.  And the delay of 5~10ms can avoid the time of bounce. For example, we can just use the follow C program code to realize debounce Assume release(the button) = 0, press(the button) = 1: If(input==1) { Delay(5); // delay 5~10ms If(input==1); { Delay(5); // delay 5~10ms to wait for the stop of bounce Run=1; // run the program of the button } Else if(input==0) // means the button is not being pressed { Break; // looks as nothing happened } }

×

×

### BOOM! Enjoy Your Free Notes!

×

Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'

## Why people love StudySoup

Steve Martinelli UC Los Angeles

#### "There's no way I would have passed my Organic Chemistry class this semester without the notes and study guides I got from StudySoup."

Jennifer McGill UCSF Med School

#### "Selling my MCAT study guides and notes has been a great source of side revenue while I'm in school. Some months I'm making over \$500! Plus, it makes me happy knowing that I'm helping future med students with their MCAT."

Bentley McCaw University of Florida

#### "I was shooting for a perfect 4.0 GPA this semester. Having StudySoup as a study aid was critical to helping me achieve my goal...and I nailed it!"

Parker Thompson 500 Startups

#### "It's a great way for students to improve their educational experience and it seemed like a product that everybody wants, so all the people participating are winning."

Become an Elite Notetaker and start selling your notes online!
×

### Refund Policy

#### STUDYSOUP CANCELLATION POLICY

All subscriptions to StudySoup are paid in full at the time of subscribing. To change your credit card information or to cancel your subscription, go to "Edit Settings". All credit card information will be available there. If you should decide to cancel your subscription, it will continue to be valid until the next payment period, as all payments for the current period were made in advance. For special circumstances, please email support@studysoup.com

#### STUDYSOUP REFUND POLICY

StudySoup has more than 1 million course-specific study resources to help students study smarter. If you’re having trouble finding what you’re looking for, our customer support team can help you find what you need! Feel free to contact them here: support@studysoup.com

Recurring Subscriptions: If you have canceled your recurring subscription on the day of renewal and have not downloaded any documents, you may request a refund by submitting an email to support@studysoup.com