Alpha/Numeric Keypad Functions using AVR Preliminary Design Review Luke R. Morgan ECE 5330 11/17/2008.

Slides:



Advertisements
Similar presentations
Standard Input Devices section 2a This lesson includes the following sections: · The Keyboard · The Mouse · Variants of the Mouse.
Advertisements

Input Devices. Objectives o State what is an input device o State what is input o State what an input device is used for o List the categories of input.
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.
8051 I/O Interfacing Need for more ports PPI 8255
Programmable Interval Timer
Input/Output (I/O) Ports and Interfacing
Input/Output Ports and Interfacing ELEC 330 Digital Systems Engineering Dr. Ron Hayne Images Courtesy of Ramesh Gaonkar and Delmar Learning.
Chapter 2 HARDWARE SUMMARY
Mark Neil - Microprocessor Course 1 Decoding and Using a 4x4 Keyboard.
Counter Circuits and VHDL State Machines
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 Fall 2009 Lecture 6: TI MSP430 IO Interfacing.
ECE 447: Lecture 6 Input/Output Interfacing LEDs, Button Switches & Port Multiplexing.
ECE 353 Introduction to Microprocessor Systems Michael Schulte Week 12.
Parallel Ports of PC Methods of interfacing Examples.
1 KEYBOARD. 2 Structure  Is standard input device Arrangement of keys IC Integrated Circuit.
 Keyboards, LCDs most widely used input/output devices of the 8051  Contents to be covered:  keyboard fundamentals  key press and key detection mechanisms.
Computer System Examples? Input Output Devices System Unit Devices
SudokuEHG Michelle Brown Matt Haggenmiller Thomas Troch CE Design Projects Design Review December 12, 2007.
UNIT 8 Keypad Interface Contact Closure Counter Exceptions (Interrupts and Reset)
1 4-Integrating Peripherals in Embedded Systems (cont.)
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
Homework Assignment 3 Due date: Tuesday, Wednesday, or Thursday, October 4-6, 2005 input: push-button switch output: seven-segment LED 7 points Menu System.
ELEC4601 Microprocessor systems Lab 3 Tutorial
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,
Teachers Name : Suman Sarker Telecommunication Technology Subject Name : Microcontroller & Embedded System Subject Code : 6871 Semester : 7th Department.
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”
Standard Input Devices
10/24/2015 Amrita Vishwa Vidyapeetham 1 Key Board & LED Interfacing.
8279 KEYBOARD AND DISPLAY INTERFACING
Parallel Interfacing Chapter 7. Parallel Interfacing Parallel I/O Ports Using Parallel Ports Seven-Segment Displays Keypad Interfacing Liquid Crystal.
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
Chris Wallau ECE5330 November 17, 2008 Remote Thermometer and Display.
Keyboard interfacing.
Counter Circuits and VHDL State Machines
EE292 F ALL 2012 A WESOME P ROJECT : K EYPAD R EADER Brendan Morris 12/06/2012.
Microprocessor and Interfacing Example: Writing a Game Need to Check Keyboard Input.
8279 KEYBOARD AND DISPLAY INTERFACING
EE 316 Computer Engineering Junior Lab Project 2 Digital Yahtzee.
ECE 4330 Project Proposal 2 “Blackout” LED Game by Nick Hermanson.
KEYBOARD INTERFACING Keyboards are organized in a matrix of rows and columns The CPU accesses both rows and columns through ports. ƒTherefore, with two.
Department of Electronic & Electrical Engineering Seven segment display Subroutines.
Mark Neil - Microprocessor Course 1 Decoding and Using a 4x4 Keyboard.
ECE 447: Lecture 12 Keypads ECE 447: Lecture 10. ECE 447: Matrix Keypad.
Tutorial 9 Module 8 – 8.1,8.2,8.3. Question 1 Distinguish between vectored and non-vectored interrupts with an example Build a hardware circuit that can.
Electronic Craps Table. Objective Design a system to incorporate electronics into the game of craps to track bets and payouts while maintaining the interactive.
KEYBOARD/DISPLAY CONTROLLER - INTEL Features of 8279 The important features of 8279 are, Simultaneous keyboard and display operations. Scanned keyboard.
BIRLA VISHVAKARMA MAHAVIDYALAYA TOPIC : Keyboard interfacing and flowchart MADE BY: Nidhi Bhangale ( ) Gargi Patel ( ) Meghna Rathod.
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
DIGITAL CALCULATOR USING 8051
Lesson 3 Standard Methods of Input.
Lesson 3 Standard Methods of Input.
Keypad Source: under under
LCD and Keyboard Sepehr Naimi
CSCI1600: Embedded and Real Time Software
Decoding and Using a 4x4 Keyboard
CSCI1600: Embedded and Real Time Software
Keypad Source: under under
Keypad Source: under under
Lesson 3 Standard Methods of Input.
LCD AND KEYBOARD INTERFACING
Decoding and Using a 4x4 Keyboard
Presentation transcript:

Alpha/Numeric Keypad Functions using AVR Preliminary Design Review Luke R. Morgan ECE /17/2008

Requirements Software Requirements Software Requirements C language using Codevision C language using Codevision Hardware Requirements Hardware Requirements 4x4 Keypad 4x4 Keypad 7 Segment Display 7 Segment Display N-channel Enhancement Mode MOSFETs N-channel Enhancement Mode MOSFETs Resistors Resistors Interfaces Interfaces Engineer Keypad Interface to AVR Engineer Keypad Interface to AVR Engineer LED Interface to AVR Engineer LED Interface to AVR Integrate Keypad and LED for system functionality Integrate Keypad and LED for system functionality

AVR Pin Layout

Keypad Setup “Scanning the Keypad” “Scanning the Keypad” The keypad contains 16 keys, symmetrically arranged in four rows with four keys, each. Each column and row of the keypad is connected to an I/O pin. The keypad contains 16 keys, symmetrically arranged in four rows with four keys, each. Each column and row of the keypad is connected to an I/O pin. Make the columns as i/p and drive the rows making them o/p, this whole procedure of reading the keyboard is called scanning. Make the columns as i/p and drive the rows making them o/p, this whole procedure of reading the keyboard is called scanning. The microcontroller continually scans the keypad by setting all row pins except one to high and reading all column pins. All column inputs have pull-up resistors enables so when a key is pressed the microcontroller will record a low level on one of the column inputs. The microcontroller continually scans the keypad by setting all row pins except one to high and reading all column pins. All column inputs have pull-up resistors enables so when a key is pressed the microcontroller will record a low level on one of the column inputs.

Keypad Layout

General Coding for Keypad Within Interrupt Routine Within Interrupt Routine Timer value yet to be determined Timer value yet to be determined Could be Approximately 20ms Could be Approximately 20ms Port A.0 – A.3 will be continually driven by shifting a bit Port A.0 – A.3 will be continually driven by shifting a bit 0001  0010  0100   0010  0100  1000 Read Port A.4 – A.7 (column reading) Read Port A.4 – A.7 (column reading) Determine which button is pushed Determine which button is pushed A 50ms Key debounce technique will be implemented A 50ms Key debounce technique will be implemented Eliminate Multiple Keystrokes Eliminate Multiple Keystrokes

7-Segment Display Setup Display is broken up into 4 sections (A, B, C, D) Display is broken up into 4 sections (A, B, C, D) Port C (0-3) will be connected to pins (4,7,10,14) respectively. Each will have a current limiting MOSFET connected to ground. Port C (0-3) will be connected to pins (4,7,10,14) respectively. Each will have a current limiting MOSFET connected to ground. Pins(1,3,8,10,12,13,15,16) each connected to 200 ohm resistors Pins(1,3,8,10,12,13,15,16) each connected to 200 ohm resistors

General Coding for Display Two Steps in Coding Two Steps in Coding 1. Determine what section (A,B,C,D) the value is to be displayed 1. Determine what section (A,B,C,D) the value is to be displayed Suppose Section D is turned on: Suppose Section D is turned on: PINC.3 will be high PINC.3 will be high 2. Display the corresponding value from the keypad button pushed 2. Display the corresponding value from the keypad button pushed Requires a “look-up” table to be developed Requires a “look-up” table to be developed If 1 is displayed If 1 is displayed Port B (0-7) would be set as: Port B (0-7) would be set as:

Functionality Display Alpha and Numeric Characters Display Alpha and Numeric Characters Integer Addition and Subtraction Integer Addition and Subtraction Home Security Home Security Table of Security Codes will be provided Table of Security Codes will be provided User will enter a correct code User will enter a correct code Display will read OPEN Display will read OPEN User will enter an incorrect code User will enter an incorrect code Display will read BAD Display will read BAD CODING FOR BOTH FUNCTIONALITY AND INTERFACE INTEGRATION IS NON-TRIVIAL