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

Using the EPIC DOS version
                                       If using Windows 95 or higher, you could either open an MS-DOS
                                       prompt window or restart the computer in the DOS mode. Win-
                                       dows 3.XX users should end the Windows session.
                                       Assume we are still in the same DOS session and we have just run
                                       the pbc compiler on the wink.bas program. Copy the wink.hex file
                                       into the EPIC subdirectory. At the DOS prompt, type “EPIC” and hit
                                       Enter to run the DOS version of the EPIC software (see Fig. 6.11).
                                       EPIC’s opening screen is shown in Fig. 6.12. Use the mouse to click
                                       on the Open button or press Alt-O on your keyboard. Select the
                                       wink.hex file (see Fig. 6.13). When the hex file loads, you will see
                                       a list of numbers in the window on the left (see Fig. 6.14). This is
                                       the machine code of your program. On the right-hand side of the
                                       screen are configuration switches that we need to check before we
                                       program the PIC chip.
                                       Let’s go through the configuration switches one by one.
                                         Device: Sets the device type. Set it for 8X.
                                         ROM size (K): Sets memory size. Choose 1.
                                         OSC: Sets oscillator type. Choose XT for crystal.
                                                                                                          111
                                         Watchdog timer: Choose On.
                                         Code protect: Choose Off.
                                         Power-up timer enable: Choose High.




























                                         6.11 EPIC command
                                                       Team LRN                                      Intelligence
   127   128   129   130   131   132   133   134   135   136   137