LCD 20x4 Interfacing Code + Simulation
Category: AT89C51
Designer: RANA MUHAMMAD ADNAN KHALIL
Notes
In this circuit you will learn how 20 x 4 Alphanumeric LCD is interfaced with microcontroller. 1. There are normally two types of LCDs, Alphanumeric and Graphical LCD. 2. We use Alphanumeric LCD in this program. 3. There are modes of using this LCD, one is 8 bit mode and other is 4 bit mode. 4. We use 8 bit mode of LCD, it is faster than 4 bit mode. 5. LCD requires some time to settle after power up, which is normally 300ms. 6. After power up, initialize the LCD in 8 bit mode, see LCD initialization by pressing view button. 7. After initializing LCD in 8 bit mode, convert LCD in data mode by asserting RS pin. 8. Every line or location of LCD, where data is displayed has some address. 9. First select the address in command mode then send data in command mode. 10. To display data on LCD send ASCII code of that character. Application: This program is used to learn how data is display on 20 x 4 LCD.