Back to Browse

WRITE C PROGRAM FOR 16X2 LCD DISPLAY USING LPC2148

690 views
Mar 2, 2025
22:56

To write a c program for interface 16x2 LCD display with LPC 2148 and to display the word "HELLO WORLD". LCD PIN DETAILS: RS P0.16 RW P0.17 ENABLE P0.18 D4 19 D5 20 D6 21 D7 22 PINSEL1 = 0X00000000 used to configure port P0.16 to P0.31 act as input output port IODIR0 =0X00FF0000 P0.16 TO P0.23 act as output port and remaining act as input port COMMANDS : 0X28 : Two line display with 4bit mode 0x0C : back light on and cursor on 0x06 : increment cursor 0x01: clear lcd display 0x80 : first line select 0xc0 : second line select for command RS and RW : low send upper four bits to data line D4 to D7 enable pin : high, delay and then low send lower four bits to data line D4 to D7 enable pin : high, delay and then low for data RS : high RW : low send upper four bits to data line D4 to D7 enable pin : high, delay and then low send lower four bits to data line D4 to D7 enable pin : high, delay and then low

Download

0 formats

No download links available.

WRITE C PROGRAM FOR 16X2 LCD DISPLAY USING LPC2148 | NatokHD