Sie sind auf Seite 1von 2

Interfacing-Keyboard-8051-Microcontroller | Interface-Matrix-Keyboard...

http://www.8051microcontrollers.com/interfacing/keyboard-interfacing-...

Link Exchange With Us


")--> Home Home
Interfacing 8051 8051 Tutorials Download Datasheets Dev Boards & Prog. Tools

Interfacing 8051

Keyboard Interfacing 8051 Microcontrollers

Interfacing Matrix Keyboards 8051 Microcontrollers

Spec. 8051 Core

8051 CPU Interfacing 4x4 Matrix Keyboard 8051 Microcontroller Family Models : 4k 8 ROM (80C51) Atmel, NXP, Philips, 8051, 8052, 89C51, 89C52, 89S51, 89s52, 89C1051, 89C1051, 89C2051, AT89C4051, 8k 8 ROM (80C52) AT89S8252,l AT89C1051, AT89C2051, AT89C4051, P89C51RB+, P89C51RC+, P89C51RD+, P89C51RB2Hxx, 128 8 RAM P89C51RC2Hxx, P89C51RD2Hxx, P89C660, P89C662, P89C664, P89C668, P89C669, P89C51RA2xx, (80C51) P89C51RB2xx, P89C51RC2xx, P89C51RD2xx, P89C60X2, P89C61X2,P89LV51RB2, P89LV51RC2, P89LV51RD2, 256 8 RAM P89V51RB2, P89V51RC2, P89V51RD2, P89V660, P89V662, P89V664. (80C52) Three 16-bit Introduction Keyboard 8051 Microcontroller counter/timers Keyboards and LCDs are the most widely used input/output devices of the 8051, Boolean processor and a basic understanding of them is essential. In this section, we first discuss Full static operation keyboard fundamentals, along with key press and key detection mechanisms, Low voltage (2.7 V Then we show how a keyboard is interfaced to an 8051. Interfacing keyboard to 5.5 V@ 16 MHz) with 8051 Microcontroller is the most common practice and important part of operation any embedded systems. Any application which needs data to be accept we attach Memory addressing keyboard to it and input ports of 8051 Microcontroller are connected with this so capability that the data should be entered easily through pressing keys. In order to 64k ROM and 64k interface keyboard with 8051 we need a matrix keyboard. These boards are RAM designed with particular rows and columns. These rows and columns are Power control connected to the microcontroller through its ports of the microcontroller 8051. We normally use 8x8 matrix or modes: 4x4 matrix keyboard are used to connect it to the 8051 Microcontroller. Clock can be stopped and resumed Idle mode Power-down mode CMOS and TTL Motor Control Tutorials compatible TWO speed ranges at www.Galilmc.com VCC = 5 V Free Web Tutorials from Galil, The World 0 to 16 MHz Leader in Motor Control. 0 to 33 MHz Three package styles Products Support Contact Us Extended temperature ranges Acer Megan Fox TVC Dual Data Pointers The Story of Megan Fox's hidden passion.Brought to you Security bits: by Acer ROM (2 bits) OTP/EPROM (3 bits) by Acer Tube on YouTube Encryption array 64 bytes How Keyboard Works 8051 Microcontrollers 4 level priority Matrix keyboard is very compact and easy to interface with CPU only two ports of 8051 can be used to connect interrupt the keyboard. When we press any key on the keyboard then only row and column gets activated and other keys 6 interrupt sources are left un pressed. So the switch at keyboard sends the signal to the port of microcontroller that a particular pin Four 8-bit I/O ports has low signal. Which informs the CPU that a particular key is pressed by the user. When the pressed key is Fullduplex identified then application running in the microcontroller execute the enhanced UART instruction what to do in that situation. Framing error detection Automatic address recognition Programmable clock out Asynchronous port reset Low EMI (inhibit ALE and slew rate controlled outputs) Wake-up from Power Down by an external interrupt

1 of 2

29/03/2013 11:26 PM

Interfacing-Keyboard-8051-Microcontroller | Interface-Matrix-Keyboard...

http://www.8051microcontrollers.com/interfacing/keyboard-interfacing-...

Scanning Pressed Key 8051 Microcontrollers In order to detect a pressed key the 8051 microcontroller grounds all rows by providing low signal to the output latch and scans the column. However, if one of the columns bits has a zero, this means that a key press has occurred. After a key press is detected, the microcontroller will go through the process of identifying the key. Starting with the top row, the microcontroller grounds it by providing a low to row D0 only; then it reads the columns. If the data read is all1s, no key in that row is activated and the process is moved to the next row. It grounds the next row, reads the columns, and checks for any zero. This process continues until the row is identified. After identification of the row in which the key has been pressed, the next task is to find out which column the pressed key belongs to. This should be easy since the microcontroller knows at any time which row and column are being accessed.

Matrix Management
www.blessingwhite.com Skill-building interactive workshop for navigating matrix structures

Overview

Public Workshops

Upcoming Events

EEWeb Toolbox - An Electrical Engineering Community

Copyright @All Right 8051 Microcontrollers.com

| Contact Here

2 of 2

29/03/2013 11:26 PM

Das könnte Ihnen auch gefallen