16 x 2 LCD Interfacing Simulation + Code
Category: AT89C51
Designer: RANA MUHAMMAD ADNAN KHALIL
Notes
This circuit is designed and simulated in Proteus 7.10. You can use the updated version of Proteus. 1. Firmware is written in KEIL. You can use any other software. 2. In this circuit you will know how 16 x 2 LCD is interfaced with AT89C51. 3. There are two methods of LCD interfacing, one is 8 bit mode and other is 4 bit mode. 4. In this circuit 8 bit method is used. 5. LCD has 16 pins, out of which 8 are data pins, 1 enable pin, 1 read / write pin, 1 ground pin, 1 VCC (power) pin, 1 contrast pin, 1 RS (register select, i.e., command mode or data mode selection) and two back light pins (one is ground and other is power). 6. After power up circuit, wait almost 300ms to proper power up LCD. 7. LCD is then initialized in command mode via some commands, see lcd initialization function in code. 8. After initialization LCD is converted in Data mode. 9. Data on LCD is displayed in Data mode. 10. LCD controller receives ASCII code to display any character. 11. For further understanding, read code by clicking view button. Application: This program can be used with other program and concatenate or amend the code with this program to display data on LCD.