


Generally this is set to 0, because we do not have need to read data from LCD. And set it to 1, if we are reading from LCD module. RW: This is Read/write pin, we will set it to 0, if we are going to write some data on LCD. And we will set it to 0 if we are sending some command instruction like clear the screen (hex code 01).

We need to set it to 1, if we are sending some data to be displayed on LCD. We can divide it in five categories, Power Pins, contrast pin, Control Pins, Data pins and Backlight pins.Ĭontrast Setting, connected to Vcc thorough a variable resistor.Įnable, a high to low pulse need to enable the LCDĭata Pins, Stores the Data to be displayed on LCD or the command instructionsĪll the pins are clearly understandable by their name and functions, except the control pins, so they are explained below: So first let's understand the 16 pins of LCD module. Although it may be time taking because you need to understand and connect 16 pins of LCD to the microcontroller. Interfacing LCD with 8051 microcontroller might look quite complex to newbies, but after understanding the concept it would look very simple and easy. In this tutorial we are going to connect 16X2 LCD module to the 8051 microcontroller (AT89S52). 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. 16x2 LCD is one of the most used display unit. Display units are the most important output devices in embedded projects and electronics products.
