LCD LPC2148
LCD LPC2148
LCD CLIRUID
or
stals
LCDs ae lsed bor displaing
in mbedded Saslams.
Pavametars
device whi ch has
16xX2 is 6 pin
LcD Contro Pins
Pias
and 3 (ontro
data pins Do -D )
S Pos a
Rs, R, EN) Jhe tmaining
ehe LeD
LCD
Sopply
dnd baklight t
o
module:-
6xa LcD Display
HELLO SMVEC
NANE FON CTI ON
,
Contrast Adjus
Vee
Pin
Registar Selat
RS
Read W i t Pin
R
E
Ena ble Pin
RSReg:str Seect
1 -
Data Hode
O (ommano Mode
R Read E
- R e a d mode
O - ia flode
TO LOJ.
Enable HIGHH
LCD CoHHANDS:
2nd
L 0Perakon:
Jnikalise
3 Stps: Cnd bosEn A
Send omma nd (Rs=o, RJ=0,
cora hus.
Send dat a
(Rs=, R0,
en )
C. PRO RAH
LCD
Rs 6
deine
define Rh
EN 18
deline
yy C
Crod;
md;
Command (onsiqned Cha
Char
LD
Void
chac y
data );
Void LCD data Consiqned
Pinwn
Blodk3
Port wria (13, myCmd ), ||ort),
IIom High o loo
Pn on CEN,S to Endle
delay C 9
finwnt (N,o),
Consiqned
char data
data
Void LD data
2
Rnwrita (RS,5 Rs = daka made.
WiE ode
Pinwit (Ro); w =ofor
Pinoita (ENN, o)
LD Command COx38)
Cormmano Coxoc),
L
(ommand (ox 06;
LD
Co m m a n d Coxo)
(ormmano (oXg o) :
L
Ejnc lude <LP 2 4 X*h >
nt i HE
HELL O SHVE
LLo SHVE
Char
Line iC
Line 6 =
iL 6 =
Unsign ed
initLCDC
itt)
Ci-0 ié o ',
o Daka be display
LDdata C line 1Ci3 )