BIRLA VISHVAKARMA MAHAVIDYALAYA TOPIC : Keyboard interfacing and flowchart MADE BY: Nidhi Bhangale (130080112010) Gargi Patel (130080112039) Meghna Rathod.

Slides:



Advertisements
Similar presentations
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.
Advertisements

Introduction to Micro-controllers Anurag Dwivedi.
Programmable Interval Timer
Programmable Keyboard/ Display Interface: 8279
TK2633 Introduction to Parallel Data Interfacing DR MASRI AYOB.
Input/Output Ports and Interfacing ELEC 330 Digital Systems Engineering Dr. Ron Hayne Images Courtesy of Ramesh Gaonkar and Delmar Learning.
© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e Interfacing a 4x4 Key Matrix Row Inputs.
7-1 Keypad Scanning interface Used for interfacing push-button(momentary) switches Used for large number(>8) push-buttons Relies on matrix arrangement.
ECE 265 – LECTURE 13 Interface to switches and LEDs 7/3/ ECE265.
Lecture – 7 Basic input and output
ECE 447: Lecture 6 Input/Output Interfacing LEDs, Button Switches & Port Multiplexing.
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.
Network and Systems Laboratory nslab.ee.ntu.edu.tw.
Input/Output Ports and Interfacing
COMP3221: Microprocessors and Embedded Systems Lecture 18: Computer Buses and Parallel Input/Output (II) Lecturer: Hui.
Khaled A. Al-Utaibi  The Push Button  Interfacing Push Buttons to Arduino  Programming Digital Inputs  Working with “Bouncy”
10/24/2015 Amrita Vishwa Vidyapeetham 1 Key Board & LED Interfacing.
Engineering 1040: Mechanisms & Electric Circuits Winter 2015 Interfacing Light-Emitting Diodes (LEDs) & Push Buttons to Microcontrollers.
8279 KEYBOARD AND DISPLAY INTERFACING
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
PPI-8255.
Input Interface – Microprocessor
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.
Alpha/Numeric Keypad Functions using AVR Preliminary Design Review Luke R. Morgan ECE /17/2008.
Matrix Multiplication The Introduction. Look at the matrix sizes.
Keyboard Introduction Keyboard is an input device. It is used to give text, numbers and controls as input to computer. The.
ECE 447: Lecture 12 Keypads ECE 447: Lecture 10. ECE 447: Matrix Keypad.
GOVERNMENT POLYTECHNIC RAJKOT 1 NAMEEN.NO. TADVI PRAGNESH A PATEL ANKIT D PATEL VIRAL S PATEL JAYESH M
LED AND KEYBOARD INTERFACING PREPARED BY :- PREPARED BY :- RAVAL AKASH ( ) RAVAL AKASH ( ) PATEL HARDIK ( ) PATEL HARDIK.
A.D.Patel institute of technology Sub : LCD and Keyboard interfacing with AVR. prepared by, chokshi abhi p ( ) Guided by, Prof. Asif Thakor.
Launchpad with MIDI TAHA SHASHTARI MAHMOUD AL-SHAKA’A.
Application Case Study Christmas Lights Controller
GSM Controlled Robots.
Embedded Systems Programming (What they do and when / how to use them)
DC MOTOR INTERFACING WITH 8051 MICROCONTROLLER PRESENTED BY
Logic Gates Binary Day 3 PEOPLE 2016.
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
LCD and Keyboard Interfacing
DIGITAL CALCULATOR USING 8051
Microcontroller Bharat Sankhlecha
Keyboard/Display Controller INTEL 8279
EET 2261 Unit 11 Controlling LCD and Keypad
Subject Name: Microprocessors Subject Code:10EC46 Department: Electronics and Communication Date: /10/2018.
Chapter 6 Functions of Combinational Logic
LCD and Keyboard Interfacing
Figure Pin Positions for Various LCDs from Optrex
ECE 434 Advanced Digital System L12
Keypad Source: under under
EET 2261 Unit 11 Controlling LCD and Keypad
LCD and Keyboard Interfacing
CSCI1600: Embedded and Real Time Software
82C55 Programmable Peripheral Interface
LCD and Keyboard Interfacing
LCD and Keyboard Sepehr Naimi
8279 – Programmable Keyboard/Display Interface
LCD and Keyboard Interfacing
Keypad Source: under under
Keypad Source: under under
CSCI1600: Embedded and Real Time Software
LCD AND KEYBOARD INTERFACING
Interrupts.
Buttons.
Presentation transcript:

BIRLA VISHVAKARMA MAHAVIDYALAYA TOPIC : Keyboard interfacing and flowchart MADE BY: Nidhi Bhangale ( ) Gargi Patel ( ) Meghna Rathod ( ) GUIDED BY: PROF. HIREN PATEL

INTRODUCTION Keyboards are part of HMI and plays an important role in a small embedded system where human interaction is needed. Used in many circuits for entering data or characters. Used as an input device to provide input from outside world to the microcontroller. Makes an application more users interactive.

Interfacing is connection between parts of software. This concept of interfacing a keyboard with AVR is similar as interfacing it with any other microcontroller.

Why we use matrix keyboard? Simple architecture Ease of interfacing with any microcontroller Connect more keys to a microcontroller

If we directly interface 16 switches with a microcontroller it requires 16 pins and if we connect those 16 switches in form of a matrix then only 8 pins are required. So it reduces the number of required pins. There is a key between each overlapping row and column line.

SCANNING AND IDENTIFYING THE KEY Figure shows a 4 * 4 matrix to two ports. The rows are connected to an output port that is port 0(P0)and the columns are connected to an input port that is port 1(P1). If no key has been pressed the input port is connected to high(Vcc).

If all rows are grounded and a key is pressed, one of the columns will have 0 since the key pressed provides the path to grounded. The function of microcontroller is to scan the keyboard continuously to detect and identifying the key pressed.

Grounding rows and identifying the columns To detect a pressed key, the microcontroller grounds all rows by providing 0 to the output, and then it reads the columns. If the data read from the columns is D3-D0=1111, no key has been pressed and the process continues until a key press is detected. If one of the column bits has a zero, this means that a key press is occurred. For example, if D3-D0=1101,this means that a key in the D1 column has been pressed. After key press is detected, the microcontroller will go through the process of identifying the key.

EXAMPLE : From the figure identifying the rows and column of the pressed key for each: 1.D3-D0=1110 for the row,D3- D0=1011 for the column: The row belongs to D0 and the column belongs to D2; therefore, key number 2 was pressed. 2.D3-D0=1101 for the row,D3- D0=0111 for the column: The row belongs to D1 and the column belongs to D3;therefore, key number 7 was pressed.

Flow chart of keyboard interfacing

Start Ground all rows Read all columns All keys open? Read all columns Any key down? Wait for debounce Read all columns Any key down? 1 1 Ground next rows Read all columns Key press in this row? Get scan code from table Return Find which key is pressed Yes No Yes No

Debounce After the key press detection, the microcontroller waits 20ms for the bounce and then scans the column again. This serves two functions:(a) It ensures that the first key press detection was not an erroneous one due to it spike noise, and (b) the 20-ms delay prevents the same key press from being interpreted as a multiple key press. vcc GND unstable unstable