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.
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
| Symptom | Likely Cause | What to Check |
|---|---|---|
| Row of black blocks | Controller not initialised; contrast set but no commands accepted | Capture from power-up and check the function set sequence and delays |
| Garbage characters in 4-bit mode | Nibbles out of step after a reset or glitch | Check every byte is sent as high then low nibble and re-run the 4-bit init |
| Characters missing at random | Host writes faster than the controller executes | Measure the gap after each command against the execution time, or poll busy |
| Nothing on an I2C backpack module | Wrong I2C address, or expander bit mapping differs | Decode the I2C address and map the expander bits to RS, E and D4 to D7 |
| Ghost digits on 7-segment | Segment data changed while the digit is still enabled | Check 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.
| Product | Role | Capability | Price ex VAT |
|---|---|---|---|
| Acute TravelLogic 34-Channel | Watch | Acute decoders for character LCD, ST7669 and 7-segment display | €1.577,95 |
| ZeroPlus LAP-C Pro Series | Watch | ZeroPlus decoders for LCD1602 (HD44780), LCD12864, ST7669, LG4572 and 7-segment | €1.158,95 |
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.