Keypad Source: http://www.edsim51.com/8051Notes/interfacing.html#keypad under http://www.edsim51.com/8051Notes/interfacing.html under http://www.edsim51.com/8051Notes/index.html.

Slides:



Advertisements
Similar presentations
Lab 9: Matrix Keypad : ”No Key Press” Analysis Slide #2 Slide #3 ”Press and Hold Key 5” Analysis.
Advertisements

1 ECE 372 – Microcontroller Design Parallel IO Ports - Outputs Parallel IO Ports E.g. Port T, Port AD Used to interface with many devices Switches LEDs.
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
Programmable Keyboard/ Display Interface: 8279
Input/Output Ports and Interfacing ELEC 330 Digital Systems Engineering Dr. Ron Hayne Images Courtesy of Ramesh Gaonkar and Delmar Learning.
CHAPTER 4 I/O PORT PROGRAMMING. I/O Port Pins The four 8-bit I/O ports P0, P1, P2 and P3 each uses 8 pins All the ports upon RESET are configured as input,
Mark Neil - Microprocessor Course 1 Decoding and Using a 4x4 Keyboard.
© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e Interfacing a 4x4 Key Matrix Row Inputs.
EE 316 Computer Engineering Junior Lab Word Mastermind.
EE 316 Computer Engineering Junior Lab PS/2 Keyboard.
7-1 Keypad Scanning interface Used for interfacing push-button(momentary) switches Used for large number(>8) push-buttons Relies on matrix arrangement.
EE 316 Computer Engineering Junior Lab Digital Hangman.
Embedded Systems Design 1 Lecture Set B Interfacing the MCS-51 to: –7 and 16 segment displays –a Multiplexed 7-Segment Display –a Keypad –an LCD.
ASPPRATECH.
 Keyboards, LCDs most widely used input/output devices of the 8051  Contents to be covered:  keyboard fundamentals  key press and key detection mechanisms.
UNIT 8 Keypad Interface Contact Closure Counter Exceptions (Interrupts and Reset)
Network and Systems Laboratory nslab.ee.ntu.edu.tw.
A Simple Tour of the MSP430. Light LEDs in C LEDs can be connected in two standard ways. Active high circuit, the LED illuminates if the pin is driven.
Input/Output Ports and Interfacing
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.
University of Houston ECE 5440/6370 Advanced Digital Design Lecture on Debouncing Circuit Yuhua Chen Spring 2010.
8279 KEYBOARD AND DISPLAY INTERFACING
Digital Electronics Board-of-Education : Input. Board of Education - Input This presentation will explain, both from a hardware and software perspective,
Advanced Digital Circuits ECET 146 Week 9 Professor Iskandar Hack ET 221G,
1 ECE 372 – Microcontroller Design Parallel IO Ports - Inputs.
Digital Inputs Interfacing Keypad
12/16/  List the elements of 8255A Programmable Peripheral Interface (PPI)  Explain its various operating modes  Develop a simple program to.
Keyboard interfacing.
8279 KEYBOARD AND DISPLAY INTERFACING
EE 316 Computer Engineering Junior Lab Project 2 Digital Yahtzee.
KEYBOARD INTERFACING Keyboards are organized in a matrix of rows and columns The CPU accesses both rows and columns through ports. ƒTherefore, with two.
MOTOROLA and the Stylized M Logo are registered in the US Patent & Trademark Office. All other product or service names are the property of their respective.
Alpha/Numeric Keypad Functions using AVR Preliminary Design Review Luke R. Morgan ECE /17/2008.
Mark Neil - Microprocessor Course 1 Decoding and Using a 4x4 Keyboard.
Interrupts ELEC 330 Digital Systems Engineering Dr. Ron Hayne
ECE 447: Lecture 12 Keypads ECE 447: Lecture 10. ECE 447: Matrix Keypad.
Waseda University Low-Density Parity-Check Code: is an error correcting code which achieves information rates very close to the Shanon limit. Message-Passing.
LED AND KEYBOARD INTERFACING PREPARED BY :- PREPARED BY :- RAVAL AKASH ( ) RAVAL AKASH ( ) PATEL HARDIK ( ) PATEL HARDIK.
BIRLA VISHVAKARMA MAHAVIDYALAYA TOPIC : Keyboard interfacing and flowchart MADE BY: Nidhi Bhangale ( ) Gargi Patel ( ) Meghna Rathod.
INTERFACING KEYBOARD WITH ATMEGA32 ELECTRONICS & COMMUNICATION TITLE.
Launchpad with MIDI TAHA SHASHTARI MAHMOUD AL-SHAKA’A.
GSM Controlled Robots.
Peripherals – Keypad The Keypad provides a simple means of numerical data or control input. The keys can be attributed whatever data or control values.
LCD AND KEYBOARD INTERFACING
DIGITAL CALCULATOR USING 8051
ADC Interfacing Source: In under
Keyboard/Display Controller INTEL 8279
EET 2261 Unit 11 Controlling LCD and Keypad
ECET 340 Competitive Success/snaptutorial.com
ECET 340 Education for Service-- snaptutorial.com.
ECET 340 Teaching Effectively-- snaptutorial.com.
Figure Pin Positions for Various LCDs from Optrex
ECE 434 Advanced Digital System L12
Hexadecimal Keypad Hardware Description Internal Organization
EET 2261 Unit 11 Controlling LCD and Keypad
8051 Timers / Counters It has two timers Timer 0 and Timer 1.
Button/Switch.
Keyboard/Display Controller (8279)
Hardware Source: ttp:// under
Decoding and Using a 4x4 Keyboard
Keypad Source: under under
Keypad Source: under under
Compiled by Dr. N.Shanmugasundaram, HOD, ECE Dept, SECE.
LCD AND KEYBOARD INTERFACING
The Programmable Peripheral Interface (8255A)
Decoding and Using a 4x4 Keyboard
Interrupts.
Presentation transcript:

Keypad Source: http://www.edsim51.com/8051Notes/interfacing.html#keypad under http://www.edsim51.com/8051Notes/interfacing.html under http://www.edsim51.com/8051Notes/index.html

4 X 4 keypad The keypad is a matrix of switches. In the default state (all switches open), there is no connection between the rows and columns. When a switch is pressed, a connection between the switch's row and the switch's column is made.

Hardware Decoder for Keypad The decoder scans the keypad. When a key is pressed, the 4-bit code for the key appears on the four output lines and the data available line (DA) goes LOW. The microcontroller will be interrupted by DA. The ISR could then read the 4 LSBs of P1 and process the data. Key pressed O1~O4 DA (Data available)

Software Decoder for Keypad Scanning a row is achieved by applying 0 V to the port pin for that row and 5 V to the other three rows, then scanning each individual column to see if one of them is LOW. If it is, then the key at the junction between the current row and column being scanned is the pressed key. Sequence of scanning: Clear row 1, set other 3 Scan column 1 Scan column 2 Scan column 3 Scan column 4 Clear row 2, set other 3 Clear row 3, set other 3 Clear row 4, set other 3

No key is pressed: A key is pressed: Sequence of scanning: Clear row 0, set other 3 Scan column 0 Scan column 1 Scan column 2 Scan column 3 Clear row 1, set other 3 Clear row 2, set other 3 Clear row 3, set other 3 Col. 3 Col. 2 Col. 1 Col. 0 Row 3 Row 2 Row 1 Row 0 1 1 1 1 1 Col. 3 Col. 2 Col. 1 Col. 0 Row 3 Row 2 Row 1 Row 0 1 1 0 1 1

Key numbers in edsim51 Key numbers

Keypad connection in edsim51 8051 Resistor AND gate Col. 3 Col. 2 P0.6 Pull up AND in Col. 1 P0.5 Col. 0 P0.4 Row 3 P0.0 Row 2 P0.1 Row 1 P0.2 Row 0 P0.3

Finding the pressed key: row scan & col. scan Check Row 3 P0[3:0] = 0111 Check P0[6:4] P0[6:4] = 011 P0[6:4] = 101 P0[6:4] = 110 “1” “2” “3” Check Row 2 P0[3:0] = 1011 “4” “5” “6” Check Row 1 P0[3:0] = 1101 “7” “8” “9” Check Row 0 P0[3:0] = 1110 “*” “0” “#”

-