Page 154 - Making PIC Microcontroller Instruments and Controllers
P. 154

DISPIAYS:  EXTE  DED  I  FORIIAIION  nESOUBCE
             146   USING  LIQUID  CRYSTAL    A


                    ]lole   lye couu also use  a ane  Line  (about  $5)  disPlq"  brt thatflould  inhibit  leaming
                    abo t  going  to line 2, scn  hg the  disptq- up and  (Iown,  and  sofb'lh  To exryrin(:nt v itll
                    these  Jeatures,  we  needto haNe a aisplaf Yritllat least trt'o Lines'


                    Settin Out  Our  Desi n Intent


                    a  conrrol ihc 16 x 2 display  with a Ptc  16F877A  microconlroller  (&l3  code fbr the
                       smaller  MCUS  wil  be  the same).
                    a  Design  the software  so it can be an integrat  part of thc software  for any  project   ^
                    x  Use;Endard control codes  so lhe project is a virtual plug in replacement  for
                       other displays  ancl  in other PlCs  (Only minor modifications  if  any will  be
                       required.)
                    r  Usi a ninimum numbel  of exlemal  components,  allowing  this  sotlwdre  projecl  to
                       nove between  PIC controllers  of all descriptions  All we want  to do is include  the
                       code  in our  project  and  connect  the display  10 the  selccted  ports-
                     x  Usc  the  projecfs regulated  5_volt  power supply  foreverything-

                     trore  The PIC  l6F877A  has 33 UO hes'  the displal  v'ill  use 7 oI them'  so t\te  will
                                                    Sinc( we  don1  need dll these lines  Yre could  hare
                     hdt  e 26 tines  left o|erJbr  ov  Projact.
                     Ltsel  the 16F84A.  No  t)rogram  changes  shoukl  be nee(led,  otlrcr than changing  the litE
                             addrcsses the DEFINES'  \Nhen  we  tlot'  to the PIC l6F81A
                     dn(l  t)ott     in

                     HARDWARE  NEEDED
                     We will need lhe  following  pdts for this  projecl:

                     ,  Experimental  solde ess  breadboard
                     !  PIC microcontroller:  16F877Aor  l6F84A
                     x  One  barc  2-line by-16  characler  display  module  (with  a Hilachi  controllcr)
                     !  One  4 MHz cryslal
                     a  Two  22  Pf  capacilors
                     !  Rcgulated  5-voll  power  supply  fron the  brcadboad
                     s  Onc  470-ohm  0.25 watt  resistof
                     a  Sone  22-gaugc  insulatcd  singlc  stmnd hookup  wire
                     t  l-kohrn 0.12  watt  pull up  resislor


                     PROGRAMMEB  T{EEDED
                     Thc  programmer nceded  should  be cither  thc  microEnginee  ng seial programmer'  a
                     parallel  prcgrammer, or  the new  USB  programmer


                      SOFTWARE  NEEDED
                      The  sollware  nccded  includes  lhc PICBASIC  PRO Compiler  and  its nanual
   149   150   151   152   153   154   155   156   157   158   159