INTERFACING OF 16x2 LCD WITH ARM LPC2148
INTERFACING OF 16x2 LCD WITH ARM LPC2148
INTERFACING OF 16x2 LCD WITH ARM LPC2148
1
Electrical Product Development Lab ARM Trainning
delay(1000);
}
lcdcmd (0xc0); // 2nd Row first position
delay(100);
for(i=4;i<9;i++){
lcd data (array[i]);
delay(1000);
}
return 0;
} // end of main function
2
Electrical Product Development Lab ARM Trainning
VEE
RW
RS
D0
D1
D2
D3
D4
D5
D6
D7
E
1
2
3
4
5
6
7
8
9
10
11
12
13
14
BACK LIGHT
P0.10
P1.25
P0.29
P1.16
P1.17
P1.18
P1.19
P1.20
P1.21
P1.22
P1.23
LPC2148 Controller
3
Electrical Product Development Lab ARM Trainning
RS – Register Select
0 to pass command
1 to pass data
RW – Read/Write
0 to Write LCD
1 to Read LCD
VDD
VSS
VEE
Display ‘A’ in LCD
RW
RS
D0
D1
D2
D3
D4
D5
D6
D7
E
Send upper 4 bit 0100
CLK E pin from 0 to 1 ?0
Send lower 4 bit 0001
1
2
3
4
5
6
7
8
9
10
11
12
13
14
CLK E pin from 0 to 1 ?0
RW
RS
D0
D1
D2
D3
D4
D5
D6
D7
E
E
RW
RS
D7
D6
D5
D4
D3
D2
D1
D0
0
0
0
0
0
0
0
0
0
0
0
INITILIZATION MODE OF LCD 8 BIT MODE INITILIZATION MODE OF LCD 4 BIT MODE
D7 D6 D5 D4
D7
0 0 1 1 1 0 0 0 CLK -> EN Function Set 0 0 1 1 CLK -> EN
0 0 1 0 CLK -> EN
0 0 1 0 CLK -> EN
0 0 0 1 CLK -> EN
0 0 0 0 CLK -> EN
1 1 1 1 CLK -> EN