7-1 Keypad Scanning interface Used for interfacing push-button(momentary) switches Used for large number(>8) push-buttons Relies on matrix arrangement.

Slides:



Advertisements
Similar presentations
Operational Amplifiers
Advertisements

Lab 9: Matrix Keypad : ”No Key Press” Analysis Slide #2 Slide #3 ”Press and Hold Key 5” Analysis.
3-1 Peripherals & I/O lines All the on-chip peripherals are configured and controlled through Special Function Registers (SFR) Many of the SFR’s are bit.
What is Arduino?  Arduino is a ATMEL 168 micro-controller kit designed specially for small projects  User friendly IDE(Integrated Development Environment)
EET 1131 Unit 7 Arithmetic Operations and Circuits
Programmable Interval Timer
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 PS/2 Keyboard.
Laser Shoot-Out Game By Steven Noto and Laura Miller Advisor Steven Gutschlag May 2, 2000 Senior Project Final Presentation.
5. 1 JPEG “ JPEG ” is Joint Photographic Experts Group. compresses pictures which don't have sharp changes e.g. landscape pictures. May lose some of the.
Embedded Programming and Robotics Lesson 9 Keypad and LCD Display 1.
Dr. Amr Talaat. #include ; /* this makes the header file for the PIC16f877 ready to be used in the C-class */ #define LED PORTC ; /* defines.
University of Tehran 1 Interface Design Keyboard and Printer Omid Fatemi.
 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)
1 4-Integrating Peripherals in Embedded Systems (cont.)
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.
Section 7.2 & 7.3.  Row x Column ROW COLUMN a x + b y = c d x + e y = f AB X.
Crypto Project Sample Encrypted Data: –Turing: CS Public\CryptoProjectData Crypto_Short_Keys_P_U.out Crypto_Long_Keys_O_R.out Bonus +10 points on.
Start with Great Name of ALLAH Designed by : Rocxtar.
EE4OI4 Engineering Design UP1core Library Functions.
10/24/2015 Amrita Vishwa Vidyapeetham 1 Key Board & LED Interfacing.
University of Houston ECE 5440/6370 Advanced Digital Design Lecture on Debouncing Circuit Yuhua Chen Spring 2010.
8279 KEYBOARD AND DISPLAY INTERFACING
AES Advanced Encryption Standard. Requirements for AES AES had to be a private key algorithm. It had to use a shared secret key. It had to support the.
Shift Registers pp Shift Registers Capability to shift bits ♦ In one or both directions Why? ♦ Part of standard CPU instruction set ♦ Cheap.
ECE 371 – Unit 9 Interrupts (continued). Example Set up Two Interrupt Request Inputs: –Port H[0] Set Interrupt Flag on “0” to “1” transition (rising edge)
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
CS1372: HELPING TO PUT THE COMPUTING IN ECE CS1372 Some Basics.
The PC Game Adapter. The game adapter card typically contains a DB15 connector into which you plug an external device. The digital joystick is probably.
Keyboard interfacing.
Input Interface – Microprocessor
ELECTRIC LINE MAN SAFETY WITH PASSWORD BASED CIRCUIT BREAKER Under the Guidance of Submitted by Project Title.
8279 KEYBOARD AND DISPLAY INTERFACING
EE 316 Computer Engineering Junior Lab Project 2 Digital Yahtzee.
Programming Microcontrollers in C Lecture L7.1. C Data Types TypeSizeRange char1 byte-128 – 127 unsigned char1 byte0 – 255 Int2 bytes – unsigned.
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.
Example 7 Multiplying with Technology Chapter 7.3 Use technology to compute BA and AB if and.  2009 PBLPathways.
Matrix Key Pad Configuration Lecturer: Reza Arjmandi Autumn 2015 Lecture 6: Introduction Matrix KeyPad Configuration.
Bit Manipulation in 'C' 'C' bit operators
ECE 447: Lecture 12 Keypads ECE 447: Lecture 10. ECE 447: Matrix Keypad.
KEYBOARD/DISPLAY CONTROLLER - INTEL Features of 8279 The important features of 8279 are, Simultaneous keyboard and display operations. Scanned keyboard.
LED AND KEYBOARD INTERFACING PREPARED BY :- PREPARED BY :- RAVAL AKASH ( ) RAVAL AKASH ( ) PATEL HARDIK ( ) PATEL HARDIK.
Programmable Keyboard/Display Interface contains the following features: Simultaneous and independent scanning of a keyboard and refresh.
BIRLA VISHVAKARMA MAHAVIDYALAYA TOPIC : Keyboard interfacing and flowchart MADE BY: Nidhi Bhangale ( ) Gargi Patel ( ) Meghna Rathod.
GSM Controlled Robots.
Implementing Combinational
8279 Keyboard / Display Interface
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
4-Integrating Peripherals in Embedded Systems (cont.)
DIGITAL CALCULATOR USING 8051
Keyboard/Display Controller INTEL 8279
Example 6 Hex Keypad Lecture L3.2.
Keypad Source: under under
Triangular Sorter Using Memristive Architecture.
Keyboard/Display Controller (8279)
DES Examples Chater#3 DES.
Keypad Source: under under
Keypad Source: under under
3.6 Multiply Matrices.
Matrix A matrix is a rectangular arrangement of numbers in rows and columns Each number in a matrix is called an Element. The dimensions of a matrix are.
LCD AND KEYBOARD INTERFACING
Presentation by Anthony Dotterer
Presentation transcript:

7-1 Keypad Scanning interface Used for interfacing push-button(momentary) switches Used for large number(>8) push-buttons Relies on matrix arrangement of push-buttons F E 0 89D AB C ROWS Inputs COLUMNS Outputs PORT

7-2 Port F E 0 89D AB C bit 4 bit 7 bit 5 bit 3 bit 6 bit 2 bit 1 bit 0 Infineon 167 Target board connections BASIC APPROACH TO SCANNING Set port direction bits 4-7 I/p, bits 0-3 o/p. Initial column_scan = = 0x08 next column_scan value = then and finally Use 'C' >> operator which shift bits of an integer to the right At each stage read in all rows and if rows are non zero then find which of the four bits is a '1'

7-3 static char keypad_scan(void) { const char key_code[] = "FEDC369B A"; // keypad layout unsigned char row, row_scan, column, column_scan; column_scan = 0x08; for(column = 0; column > 4; if(row_scan ! = 0) // Any key pressed? { row = 0; //Find which bit in row while((row_scan % 2) == 0) // test least significant bit { row++; row_scan >>= 1; } return(key_code[column * 4 + row]); // return key code } // end if column_scan >>= 1; //ready for next column } // end for return 0; // No key pressed }