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

ta6   tHE uillvERsA!  lNslRuiilEl{t  A BAoKGROUNO  DISCUSSIOI{



                                            ea ier is an  extension ofthe  themomeier  we will coDstruct
                      The controllermentioned
                    in one of the  pro.jects.  lts construction  is covercd in detail


                    Notes


                    All instruments  arc assembled  fiom slanda-rd  hardware  and soltware  components'  so lhey
                    tend to have  a modular structure.  Each  nodule in the  instrument  provides  one  function
                    Thefbllowing  arc some  commonmodules  you  would  find on systens  bascd on  the PIC
                     l6F877A:

                     I  Analog  input section
                     t  Mathemalical  maDipulalions
                     r  Set the DEFINES  for rhe LCD
                     I  Display  to the LCD
                     I  Read  a  potentrometer or two
                     I  Display  to displays  (CRT)
                     I  Read a keyboard
                     I  Put out a tone
                     I  Read a s{'itch
                     !  A communications
                                       module
                                             by sclecting  ordesigning  the  modules we  need aDdassem-
                       We create  our instr-Lrments
                     bling them  into a  project-  Once  you  have created  a nodulc or subroutrne,  you  can use
                     it again and  again in your  designs  if you  oreale  it to be easily  transportable  to olher
                     designs.  Taking the time  to clo so now  will savc  you  a lol oI time'  agrin and  again. in


                       Notice in the  projecls  that  follow that  I too use lhe modules over  and over  agaiD'
                     I also  macle a concerted  ellbrt to use as fcw instruclions  in PIC Basic  Pro  (PBP)  as
                     possible,  so  the emphasis  was on the design of ihe insfuments,  not on fancy soft-
                     ware lricks  and routines.
   185   186   187   188   189   190   191   192   193   194   195