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

Amphibionics 03  3/24/03  8:11 AM  Page 35
                                            Description
                        Statement
                                                                                   PicBasic Pro Statement
                                            Synchronous serial input.
                        SHIFTIN          Chapter 3 / Microcontrollers and PIC Programming TABLE 3.2
                                                                                   Reference (continued)
                        SHIFTOUT            Synchronous serial output.
                        SLEEP               Power down processor for a period of time.
                        SOUND               Generate tone or white-noise on specified pin.
                        SWAP                Exchange the values of two variables.
                        TOGGLEMake                            pin             output             and              toggle            state.

                        WHILE..WEND         Execute statements while condition is true.
                        WRITE               Write byte to on-chip EEPROM.

                        WRITECODE           Write word to code memory.
                        XIN                 X-10 input.

                        XOUT                X-10 output.



                        Compiling A Program

                        For operation of the PicBasic Pro Compiler, you will need a text
                        editor or word processor for creation of your program source file,
                        some sort of PICmicro programmer such as the EPIC Plus Pocket
                        PICmicro  Programmer,  and  the  PicBasic  Pro  Compiler  itself.  Of
                        course you also need a PC to run it.

                        Follow this sequence of events:

                        First, create the BASIC source file for the program, using your favorite
                        text editor or word processor. If you don’t have a favorite, DOS EDIT
                        (included  with  MS-DOS)  or  Windows  NOTEPAD  (included  with
                        Windows and Windows 95/98) may be substituted. A great text edi-
                        tor called Ultraedit is available at: www.ultraedit.com. It is geared
                        towards the software developer and does not add any undesirable
                        formatting characters that will cause the compiler to error out.

                                                                                                  35
   51   52   53   54   55   56   57   58   59   60   61