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

Amphibionics 03  3/24/03  8:11 AM  Page 34
                                                              Description
                      TABLE 3.2
                      PicBasic Pro Statement
                                          ON DEBUG
                                                              Execute BASIC debug monitor.
                      Reference (continued)  Statement  Amphibionics
                                          ON INTERRUPT        Execute BASIC subroutine on an interrupt.
                                          OUTPUT              Make pin an output.
                                          PAUSEDelay                             (1mSec               resolution).
                                          PAUSEUS             Delay (1uSec resolution).
                                          PEEK                Read byte from register. (Do not use.)

                                          POKEWrite                               byte               to               register.             (Do                not               use.)
                                          POT                 Read potentiometer on specified pin.

                                          PULSIN              Measure pulse width on a pin.
                                          PULSOUT             Generate pulse to a pin.

                                          PWM                 Output pulse width modulated pulse train to
                                                              pin.

                                          RANDOM              Generate pseudo-random number.
                                          RCTIMEMeasure                            pulse             width             on              a              pin.

                                          READ                Read byte from on-chip EEPROM.
                                          READCODE            Read word from code memory

                                          RESUME              Continue execution after interrupt handling.
                                          RETURN              Continue at statement following last GOSUB.

                                          REVERSE             Make output pin an input or an input pin an
                                                              output.

                                          SERIN               Asynchronous serial input (BS1 style).
                                          SERIN2              Asynchronous serial input (BS2 style).

                                          SEROUT              Asynchronous serial output (BS1 style).
                                          SEROUT2             Asynchronous serial output (BS2 style).
                                                                                   (continued on next page)

                      34
   50   51   52   53   54   55   56   57   58   59   60