HD44780, LCD12864 and Other LCD Controller Buses

Front panels on instruments, appliances and machines still use character LCDs such as the 16x2 LCD1602, 128x64 graphic modules and 7-segment displays. They are driven by a controller that takes commands and data over a simple parallel or serial bus, and a missed command or wrong delay gives a blank screen or a row of black blocks. A logic analyser with an LCD decoder turns the captured bus back into commands and data, so you can compare the start-up sequence with the datasheet.

HD447808-bit or 4-bit parallel, RS, R/W, E
LCD160216 characters by 2 lines, HD44780
LCD12864128 by 64 dots, often ST7920
Enable strobeData latched on the falling edge of E
Busy flagBit 7 when reading status
7-segmentDirect, multiplexed or driver chip

HD44780 Character LCDs

The Hitachi HD44780 and its many compatible controllers drive most character LCD modules, including the 16x2 LCD1602 and 20x4 modules. The bus has RS (0 for command, 1 for data), R/W, E (enable) and 8 data lines, or only D4 to D7 in 4-bit mode, where each byte is sent as two halves, high nibble first. Data is latched on the falling edge of E. Commands include clear display (0x01), return home (0x02), entry mode set, display on/off control, function set (0x28 for 4-bit, two lines) and set DDRAM address (0x80 plus the address).

After power-up the controller needs time and, in 4-bit mode, a specific initialisation sequence of function set commands before it accepts the mode. At the typical 270 kHz oscillator frequency most commands take 37 µs and return home takes 1.52 ms; the HD44780U datasheet gives no time for clear display, so allow at least as long as return home, or poll the busy flag. Many modules are fitted with an I2C backpack based on a PCF8574 expander, which carries the 4-bit bus over I2C; decode the I2C bytes, then the LCD nibbles inside them.

LCD12864 Graphic Modules

"LCD12864" describes 128x64-dot graphic modules, many based on the Sitronix ST7920 controller, which also has a built-in Chinese character set. The PSB pin selects parallel mode (8 or 4-bit, like the HD44780) or serial mode, a 3-wire synchronous interface with chip select, clock and data, in which each byte is sent as a sync byte followed by two halves. Other 12864 modules use KS0108-type controllers with two chip selects, one per half of the screen.

ST7669, LG4572 and Other Panel Controllers

Small colour and monochrome panels often use a controller such as the Sitronix ST7669 or the LG4572 that is configured with a command set over a parallel 8080-style bus or a serial interface. ZeroPlus lists decoders for both the ST7669 and the LG4572, and Acute lists a decoder for the ST7669. For general 8080 and RGB panel buses, see the parallel video and camera guide.

7-Segment Displays

7-segment displays are driven directly from GPIO, multiplexed by digit with each digit enabled in turn, or through a driver IC that takes serial data. A 7-segment decoder maps the segment lines back to the digits shown, which helps when a multiplexing bug shows a ghost digit or a missing segment.

Common Faults and How to Find Them

SymptomLikely CauseWhat to Check
Row of black blocksController not initialised; contrast set but no commands acceptedCapture from power-up and check the function set sequence and delays
Garbage characters in 4-bit modeNibbles out of step after a reset or glitchCheck every byte is sent as high then low nibble and re-run the 4-bit init
Characters missing at randomHost writes faster than the controller executesMeasure the gap after each command against the execution time, or poll busy
Nothing on an I2C backpack moduleWrong I2C address, or expander bit mapping differsDecode the I2C address and map the expander bits to RS, E and D4 to D7
Ghost digits on 7-segmentSegment data changed while the digit is still enabledCheck the order of digit enable and segment updates

Tools for Decoding LCD Buses

Watch tools capture RS, R/W, E and the data lines and decode commands and characters.

ProductRoleCapabilityPrice ex VAT
Acute TravelLogic 34-ChannelWatchAcute decoders for character LCD, ST7669 and 7-segment display£1,260
ZeroPlus LAP-C Pro SeriesWatchZeroPlus decoders for LCD1602 (HD44780), LCD12864, ST7669, LG4572 and 7-segment£925

Designing a front panel? Tell us the display module and we will check decoder support.

Frequently Asked Questions

Why Does My LCD1602 Show Only Black Blocks?

The controller has power and contrast but has not been initialised. Check the function set sequence and the delays after power-up in a capture.

What Is 4-Bit Mode on an HD44780?

Only D4 to D7 are used, and each byte is sent as two nibbles, high first. It saves four pins at the cost of speed.

Which Controller Is in an LCD12864 Module?

Many use the Sitronix ST7920, which supports parallel and serial modes; others use KS0108-type controllers with two chip selects. Check the module datasheet.

Can I Decode an I2C LCD Backpack?

Yes. Decode the I2C bytes to the expander first, then map its outputs to RS, E and D4 to D7 to read the LCD commands.

More Protocols

By John Legg CEng, Director, Debug Store. Updated 24 November 2026.