15-02-2017, 03:43 PM
The liquid crystal display (LCD) is very commonly used electronic display module and have a wide range of applications such as calculators, laptops, mobile phones etc. 16 × 2 LCD character display is a very basic module that is used Commonly in electronic devices and projects. It can display 2 lines of 16 characters. Each character is displayed using 5 × 7 or 5 × 10 pixels matrix.Interfacing 16 × 2 LCD with 8051 using Keil C is a bit complex because there are no powerful libraries in Keil C. To solve this problem we have developed an LCD library Which includes Common Usage Features, you simply have to include our header file and use it. You can download the header file at the end of this article.
LCD can be connected to the micro-controller in 4-bit or 8-bit mode. These differ in how the data is sent to the LCD. In 8-bit mode to write a character, the 8-bit ASCII data is sent through the D0-D7 data lines and the data strobe is given through the E of the LCD. LCD commands that are also 8-bit are written on LCD in a similar way.
But the 4-bit mode uses only 4 D4-D7 data lines. In this mode, the 8-bit ASCII data and command data are divided into two parts and sent sequentially through data lines. The idea of 4-bit communication is used to save micro-controller pins. 4-bit communication is a bit slower than 8-bit communication, but this difference in speed can be neglected since LCDs are low-speed devices. Therefore, data transfer in 4-bit mode is the most used.