Documentation
Documentation
Introduction
The most commonly used Character based LCDs are based on Hitachi's HD44780 controller.
Pin Description
The most commonly used LCDs found in the market today are 1 Line, 2 Line or 4 Line LCDs which have
only 1 controller and support at most of 80 characters, whereas LCDs supporting more than 80
characters make use of 2 HD44780 controllers.
Most LCDs with 1 controller has 14 Pins and LCDs with 2 controller has 16 Pins (two pins are extra in
both for back-light LED connections). Pin description is shown in the table below.
BF - Busy Flag
Busy Flag is an status indicator flag for LCD. When we send a command or data to the LCD for
processing, this flag is set (i.e BF =1) and as soon as the instruction is executed successfully this flag is
cleared (BF = 0). This is helpful in producing and exact amount of delay for the LCD processing.
To read Busy Flag, the condition RS = 0 and R/W = 1 must be met and The MSB of the LCD data bus (D7)
act as busy flag. When BF = 1 means LCD is busy and will not accept next command or data and BF = 0
means LCD is ready for the next command or data to process.
Data Register is not only used for sending data to DDRAM but also for CGRAM, the address where you
want to send the data, is decided by the instruction you send to LCD.