Lab 3 LCD Mar

Similar documents
LCD. Configuration and Programming

Parallel Display Specifications Revision 1.0

LCD Module User Manual

If the display shift operation is used on a 20 x 4 display, the addressing is shifted as follows:

LCD Module User Manual

SSD1803. Product Preview. 100 x 34 STN LCD Segment / Common Mono Driver with Controller

Character LCD Interface for ez80acclaim! MCUs

Lab Experiment 9: LCD Display

16COM / 40SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD

LCM NHD-0440CI-YTBL. User s Guide. (Liquid Crystal Display Module) RoHS Compliant. For product support, contact NHD CI- Y- T- B- L-

Sitronix. ST7038i FEATURES GENERAL DESCRIPTION. Dot Matrix LCD Controller/Driver

中显液晶 技术资料 中显控制器使用说明书 2009年3月15日 北京市海淀区中关村大街32号和盛大厦811室 电话 86 010 52926620 传真 86 010 52926621 企业网站.zxlcd.com

JUL. 27, 2001 Version 1.0

Laboratory 3 Working with the LCD shield and the interrupt system

Interfacing Z8 Encore! XP MCUs with an I 2 C-Based Character LCD

Microprocessors & Interfacing

16COM/40SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD

DOT MATRIX CHARACTER LCD MODULE USER S MANUAL

34COM/60SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD

LCDs. Embedded Systems Interfacing. 20 September 2011

SLCD1-IC Serial LCD Processor

INTEGRATED CIRCUITS DATA SHEET. PCF2119x-2 LCD controllers/drivers. Product specification File under Integrated Circuits, IC12

16COM / 80SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD

DATA SHEET. PCF2113x LCD controller/driver INTEGRATED CIRCUITS Apr 04

SPECIFICATIONS FOR LCD MODULE

Input/Output Devices. Lecturer: Sri Parameswaran Notes by: Annie Guo

AN1745. Interfacing the HC705C8A to an LCD Module By Mark Glenewinkel Consumer Systems Group Austin, Texas. Introduction

Chapter 4. Address. data. Input / Output Programming. Simplified Z80 System Architecture. Memory. program. data. Z80 I/O Programming

LCD05 datasheet 1.0

LABORATORY MANUAL Interfacing LCD 16x2, Keypad 4x4 and 7Segment Display to PIC18F4580

INTEGRATED CIRCUITS DATA SHEET. PCF2119X LCD controllers/drivers. Product specification Supersedes data of 2002 Jan 16.

16COM/80SEG DRIVER & CONTROLLER FOR DOT MATRIX LCD

N.B. These pastpapers may rely on the knowledge gained from the previous chapters.

LCD board. EB005

LCD Module User Manual

UNIT 6 LCD (LIQUID CRISTAL DISPLAY) SCREENS

Demystifying Character Based LCDs

LCM NHD-0440AZ-FSW -FBW. User s Guide. (Liquid Crystal Display Character Module) RoHS Compliant FEATURES

Lab Overview. Lab Details. ECEN 4613/5613 Embedded System Design Week #7 Spring 2005 Lab #4 2/23/2005

M0120SD 201MDB1 1. Vacuum Fluorescent Display Module

TN-192. Bar Graph shows analog trends on a dot-matrix character LCD module. Introduction. LCD Module Basics. Custom Characters

COMP2121: Microprocessors and Interfacing. I/O Devices (II)

HD (132 x 168-dot Graphics LCD Controller/Driver with Bit-operation Functions) Preliminary. Rev 0.1 Oct 15, Description.

Dec Hex Bin ORG ; ZERO. Introduction To Computing

Hitachi Europe Ltd. ISSUE : app026/1.0 APPLICATION NOTE DATE : 20/9/94

Chapter 9. Input/Output (I/O) Ports and Interfacing. Updated: 3/13/12

HD44780U (LCD-II) A single HD44780U can display up to one 8-character line or two 8-character lines.

CLCD1 Serial 1 wire RS232 LCD development board

Introduction 1. Liquid crystal display (16 characters by 2 rows) Contrast dial: turn the dial to adjust the contrast of the display (see page 5)

ECE 4510/5530 Microcontroller Applications Week 9

SPECIFICATIONS FOR LCD MODULE

SPECIFICATIONS FOR LCD MODULE

SPECIFICATIONS FOR LCD MODULE

LCD03 - I2C/Serial LCD Technical Documentation

Objectives : 1) To study the typical design of a LCD module 2) To interface the digital display unit through parallel printer port using C# program.

LCD Module with I2C / Serial Interface and Keypad Control «LCD I2C/Serial» User s Guide. Copyright 2008 IMS

MBCF24204B03 技术手册 ( 完整版 ) DoYoung.net 原创技术资料 实物照片 机械参数表.

Graphical LCD Display Datasheet EB

Application Note. Connecting standard LCD modules to. the MB90670/5 series. History 01 th Feb. 97 MM V1.0 started 28 th June 00 TKa V1.

DOT MATRIX CHARACTER LCD MODULE USER S MANUAL

USING LEDs, LCDs. AND GLCDs IN MICROCONTROLLER PROJECTS. Dogan Ibrahim. Near East University, Cyprus WILEY. A John Wiley & Sons, Ltd.

LCD03 - I2C/Serial LCD Technical Documentation

Keywords Digital IC tester, Microcontroller AT89S52

BV4218. I2C-LCD & Keypad. Product specification. December 2008 V0.a. ByVac 2006 ByVac Page 1 of 9

To be familiar with the USART (RS-232) protocol. To be familiar with one type of internal storage system in PIC (EEPROM).

SPECIFICATIONS FOR LCD MODULE

Alphanumeric LCD display module 24 characters by 2 line. General description

melabs Serial LCD Firmware Version 1.0 2/7/07

Crystalfontz America, Inc.

Item Symbol Standard Unit Power voltage VDD-VSS Input voltage VIN VSS - VDD

melabs Serial LCD Firmware Version 1.1 3/5/07

Magic 8 Ball. Student's name & ID (1): Partner's name & ID (2): Your Section number & TA's name

SC162A VER2.1 CONTENT. 1. General description

ARM HOW-TO GUIDE Interfacing GLCD with LPC2148 ARM

unit: mm 3044B - QFP80A unit: mm QFP80D

Embedded Systems and Software. LCD Displays

DESCRIPTION FEATURES. PT6321 Fluorescent Display Tube Controller Driver

DISPLAY DEVICES 20T202DA1J (Tentative) Page - 1 / 18 VACUUM FLUORESCENT DISPLAY MODULE

PCF2119x. 1. General description. 2. Features and benefits. LCD controllers/drivers

PCF2119x. 1. General description. 2. Features and benefits. LCD controllers/drivers

GSM BASED HOME AUTOMATION SYSTEM

SPECIFICATION SALES BY APPROVED BY CHECKED BY PREPARED BY. Crystalfontz America, Inc East Saltese Avenue Spokane Valley, WA

Dragon12 LCD Displays Hantronix_CLD.PDF data sheet (Dragon12 CD-ROM) Dragon12 LCD Display. The Dragon12 board has a 16 character x 2 line display

GRAVITECH GROUP

NT7651. LCD controller/driver 16Cx2 characters icons PRELIMINARY. Features. General Description

e-pg Pathshala Subject: Computer Science Paper: Embedded System Module: Interfacing External Devices using Embedded C Module No: CS/ES/22

Chapter 2 Number Systems and Codes Dr. Xu

Microcomputer Architecture and Programming

Embedded Systems Lab Lab 1 Introduction to Microcontrollers Eng. Dalia A. Awad

RA8806. Two Layers Character/Graphic LCD Controller Specification. Simplify Version 1.1 October 15, 2008

Newhaven Display International, Inc Technology Drive, Suite 101 Elgin IL, Ph: Fax:

Lecture (03) Binary Codes Registers and Logic Gates

US x 32 OLED/PLED Segment/Common Driver with Controller For 20x4 Characters.

Crystalfontz America, Inc.

LCD MODULE DEM SBH-PW-N

Number Systems. Dr. Tarek A. Tutunji Philadelphia University, Jordan

LCD MODULE DEP Y

LCD MODULE DEM SBH-PW-N

LCD MODULE DEM SBH-PW-N

Lab 4: Register File and Memory 50 points Instructor: Yifeng Zhu Due: One week

Transcription:

Lab 3 LCD Mar. 2016 1

Objective 1. To be familiar with advanced output devices that can be connected to microcontroller. 2. To be able to work with many input/output devices together. Alphanumeric LCD display This component is specifically manufactured to be used with microcontrollers, which means that it cannot be activated by standard IC circuits. It is used for displaying different messages on a miniature liquid crystal display. The model described here is for its low price and great capabilities most frequently used in practice (LM016L LCD). It is based on the HD44780 microcontroller (Hitachi) and can display messages in two lines with 16 characters each. It displays all the letters of alphabet, Greek letters, punctuation marks, mathematical symbols etc. In addition, it is possible to display symbols made up by the user. Other useful features include automatic message shift (left and right), cursor appearance, LED backlight etc. Function Description Registers The HD44780U has two 8-bit registers, an instruction register (IR) and a data register (DR). The IR stores instruction codes, such as display clear and cursor shift, and address information for display data RAM (DDRAM) and character generator RAM (CGRAM). 2

The IR can only be written from the MPU. The DR temporarily stores data to be written into DDRAM or CGRAM and temporarily stores data to be read from DDRAM or CGRAM. Data written into the DR from the MPU is automatically written into DDRAM or CGRAM by an internal operation. The DR is also used for data storage when reading data from DDRAM or CGRAM. When address information is written into the IR, data is read and then stored into the DR from DDRAM or CGRAM by an internal operation. Memory In 16 2 LCD controller HD44780, there are three memory are available to store characters, numbers and special symbols. Which are DDRAM (data display RAM) which stores ASCII codes, CGROM (character generating ROM) which is responsible for stored standard character pattern, and CGRAM (character generating RAM) which holds custom character pattern space total 8 in 2 16 module. Display Data RAM (DDRAM) Display data RAM (DDRAM) stores display data represented in 8-bit character codes. Its extended capacity is 80 8 bits, or 80 characters. The area in display data RAM (DDRAM) that is not used for display can be used as general data RAM. Character Generator ROM (CGROM) The character generator ROM which is responsible for stored standard character pattern generates 5 8 dot or 5 10 dot character patterns from 8-bit character codes. It can generate 208 5 8 dot character patterns and 32 5 10 dot character patterns. Character Generator RAM (CGRAM) The character generating RAM which holds custom character pattern has only 8 memory location available to store user defined characters with address 0x00-0x07, which is shown in the figure 3.1. 3

Char Code Figure 3.1 : Char Code LCD Display Along one side of a small printed board there are pins used for connecting to the microcontroller. There are in total of 14 pins marked with numbers (16 if the backlight is built in). Their function is described in the table below: 4

Table 3-1: Pin Descriptions for LCD LCD Screen Modes D0-D7 is the data bus and is used to pass commands and characters to the LCD. Data can be transferred to and from the display either as a single 8-bit byte or two 4-bit nibbles. In the second case only the upper four data lines (D4-D7) are used. This 4-bit mode is beneficial when using a microcontroller with few input/output pins available. 5

Displaying Standard Character on LCD Out of these three memory locations, DDRAM and CGROM are used to generate regular standard characters (ASCII characters). By using these three memory locations, a user can generate different character fonts and symbols on LCD display. A character font describes the shape and style of the character. Each shape of a character is designed by taking the number of pixels in mind. For example, in 16x2 LCD there are 16 segments available per single line. Each segment contains pixels in 5x7 or 5x10 matrix forms. For example, in 16 2 LCD there are 16 segments available per single line. Each segment contains pixels in 5 8 or 5 10 matrix forms. For example, a character in both uppercase A and lowercase a is designed by energizing corresponding pixels as shown below. All these eight hexadecimal codes (referred as character pattern) of each character are stored in character generator ROM (CGROM) area. 6

The Display Data RAM (DDRAM) stores the ASCII code of a character which is sent by the microcontroller. Now the LCD controller (HD44780) maps the corresponding ASCII Code in DDRAM with CGROM address to bring the hexadecimal codes (character pattern) of that particular character. By using those hexadecimal codes the 5x7 matrix segment will light according to that character pattern to display corresponding character on it as shown in figure 3.2. Figure 3.2 : block diagram shows character generation on LCD. Displaying Custom Characters on LCD display To create custom characters on LCD, the display controller (HD44780) make use of CGRAM area to store hexadecimal codes (character pattern) which are designed by user. In addition to CGRAM area, DDRAM area is also used to store the CGRAM address of a particular character which is sent by microcontroller in hexadecimal format. 7

Lab Work 1 You are going to use these keywords when you search for parts in Proteus: Part Microcontroller LCD Keyword LPC2138 LM016L Write and simulate a program that displays your name on an LCD Keil 8

o Proteus Lab Work 2 You are going to use these keywords when you search for parts in Proteus: Part Microcontroller LCD Keyword LPC2138 LM016L 9

Write a program that displays your name on LCD with movement. Your program should allow the user to control the direction of the movement (shift left, right, clear or move to the second row) using push buttons. o Keil 10

o Proteus Lab Work 3 You are going to use these keywords when you search for parts in Proteus: Part Keyword Microcontroller LPC2138 LCD LM016L Use the LCD Custom Character tool to design Arabic letters and symbols as you like. 11

1. Open LCD Customer Character tool 2. Design your character/symbol then click Generate. 3. Go to mikoc tab and copy the first line of the code. 12

o Keil o Proteus 13

Homework Write a program that displays "Hello" at the 1st raw and World on the 2nd raw on the LCD. ( The upper word should be firstly appears from the left of the LCD then it is shifted continually to the other side. The lower word must have the opposite movement at the time.all that happen after a button press from the user ) Design your Arabic name and show it on LCD. Simulate a program that displays a message on the LCD that asks the user to enter his password by keypad (the password entered by user should appears as a stars * ), then press check button, if the password matches the stored one, a welcome message will appear. Else, error message will appear. Bonus Improve your application by adding Reset push button for the user if he want to cancel the entered before pressing check button (Be careful, reset may affect many parts) 14