Introduction
An HD44780 Character LCD is a liquid crystal display (LCD) display device designed for interfacing with embedded systems. These screens come in a variety of configurations including 8Γ1, which is one row of eight characters, 16Γ2, and 20Γ4. The most commonly manufactured configuration is 40Γ4 characters, which requires two individually addressable HD44780 controllers with expansion chips as the HD44780 can only address up to 80 characters.
These LCD screens are limited to text only and are often used in copiers, fax machines, laser printers, industrial test equipment, networking equipment such as routers and storage devices.Β Character LCDs can come with or without backlights, which may be LED, fluorescent, or electroluminescent.Β Character LCDs use a standard 14-pin interface and those with backlights have 16 pins.
I am going to show you how to interface such a LCD to a PIC microcontroller (PIC16F628A). The programming for PIC will be done in mikroC (a C compiler for PIC from mikroelektronika).
Β Note: Never forget to disable the comparator functions on PORTA.0, 1, 2, 3 pins if you are going to use those pins as digital I/O.
Β Β Β Β Test LCD in 4-bit mode
Β Β * Description:
Β Β Β Β This code demonstrates how to display test message on a LCD which
Β Β Β Β is connected to PIC16F628A through PORTB. D4-D7 pins of LCD are
Β Β Β Β connected to RB4-RB7, whereas RS and EN pins connected to RA0 and RA1