Post on 02-Mar-2018
7/26/2019 Lcd Interfacing With Microcontroller
1/19
PRESENTATIONON
INTERFACING LCD
WITHMICROCONTROLLER
prince367
7/26/2019 Lcd Interfacing With Microcontroller
2/19
Topics:1)Components2)At!c"1 mic#ocont#o$$e#
%)Pin &i'(#'m o mic#ocont#o$$e#
*)LCD")Fe't+#es o LCD
,)Pin &i'(#'m o LCD
-)Ci#c+it &i'(#'m o p#o.ect)P#o(#'m
!)P#o.ect on PC/
10)Ree#ence
7/26/2019 Lcd Interfacing With Microcontroller
3/19
Components:1) 89c51 microcontroller
2) LCD
3) Crystal Oscillator4) 16 pin male female
connectors
5) Resistor
6) Capacitors
7/26/2019 Lcd Interfacing With Microcontroller
4/19
mic#ocont#o$$e#:It is 40 pin microcontroller
IC
It is pro!"ce! #y $tmel Company
7/26/2019 Lcd Interfacing With Microcontroller
5/19
Pin &i'(#'m:
7/26/2019 Lcd Interfacing With Microcontroller
6/19
LCD:
LCD%li&"i!crystal!isplay) is
'n!in(i!esprea!"se
7/26/2019 Lcd Interfacing With Microcontroller
7/19
Fe't+#es o LCD:
1) Inexpensive
2) Ability to display number and
graphics3) Ease of programming
7/26/2019 Lcd Interfacing With Microcontroller
8/19
Pin &i'(#'m:
7/26/2019 Lcd Interfacing With Microcontroller
9/19
Desc#iption:
*+ere are to resistors,1) Comman! resistor,
-stores comman!
instr"ction (i.en to lc!2) Data resistor,
-stores !ata to #e !isplay on
lc!
7/26/2019 Lcd Interfacing With Microcontroller
10/19
CONT:D0D!" data bus#$%resistor select)
#$"1data resistor
#$"0command resistorEnable
h&to&l'rite
l&to&hreadr('
r('"1reading
r('"0'riting
7/26/2019 Lcd Interfacing With Microcontroller
11/19
co&e:
7/26/2019 Lcd Interfacing With Microcontroller
12/19
Ci#c+it &i'(#'m:
7/26/2019 Lcd Interfacing With Microcontroller
13/19
P#o(#'m:ORG 00HMAIN:MO A34%H
ACALL cmn&
MO A340EH
ACALL cmn&
MO A3401H
ACALL cmn& MO A340,H
ACALL cmn&
MO A340H
ACALL cmn&
MO DPTR345NL
LCD:CLR A MOC A36A7DPTR
ACALL &'t'8
ACALL &e$'91
INC DPTR
5N LCD
7/26/2019 Lcd Interfacing With Microcontroller
14/19
MOV R0,#16H
TT:MOV A,#1CH
ACALL cmnd
ACALL delay
ACALL delay1
DJNZ R0,TT SJMP MAIN
cmnd:m! "0,a
cl "$%0
cl "$%1
&e'( "$%$
acall delay
cl "$%$
e'
da'a):m! "0,a
&e'( "$%0
cl "$%1 &e'( "$%$
acall delay
cl "$%$
e'
7/26/2019 Lcd Interfacing With Microcontroller
15/19
delay:m! 'md,#01*
m! 'l0,#+$*
m! '*0,#0ce*
&e'( '0
*ee:n( '-0,*ee
cl '0
cl '-0
e'
delay1:m! 0,#0a*
e..:m! 'md,#01* m! 'l0,#00*
m! '*0,#00*
&e'( '0
/.:n( '-0,/.
cl '0 cl '-0
dn 0,e..
e'
JNL:D2 3S*)e'a 2.nal 4*&*(3,0
end
7/26/2019 Lcd Interfacing With Microcontroller
16/19
F$o8 c;'#t:
7/26/2019 Lcd Interfacing With Microcontroller
17/19
P#o.ect on PC/:
7/26/2019 Lcd Interfacing With Microcontroller
18/19
Ree#ence:Book:
-8051 MICROCONTROLLER- MOHAMMED ALIMAIDI
!e"#i$e:-%%%&op$re'&co(
-%%%&en)ineer#)*r*)e&co(
-%%%&*$(e+&co(
7/26/2019 Lcd Interfacing With Microcontroller
19/19
THAN< =O>