Microcontroller Applications: Alphanumeric Dot Matrix LCDS
Microcontroller Applications: Alphanumeric Dot Matrix LCDS
3 4
Hitachi HD44780
5 6
1
16/03/2019
An LCD Display will be connected to a The LCD Display consist of a command set.
microcontroller’s data ports. – Home the Cursor
– Home the Cursor and clear the display
– Move the Cursor
Eg PORTA or PORTH – Scroll Characters
– Blank Display
It needs a number of data lines and a – Set Cursor Type
number of control lines. – Blink Cursor
– Data Lines: Can either send ASCII characters to – Number of Lines
be displayed, or LCD operational commands. – Font Type
7 8
The control lines are used to drive the LCD. The control lines are used to drive the LCD.
– RS (Register Select Input) – R/W (Read / Write Input)
Determines whether the data lines are read as ASCII Determines the data direction.
characters or as operational commands. – Writing data to the LCD is basically sending characters to
– In command mode, the LCD in a state where it’s waiting the display.
to receive commands to set the conditions of the display – LCDs can also Read data from the display. So if there
- In ASCII mode, the LCD in a state where it’s going to already is data on the screen, it can be read back into
send characters to display on the screen. the microcontroller. (This feature is rarely used).
9 10
The control lines are used to drive the LCD. Pin number Name Function Description
1 VSS power GND CHECK FIRST!!!
– E (Clock / Enable) 2 VDD power +5 V CHECK FIRST!!!
3 VO power contrast
4 RS input register select
2
16/03/2019
4 or 8 Bit Modes
13 14
15 16
17 18
3
16/03/2019
D0 to D3 (8 Bit)
PH6 E
Wired to GND already RW
PH5 RS Soldier Terminal Pins onto LCD
PA4 D4 Board
D0 to D3
PA5 D5 These are the 8 Bit Pins
PA6 D6
PA7 D7
D4 to D7 (8 & 4 Bit)
4
16/03/2019
25