LCD Interfacing W LPC2148
LCD Interfacing W LPC2148
LPC2148
LCD Interfacing
• RW = 0 → Write , RW = 1 → Read
• E – Enable
• Used to latch the data present on the data pins. A High to low pulse is required on Enable line
• D0 – D7
• Bi-directional data/command pins.
• Alphanumeric characters are sent in ASCII format.
• After writing to the LCD, it takes some time for it to complete its internal operations. During this time, it will
not accept any new commands or data.
• We need to insert time delay between any two commands or data sent to LCD
Command Codes
Interfacing LCD with LPC2148
Steps for LCD initialization
• Send 38H to the 8 bit data line for initialization for use of 2 lines and
5×7 matrix
• Send 0EH for making LCD ON, cursor ON and cursor blinking ON.
• Send 01H for clearing the display and return the cursor.
• Send 06H for incrementing cursor position to right.
Sending command to the LCD
• RET
Sending data to the LCD
• Send code on the port connected to LCD
• RET