Interfacing LCD with 8051

9
INTERFACING 8051 PRASANNA

Transcript of Interfacing LCD with 8051

Page 1: Interfacing LCD with 8051

8/19/2019 Interfacing LCD with 8051

http://slidepdf.com/reader/full/interfacing-lcd-with-8051 1/12

INTERFACING 8051PRASANNA

Page 2: Interfacing LCD with 8051

8/19/2019 Interfacing LCD with 8051

http://slidepdf.com/reader/full/interfacing-lcd-with-8051 2/12

TO PICS:

LCD INTERFACING• KEYPAD

• ADC

• DAC

• STEPPER MOTOR

• DC MOTOR

• RTC

Page 3: Interfacing LCD with 8051

8/19/2019 Interfacing LCD with 8051

http://slidepdf.com/reader/full/interfacing-lcd-with-8051 3/12

LCD INTRODUCTIO N:

Liquid Crystal Display.• Copou!ds li"# $%ol#st#ryl !o!a!otat# a!d P& A'o(ya!isol# $

us#d as $rystal display.

•  T%#s# %a*# +uidity o, liquid a!d opti$al prop#rty o, solid.

•  T-O TYPES

N#ati$.a*# a d#/!it# ord#r or patt#r!.

Isotropi$.

liquid $rystal su)sta!$#s ar# ra!do i! t%#ir arra!0##!t.

Page 4: Interfacing LCD with 8051

8/19/2019 Interfacing LCD with 8051

http://slidepdf.com/reader/full/interfacing-lcd-with-8051 4/12

Nem atics:

N#ati$ liquid $rystals a1#$t#d )yelectric current

called twisted Nematic 3TN4

• Applyi!0 a! #l#$tri$ $urr#!t to t%#s# liquid $rystals 5ill u!t5ist%# to *aryi!0 d#0r##s6 d#p#!di!0 o! t%# $urr#!t7s *olta0#.

• LCDs us# t%#s# liquid $rystals )#$aus# t%#y r#a$t pr#di$ta)ly #l#$tri$ $urr#!t i! su$% a 5ay as to $o!trol li0%t passa0#.

Page 5: Interfacing LCD with 8051

8/19/2019 Interfacing LCD with 8051

http://slidepdf.com/reader/full/interfacing-lcd-with-8051 5/12

HOW LCD W ORKS:

 Li0%t $a! )# polari'#d.

• Liquid $rystals $a! tra!sit a!polari'#d li0%t.

•  T%# stru$tur# o, liquid $rystals $%a!0#d )y #l#$tri$ $urr#!t.

•  T%#r# ar# tra!spar#!t su)sta!$$o!du$t #l#$tri$ity.

Page 6: Interfacing LCD with 8051

8/19/2019 Interfacing LCD with 8051

http://slidepdf.com/reader/full/interfacing-lcd-with-8051 6/12

LCD PIN CONFIGURATIO NS:

Page 7: Interfacing LCD with 8051

8/19/2019 Interfacing LCD with 8051

http://slidepdf.com/reader/full/interfacing-lcd-with-8051 7/12

LCD PIN DESCRIPTIO N

RS 3REGISTRY SELECT48 -%#! RS9:6 t%is allo5 t%# us#r to s#!$oa!d su$% as 3$l#ar s$r##!6 0o %o#6 )li!" $ursor4. -%#!RS9;6 t%is allo5 t%# us#r to s#!d data.

• Enable: It us#d to lat$% t%# i!,oratio! to t%# data pi!s6 t%is )y s#!d a %i0% to lo5 puls# 3o, 5idt% o, <=: !s4 so t%# LCD latt%# data pr#s#!t#d o! t%# data pi!s.

• R>- 3READ>-RITE48 I, R-9: t%#! lCD 0oi!0 to 5rit# data. R-t%#! LCD 0oi!0 to r#ad data.

Page 8: Interfacing LCD with 8051

8/19/2019 Interfacing LCD with 8051

http://slidepdf.com/reader/full/interfacing-lcd-with-8051 8/12

LCD INITIALIATIO N: !HE"#

Page 9: Interfacing LCD with 8051

8/19/2019 Interfacing LCD with 8051

http://slidepdf.com/reader/full/interfacing-lcd-with-8051 9/12

INITIALI?ING TE LCDFor #(apl# to i!itiali'# LCD @ li!#s =B atri( )itod# t%# ,ollo5i!0 $oa!ds s%ould )# us#d8

;. :( to s#l#$t t%# typ# a!d od# o, op#ratio!

. :(:E to display t%# $ursor )li!"i!0.

. :(:; to $l#ar t%# LCD display.

SENDING COMMANDS TO LCD

 To s#!d $oa!ds to t%# LCD t%# ,ollo5i!0 st#pss%ould )# do!#8

;. RS9:6 R-9:.

.  T%# $oa!d !u)#r s%ould )# put o! t%# data p3D: to D4.

.  A puls# 3%i0% to lo54 s%ould )# s#!t o! t%# E!a)l#

pi!. A,t#r #a$% $oa!d a d#lay o, 3;::us4 s%ould)# pla$#d

Page 10: Interfacing LCD with 8051

8/19/2019 Interfacing LCD with 8051

http://slidepdf.com/reader/full/interfacing-lcd-with-8051 10/12

Se$%i$& %ata t' LCD

 To s#!d data to t%# LCD t%# ,ollo5i!0 st#ps s%ould)# do!#8 RS9;6 R-9:.

;.  T%# data s%ould )# put o! t%# data pi!s 3D: toD4.

. A puls# 3%i0% to lo54 s%ould )# s#!t o! t%#

E!a)l# pi!.A,t#r #a$% data a d#lay o, 3;::us4 s%ould )#pla$#d.

Page 11: Interfacing LCD with 8051

8/19/2019 Interfacing LCD with 8051

http://slidepdf.com/reader/full/interfacing-lcd-with-8051 11/12

E"A( PLE PRO G:

Page 12: Interfacing LCD with 8051

8/19/2019 Interfacing LCD with 8051

http://slidepdf.com/reader/full/interfacing-lcd-with-8051 12/12

E"A( PLE PRO G: