INTERFACING 16X2 LCD WITH AT89C51 CONTROLLER *Praneeth (Dept. of research and development in embedded systems) In this paper, we will have a brief discussion on how to interface 16x2 LCD module with AT89c51, which is an 8051 family microcontroller. We use LCD display for the displaying messages in a more interactive way to operate the system or displaying data or errors. If you understanding the working of 16x2 LCD, then you can easily interface LCD module with AT89c51 or with any microcontroller. The main aim of this paper is to provide more relevant information related to the subject with exact information which you can understand easily. And I will provide the code in c language which is working fine without any errors.
Brief note on 16X2 LCD: 16x2 liquid crystal display which will display 32 characters at a time in two rows i.e., 16 characters in first row and another 16 characters in second row. Each character in display is of size 5x7 pixel matrix. This matric differs for different 16x2 LCD modules. If consider JHD162A, this matrix works on 5x8 pixel matrix arrangement. There are 16 pins in LCD module, every pin has a specific operational specifications. The pin configuration of LCD is discussed below. S.NO.
NAME
FUNCTION
1
VSS
Ground pin
2 3
VCC VEE
Power supply pin of 5V Used for adjusting contrast commonly attached to the potentiometer
4 RS
RS is register select pin used to write display data to the LCD. This pin should be high when writing the data to LCD, During the initialization and for other commands this pin should be low.
5
R/W
Reading and writing data to the LCD for reading the data R/W pin should be high(R/W=1), to write data to the LCD R/W pin should be low(R/W=0).
6
E
Enable pin is for starting or enabling the module. A high to low pulse of about 450 ns pulse is given to this pin.
DB0-DB7
DB0-DB7 pins are data pins for giving data like characters, numbers, strings or command data which is meant to be displayed.
LED+ LED-
Back light of the LCD which should be connected to VCC Back light of the LCD which should be connected to ground
7
8 9
1