University of Houston ECE 5440/6370 Advanced Digital Design Lecture on Debouncing Circuit Yuhua Chen Spring 2010.

Slides:



Advertisements
Similar presentations
Practical Considerations for Digital Design
Advertisements

Digital Circuits. Review – Getting the truth table The first step in designing a digital circuit usually is to get the truth table. That is, for every.
CS1Q Computer Systems Lecture 12 Simon Gay. Lecture 12CS1Q Computer Systems - Simon Gay 2 Design of Sequential Circuits The systematic design of sequential.
Lab 9: Matrix Keypad : ”No Key Press” Analysis Slide #2 Slide #3 ”Press and Hold Key 5” Analysis.
Lab 7 : Decoders/Encoders : Slide #2 Slide #3 Slide #4 Slide #5 Slide #6 “1 of 10” Encoder “1 of 10” Encoder Connected to a SPST Keypad. Control Signal.
Programmable Interval Timer
Lab 09 :D Flip Flop, Shift Registers and Switch Bounce: Slide 2 Slide 3 The D Flip Flop. 4-Bit Shift Register. Slide 4 Shift Register De-bounce System:
Input/Output Ports and Interfacing ELEC 330 Digital Systems Engineering Dr. Ron Hayne Images Courtesy of Ramesh Gaonkar and Delmar Learning.
Microprocessor and Microcontroller
Slides created by: Professor Ian G. Harris Inputs and Outputs PIC Vcc RA3 RA4 RA5  Make an LED toggle state when button is pressed  Need to read RA3,
Spring EE 316 Computer Engineering Junior Lab Designing State machines for a numeric Keypad.
ECE 265 – LECTURE 13 Interface to switches and LEDs 7/3/ ECE265.
Capacitance Sensor Project
ECEN 248 Lab 6: De-Bouncing, Counters & LCD Display Control
Sept EE24C Digital Electronics Project Design of a Digital Alarm Clock.
CPE 169 Digital Design Laboratory Digilent Inc. Nexys Development Board.
Circuit, State Diagram, State Table
Lecture 5 Key Locker using FPGA 2007/10/05 Prof. C.M. Kyung.
I/O devices Peripheral devices (also called I/O devices) are pieces of equipment that exchange data with a CPU Examples: switches, LED, CRT, printers,
COMP3221: Microprocessors and Embedded Systems Lecture 18: Computer Buses and Parallel Input/Output (II) Lecturer: Hui.
10/24/2015 Amrita Vishwa Vidyapeetham 1 Key Board & LED Interfacing.
FPGA Design Flow Based on Using Seven-Segment Displays,
Introduction to Sequential Logic Design Finite State-Machine Design.
8279 KEYBOARD AND DISPLAY INTERFACING
1 CSE370, Lecture 17 Lecture 17 u Logistics n Lab 7 this week n HW6 is due Friday n Office Hours íMine: Friday 10:00-11:00 as usual íSara: Thursday 2:30-3:20.
Advanced Digital Circuits ECET 146 Week 9 Professor Iskandar Hack ET 221G,
© BYU 13 COUNTERS Page 1 ECEn 224 COUNTERS Counters Transition Tables Moore Outputs Counter Timing.
1 ECE 372 – Microcontroller Design Parallel IO Ports - Inputs.
Reaction Timer Project
Digital Inputs Interfacing Keypad
8279 KEYBOARD AND DISPLAY INTERFACING
EE 316 Computer Engineering Junior Lab Project 2 Digital Yahtzee.
Interfacing to External Devices  Explore Digital Interfaces techniques  Introduce some complex optical devices and how to interface them  Describe methods.
ENG2410 Digital Design LAB #7 LAB #7 Sequential Logic Design “Sequence Recognizer” Using both Schematic Capture and VHDL.
Lecture 4 General-Purpose Input/Output NCHUEE 720A Lab Prof. Jichiang Tsai.
ECE 3450 M. A. Jupina, VU, 2016 Capacitance Sensor Project Goal: Creation of a digital capacitance sensor circuit where a variation in capacitance changes.
ECE 3450 M. A. Jupina, VU, 2016 Capacitance Sensor Project Goal: Creation of a digital capacitance sensor circuit where a variation in capacitance changes.
Mark Neil - Microprocessor Course 1 Decoding and Using a 4x4 Keyboard.
Analogue to Digital Conversion © D Hoult analogue signal © D Hoult 2011.
ECE 447: Lecture 12 Keypads ECE 447: Lecture 10. ECE 447: Matrix Keypad.
ECET 340 Entire Course (All ilabs and Homework) For more classes visit ECET 340 Week 1 HomeWork 1 ECET 340 Week 1 iLab 1 ECET 340.
Counters and registers Eng.Maha Alqubali. Registers Registers are groups of flip-flops, where each flip- flop is capable of storing one bit of information.
Sequential Logic Circuit Design Eng.Maha Alqubali.
KEYBOARD/DISPLAY CONTROLLER - INTEL Features of 8279 The important features of 8279 are, Simultaneous keyboard and display operations. Scanned keyboard.
WATER LEVEL INDICATOR AND AUTOMATIC MOTOR SWITCHING SYSTEM
40106B Schmitt Trigger (A way of switch De-Bouncing)
Peripherals – Keypad The Keypad provides a simple means of numerical data or control input. The keys can be attributed whatever data or control values.
Flip-Flops and Related Devices
DIGITAL CALCULATOR USING 8051
Principles & Applications
29th Oct Review Session 8.
Digital Logic & Design Dr. Waseem Ikram Lecture No. 30.
Keyboard/Display Controller INTEL 8279
ECET 340 Competitive Success/snaptutorial.com
ECET 340 Education for Service-- snaptutorial.com.
ECET 340 Teaching Effectively-- snaptutorial.com.
ECE 434 Advanced Digital System L12
Hexadecimal Keypad Hardware Description Internal Organization
Keypad Source: under under
Analogue to Digital Conversion
Digital Logic & Design Dr. Waseem Ikram Lecture No. 31.
ECE 448: Spring 2015 Lab 3 FPGA Design Flow Based on Aldec Active-HDL.
EE4OI4 Engineering Design
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
8279 – Programmable Keyboard/Display Interface
8051 Micro Controller.
Keypad Source: under under
Keypad Source: under under
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
ECE 448 Lab 3 – Part 1 FPGA Design Flow Based on
Presentation transcript:

University of Houston ECE 5440/6370 Advanced Digital Design Lecture on Debouncing Circuit Yuhua Chen Spring 2010

University of Houston2 - Yuhua Chen Debouncing Circuit n A mechanical switch (key-press) usually results in momentary oscillating behavior Switch Output Voltage (A) A R +5V

University of Houston3 - Yuhua Chen Scope Shots of Switch Bounce - Node A

University of Houston4 - Yuhua Chen Scope Shots of Switch Bounce - Opening A

University of Houston5 - Yuhua Chen Debouncing Output A C R +5V Debouncing Circuit

University of Houston6 - Yuhua Chen Scanner Core Logic Behavior n To scan the keypad, the row pins are driven low (asserted) one at a time. In order to prevent potential signal contention, the row pins are driven using open drain outputs. The four column pins from the keypad are externally pulled up and are sampled periodically to determine if any keys on the selected (asserted) row are being pressed. A single scan is defined as the process of sequentially asserting each of the four row pins. n A key should not be recognized as pressed unless the following conditions are true: »After scanning the keyboard (all 16 keys) a minimum of 1 time, no keys are pressed. »One and only one key is consistently pressed for a minimum of 4 sequential scans. n The scan rate of the keypad should be adjusted such that a key will not be recognized in less than 8 milliseconds.

University of Houston7 - Yuhua Chen Use LFSR to Control Scanning Rate n The scan rate of the keypad should be adjusted such that a key will not be recognized in less than 8 milliseconds.

University of Houston8 - Yuhua Chen LFSR Counter Length Calculation n The purpose of the LFSR counter is to control the scan rate of the scanning. »The total time from “key pressed” to “key recognized” should be no less than 8 milliseconds so as to mask any bouncing that may be taking place. n For example, assume the following: »the scanner has 4 rows »the scanner scans the keypad 4 times before recognizing a key »the LFSR clock frequency is 1 MHz n Then the counter length (number of clocks before timeout) would be (8.0 E-3 * 1.0 E6) / (4 * 4) = 500. n Therefore, an LFSR counter having a length of 9 bits would be appropriate. n Important: Learn how to calculate the length of the LFSR counter n THE FORMULA VALUES STATED ABOVE ARE CONSISTANT WITH THE EXAMPLE. You will have to recalculate the counter length for your lab design based on the DE2 board 50MHz clock source.

University of Houston9 - Yuhua Chen Exercise 1: Calculate the LFSR Length n Assume the clock frequency is 50 MHz n What is the minimum length of the LFSR counter?

University of Houston10 - Yuhua Chen Exercise 2: Draw Timing Diagram of One Complete Scan n Include as least the following signals »Row signals »Column signals »LFSR Time Out signal (lfsr_lto) »Assume location (row2, col1) is pressed