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

Amphibionics 03  3/24/03  8:11 AM  Page 33
                                            Description
                        Statement
                                                                                   PicBasic Pro Statement
                                            Enable ON INTERRUPT processing.
                        ENABLE INTERRUPT  Chapter 3 / Microcontrollers and PIC Programming TABLE 3.2
                                                                                   Reference (continued)
                        END FOR..NEXT       Stop execution and enter low power mode.
                        FOR..NEXT           Repeatedly execute statements.
                        FREQOUT             Produce up to 2 frequencies on a pin.
                        GOSUB               Call BASIC subroutine at specified label.
                        GOTO                Continue execution at specified label.

                        HIGH                Make pin output high.
                        HSERIN              Hardware asynchronous serial input.

                        HSEROUT             Hardware asynchronous serial output.
                        I2CREAD             Read bytes from I2C device.

                        I2CWRITEWrite                       bytes            to            I2C            device.
                        IF..THEN..ELSE..ENDIF  Conditionally execute statements.

                        INPUT               Make pin an input.
                        LCDIN               Read from LCD RAM.

                        LCDOUT              Display characters on LCD.
                        {LET}               Assign result of an expression to a variable.

                        LOOKDOWN            Search constant table for value.
                        LOOKDOWN2           Search constant/variable table for value.
                        LOOKUP              Fetch constant value from table.

                        LOOKUP2             Fetch constant/variable value from table.

                        LOW                 Make pin output low.
                        NAP                 Power down processor for short period of
                                            time.

                                                                 (continued on next page)

                                                                                                  33
   49   50   51   52   53   54   55   56   57   58   59