Professional Documents
Culture Documents
Chapter 5
Objectives
Upon completion of this chapter, you will be able to:
Describe I/O ports interfacing to LEDs, Switches, 7-Segment Display, LCD and keyboard interfacing Apply the I/O system interfacing
I/O Ports
VCC
VCC
10K
10K
RB0
SPST Pushbutton Switch
RB0
VCC
VCC
10K
10K
RB0 RB7
SPDT Pushbutton Switch SPDT Toggle Switch VCC
RB0 RB7
VCC
10K 10K
LCD Interfacing
Based on the HD44780 model There are in total of 14 pins
Control of operating
6 7 8 9 Data / commands 10 11 12 13 14
E D0 D1 D2 D3 D4 D5 D6 D7
LCD Screen
LCD screen consists of two lines with 16 characters each Every character consists of 5x8 or 5x11 dot matrix
LCD Connections
LCD Memory
LCD display contains three memory blocks:
DDRAM - Display Data RAM CGRAM - Character Generator RAM CGROM - Character Generator ROM
LCD Operation
There are two ways to send characters to LCD:
Delay method Monitoring busy flag
End of Chapter 5