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

Amphibionics 07  3/24/03  9:13 AM  Page 305
                                        Chapter 7 / Turtletron: Build Your Own Robotic Turtle
                        :1001800004309F0001205A3C031DC2280120A40016
                        :1001900064002408413C031DCE280F21640024087C
                                                                                   turtle-receive.hex file
                                                                                   listing (continued)
                        :1001A000423C031DD428312164002408433C031D34                PROGRAM 7.2
                        :1001B000DA28202164002408443C031DE028422161
                        :1001C00064002408453C031DF1280530A2000830D6
                        :1001D000A00073308E000A30372032308E000A3093
                        :1001E000372064002408463C031D0E29061283169E
                        :1001F00006128312061383160613831286128316C1
                        :1002000086128312861083168610831206118316B7
                        :10021000061183128611831686118312BC280616D6
                        :10022000831606128312061783160613831286148A
                        :100230008316861083120615831606118312080092
                        :1002400006168316061283120617831606138312E8
                        :1002500086148316861083128615831686118312E0
                        :100260000800061683160612831286168316861257
                        :1002700083128614831686108312861583168611C0
                        :10028000831208000616831606128312861683163A
                        :10029000861283128614831686108312061583161F
                        :0A02A00006118312080063005329C1
                        :02400E00F53F7C
                        :00000001FF

                        '------------------------------------------------------------------------------------------------------------------------------
                                                                                   PROGRAM 7.3
                        '  Name      : turtle-trans.bas
                                                                                   turtle-trans.bas listing
                        '  Compiler  : PicBasic Pro - MicroEngineering Labs
                        '  Notes      : Robot control using the Linx 433LC series
                        '                : transmitter and receiver.
                        '                : Using on-chip analog to digital converters
                        '                : of the PIC 16C71 to read the position of
                        '                : the two control stick potentiometers.
                        '------------------------------------------------------------------------------------------------------------------------------

                        ' set PortA inputs.

                        trisa = %00011111

                        ' PortB set as outputs. Pin 2 input




                                                                                                 305
   321   322   323   324   325   326   327   328   329   330   331