Page 275 - Amphibionics : Build Your Own Biologically Inspired Robot
P. 275

Amphibionics 06  3/24/03  9:02 AM  Page 254
                                                       Amphibionics
                      PROGRAM 6.8
                                          :100010001D2011208E0C0C288F0B08281D200E0887
                      receive-test.hex file
                                          :100020000800220884002008841780048413000537
                      listing             :100000009F2864001120031801281C2008308F004D
                                          :100030001F192006FF3E08001F171F0D06398C00F0
                                          :100040002B208D008C0A2B201F1F7E281F138C0055
                                          :10005000023095207E2800308A000C088207013487
                                          :1000600075340334153400343C340C34D9348F00E7
                                          :100070002208840020095E2084138F0803199A281F
                                          :10008000F03091000E0880389000F0309103031991
                                          :10009000910003198F0303199A284E286120030148
                                          :1000A0000C1820088E1F20088E0803190301900FDA
                                          :1000B0005B28800642285C280000452884178005BC
                                          :1000C0009A280D080C0403198C0A80300C1A8D062E
                                          :1000D0000C198D068C188D060D0D8C0D8D0D9A2822
                                          :1000E0008F018E00FF308E07031C8F07031C9A2898
                                          :1000F00003308D00DF307E2072288D01E83E8C00B9
                                          :100100008D09FC30031C87288C07031884288C0772
                                          :1001100064008D0F84280C188D288C1C91280000F9
                                          :100120009128080003108D0C8C0CFF3E03189228B8
                                          :100130000C089A28831303138312640008008316A3
                                          :10014000033085000130860005308312A20008309C
                                          :10015000A00073308E000A30372032308E000A3013
                                          :1001600037200630A2000130A00004309F0001209B
                                          :100170005A3C031DB7280120A40064002408413C18
                                          :10018000031DD0280530A2000830A00073308E0077
                                          :100190000A30372050308E00143037206430702001
                                          :0601A000B1286300D12824
                                          :02400E00F53F7C
                                          :00000001FF

                                          The corresponding transmit-test.bas for the PIC 16C71 microcon-
                                          troller used in the remote control is listed in Program 6.9. This
                                          program  uses  the  serout command  to  send  serial  data  to  the
                                          transmitter.  The  baud  rate  is  also  set  at  the  same  rate  as  the
                                          receiver program. Notice that the qualifier character “Z” is sent
                                          first, and then our control character, in this case “A.” Program the
                                          PIC 16C71 with the transmit-test.hex file listed in Program 6.10.


                      254
   270   271   272   273   274   275   276   277   278   279   280