i need C program code to interface lcd with 85s92
Posts: 6,843
Threads: 4
Joined: Mar 2015
lcd interfacing with 8952 pdf
Abstract
Display units are the most important output devices in embedded projects and electronics products. 16x2 LCD is one of the most used display unit. 16x2 LCD means that there are two rows in which 16 characters can be displayed per line, and each character takes 5X7 matrix space on LCD. In this tutorial we are going to connect 16X2 LCD module to the 8051 microcontroller (AT89S52). Interfacing LCD with 8051 microcontroller might look quite complex to newbies, but after understanding the concept it would look very simple and easy. Although it may be time taking because you need to understand and connect 16 pins of LCD to the microcontroller. So first let's understand the 16 pins of LCD module.
This tutorial explains one of the real world application of 8051. Here we are going to explain how a 16×2 LCD is interfaced with AT89S52.
1) LCD:
16×2 LCD is used as output by the controller to show any data or any information to user .The name 16×2 LCD means 16 number of data can be can be written on two lines. The data can be numbers(0-9) or letters(A-Z) of any symbol like “$” ,”#”…… or a space ” “.
In recent years the LCD is replacing LEDs or seven segment display due to many factors:
The ability of LCDs to display numbers, characters and graphics. Where other displaying unit like seven segments are limited only to numbers and few characters
Due to presence of a controller in the LCD the displaying task gets much more easier for the micro-controller(8051)
To show a number or alphabet on LCD screen we need to just send the ASCII value to the data pin. Hence its pretty easy to display characters and graphics
The low price of LCDs.
It is very important to keep a track of the working of almost all the automated and semi-automated devices, be it a washing machine, an autonomous robot or anything else. This is achieved by displaying their status on a small display module. LCD (Liquid Crystal Display) screen is such a display module and a 16x2 LCD module is very commonly used. These modules are replacing seven segments and other multi segment LEDs for these purposes. The reasons being: LCDs are economical, easily programmable, have no limitation of displaying special & even custom characters (unlike in seven segments), animations and so on. LCD can be easily interfaced with a microcontroller to display a message or status of a device. This topic explains the basics of a 16x2 LCD and how it can be interfaced with AT89C51 to display a character.