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

3I4   IOGGII{G DATA FROI  A SOLAF COLI.ECIOR



                      In Program  22.8, the data is stored on disk in hexadecimal  format. If  you want it in
                    decimal fomat,  you have  1o read it into a program  variable and then convert it to the
                    desired fomat. As provided (in the compiler),  the SEROUT insluction  offers a limited
                    choice for the data transfer as it was read  in from the clock.

                    nole   Therc is a certain amount of nonyolatile nemory  on the PIC  16F877A that
                    couu halje been utilized to storc  po  rer  failurc  infomqtionforfuture  anallsis- Howew4
                    because  there is no  prcvision that alloyrs us to rcset the  clock accurately, the use  of this
                    memory  cannot  pro|ide a norc pet;lct  solution.

                    PROBI-EM!

                    When this program was sent ro Dr  Sun, one of his students complained  thal the pro-
                    $am  was not completely coflect. Can  you lind what he or she thinks the problem  is?
                    The answer  is provided  at the end  of the support Web site.
   307   308   309   310   311   312   313   314   315   316   317