You are on page 1of 11

Microprocessor based Embedded Systems

Lecture 15: LCD Introduction (CLO 4)

Instructor: Tahir Ilyas


Overview of the lecture
Introductions to the LCD text display
The HD44780 LCD controller
Structure
Interface
Commands
Initialisation

2
The LCD text displays
Come in a wide variety of sizes
and shapes
Low cost solution for providing
info / feedback to the user

3
The HD44780 LCD controller
HD44780 is a commonly used dot
matrix display controller in a lot
of LCD text displays.
Contains:
Internal circuitry for driving the
LCD display
Display data (DD) RAM
Character generator (CG) RAM
Control mechanisms
Microcontroller interface

4
HD44780 / LCD display interface to µC
Signal name Description # lines Direction
E Chip enable signal used in the read 1 Input
and write operations.
RS Register select for choosing between 1 Input
Instruction register (when 0) and data
register (when 1).
R/W Read (when 1)/ write (when 0) signal 1 Input
used to indicate the direction of the
data transfer.
DB7-DB0 Data bus used for the transfer of 8 Input / output
commands and data and for checking
the device’s status.

5
HD44780’s commands

6
HD44780’s commands (cont.)

7
Initialisation procedure (First half)

8
Initialisation procedure (Second half)

9
Addresses

10
LCD connections on the STM32F100 trainer
Pin number Signal name Connection to STM32F100
1 Ground Common ground
2 Vcc -
3 Contrast -
4 RS PC10
5 R/W PC11
6 E PC12
10:7 DB3:DB0 -
14:11 DB7:DB4 PC3:PC0
15 Back light power -
16 Back light ground Common ground

11

You might also like