Page 139 - Robots Androids and Animatrons : 12 Incredible Projects You Can Build
P. 139

6.18 PICBASIC Pro program written in CodeDesigner



           118                  CodeDesigner defaults to writing code for the PIC 16F84 micro-
                                controller. This is the microcontroller I recommend you start with.
                                To change the device, simply pull down the device menu and select
                                the appropriate microcontroller.
                                To compile the program, either select compile under the Compile
                                menu or hit F5. CodeDesigner automatically starts the PICBASIC
                                Pro compiler to compile the program. Before you attempt to com-
                                pile a program, set up the “compiler options” under the Compile
                                menu. CodeDesigner needs you to tell it where (which directory)
                                to find the PICBASIC Pro program, and where to save the com-
                                piled and source files.

                                Once the program is compiled, we can go to the next step of loading
                                the program into a PIC microcontroller chip using the EPIC pro-
                                grammer. Follow the instructions for the EPIC program described
                                previously for the PICBASIC compiler.

                        The EPIC programmer and CodeDesigner

                                If you prefer, you could also program the chip from CodeDesigner.
                                Select “launch programmer” from the Programmer menu, or hit F6.
                                CodeDesigner  automatically  starts  the  EPICWIN.exe  Windows
                                software.


                                                       Team LRN
            Chapter six
   134   135   136   137   138   139   140   141   142   143   144