LCD and Keyboard Interfacing

Slides:



Advertisements
Similar presentations
Lab 12 : Liquid Crystal Displays: Slide 2 Slide 3 Slide 4 Slide 5 Slide 6 Slide 7 DMD Basics : Slide 8 Slide 9 Slide 10 Slide 11 Slide 12 Data Write the.
Advertisements

Programmable Interval Timer
Programmable Keyboard/ Display Interface: 8279
kashanu.ac.ir Microprocessors 6-1 I/O Devices Switches, LED, LCD Lec note 6.
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.
Embedded Systems 7763B Mt Druitt College of TAFE Electrical Engineering Lesson 2 LCD Display Interfacing.
MP3 player on PC using PIC controller via USB. Supervisor: Dmitry Sokolik Performed by: Yoav Gershoni Shachar Faigenblat.
16x2 LCD Module on DE2-115 數位電路實驗 TA: 吳柏辰 Author: Trumen.
KyungHee Univ. 2-0 Parallel Port LCD Interface with the HD44780 Controller.
Overview What kind of LCD Interfacing the LCD Displaying Text and Numbers Common Issues.
Digital Outputs LCD Display
Input/Output Ports and Interfacing
UniMAP 1 Interfacing Peripherals. UniMAP 2 Interfacing devices on Embedded Linux In general, to interface to a device connected to an embedded Linux platform.
8279 KEYBOARD AND DISPLAY INTERFACING
EE 316 Computer Engineering Junior Lab Serial Ports, LCD Displays & PROMs.
Embedded Systems 7763B Mt Druitt College of TAFE Electrical Engineering Lesson 2 LCD Display Interfacing.
Chapter 10 Glass Bliss Using the Parallel Master Port to communicate with Alphanumeric LCD displays.
8279 KEYBOARD AND DISPLAY INTERFACING
Department of Electronic & Electrical Engineering LCD character display (parallel interface). How to interface a LCD character display to a PIC.
MICRO CONTROLLER PROGRAMMING & APPLICATIONS UNIT V Mr. S. VINOD LECTURER EEE DEPARTMENT.
I/O Devices Switches, LED, LCD
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.
Sitarambhai Naranjibhai Patel Institute of Technology and Research Centre, Umrakh, Bardoli. A Presentation On “ 16x2 LCD Interfacing with AVR atmega32.
LCD AND LCD INTERFACING. INDEX:-  INTRODUCTION  PIN DISCRIPTION  INITIALIZATION OF LCD  LCD INTERFACING  LCD INTERFACING WITH ATMEGA 32  INTERFACING.
BIRLA VISHVAKARMA MAHAVIDYALAYA TOPIC : Keyboard interfacing and flowchart MADE BY: Nidhi Bhangale ( ) Gargi Patel ( ) Meghna Rathod.
CEng3361 CENG 336 INT. TO EMBEDDED SYSTEMS DEVELOPMENT Spring 2011 Recitation 06.
Computer Organization
8279 Keyboard / Display Interface
INT. TO EMBEDDED SYSTEMS DEVELOPMENT
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 Interfacing using Atmega 32
COURSE OUTCOMES OF Microprocessor and programming
The 8085 Microprocessor Architecture
LCD AND KEYBOARD INTERFACING
Display Devices 16 x 2 lcd display.
CCNA 2 v3 JEOPARDY Module 2 CCNA2 v3 Module 2 K. Martin.
Interfacing the HC(S)12 microcontroller to a Hitachi/Optrex LCD Display Panel The LCD display panel contains its own microcontroller (Hitachi HD44780)
LCD and Keyboard Interfacing
UNIVERSAL COLLEGE OF ENGINEERING & TECHNOLOGY
GANDHINAGAR INSTITUTE OF TECHNOLOGY
DIGITAL CALCULATOR USING 8051
Serial I/O and Data Communication.
Chapter 9 Alphanumeric Displays
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
Keyboard/Display Controller INTEL 8279
COMP2121: Microprocessors and Interfacing
EET 2261 Unit 11 Controlling LCD and Keypad
Introduction to Microprocessors and Microcontrollers
Interfacing Memory Interfacing.
8051 Single Board Computer (SBC) Version 1.0
Figure Pin Positions for Various LCDs from Optrex
EET 2261 Unit 11 Controlling LCD and Keypad
LCD and Keyboard Interfacing
By: A. H. Abdul Hafez CAO, by Dr. A.H. Abdul Hafez, CE Dept. HKU
4-Bit Counter Spencer Canavan.
SPI Protocol and DAC Interfacing
LCD and Keyboard Interfacing
LCD and Keyboard Sepehr Naimi
Keyboard/Display Controller (8279)
8279 – Programmable Keyboard/Display Interface
8051 Micro Controller.
LCD and Keyboard Interfacing
LCD (LIQUID CRISTAL DISPLAY) SCREENS
Compiled by Dr. N.Shanmugasundaram, HOD, ECE Dept, SECE.
INTERRUPTS.
LCD AND KEYBOARD INTERFACING
Presentation transcript:

LCD and Keyboard Interfacing Chapter 3 LCD and Keyboard Interfacing

Pin Descriptions for LCD Symbol I/O Description 1 VSS -- Ground 2 VCC +5V power supply 3 VEE Power supply to control contrast 4 RS I RS = 0 to select command register, RS = 1 to select data register 5 R/W R/W = 0 for write, R/W = 1 for read 6 E Enable 7 DB0 The 8-bit data bus 8 DB1 9 DB2 10 DB3 11 DB4 The 4/8-bit data bus 12 DB5 13 DB6 14 DB7

Pin Positions for Various LCDs from Optrex

Some commonly used LCD Command Codes Code (Hex) Command to LCD Instruction Register 1 Clear display screen 2 Return cursor home 6 Increment cursor (shift cursor to right) F Display on, cursor blinking 80 Force cursor to beginning of 1st line C0 Force cursor to beginning of 2nd line 38 2 lines and 5x7 character (8-bit data, D0 to D7) 28 2 lines and 5x7 character (4-bit data, D4 to D7)

LCD Connection to Microcontroller

LCD Connection for 4-bit Data

LCD Addressing Commands   DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 Line 1 (min) 1 Line 1 (max) Line 2 (min) Line 2 (max)

Cursor Addresses for Some LCDs

LCD Write Timing

LCD Read Timing

List of LCD Instructions RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 Description Execution Time (Max) Clear display 1 Clears entire display and sets DD RAM address 0 in address counter 1.64 ms Return Home - Sets DD RAM address to 0 as address counter. Also returns display being shifted to original positions. DD RAM contents remain unchanged. Entry Mode Set I/D S Sets cursor move direction and specifies shift of display. These operations are performed during data write and read. 40µs Display On/Off Control D C B Sets On/Off of entire display (D), cursor On/Off (C), and blink of cursor position character (B). Cursor or Display shift S/C R/L Moves cursor and shifts display without changing DD RAM contents. Function Set DL N F Sets interface data length (DL), number of display lines (L), and character font (F) Set CG RAM Address AGC Sets CG RAM address. CG RAM data is sent and received after this setting. Set DD RAM Address ADD Sets DD RAM address. DD RAM data is sent and received after this setting. Read Busy Flag & Address BF AC Reads Busy flag (BF) indicating internal operation is being performed and reads address counter contents. Write Data CG or DD RAM Write Data Writes data into DD or CG RAM. Read Data CG or DD RAM Read Data Reads data from DD or CG RAM.

List of LCD Instructions (Abbreviations) DD RAM: Display data RAM CG RAM: Character generator RAM AGC: CG RAM address ADD: DD RAM address, corresponds to cursor address AC: address counter used for both DD and CG RAM addresses I/D: 1 = Increment, 0: Decrement S =1: Accompanies display shift S/C: 1 = Display shift, 0: Cursor move R/L: 1: Shift to the right, 0: Shift to the left DL: 1 = 8 bits, 0 = 4 bits N: 1 = 2-line, 0 = 1-line F: 1 = 5 x 10 dots, 0 = 5 x 7 dots BF: 1 = Internal operation, 0 = Can accept instruction

Matrix Keyboard Connection to Ports

The Flowchart for Key Press Detection and Identification

Switch contact bounces