... If you don’t want to use CodeDesigner, program text files may be writtenusing any word processor as long as it is able to save its text file as ASCIIor DOS text. If you don’t own a commercial word processor, you can useWindows Notepad, which is included with Windows 3.X, 95, and 98. If youwork at the DOS level, you can use the Edit program to write text files.When you save the text file, save it with a .bassuffix. For example, if youwere saving a program named wink,save it as wink.bas.Step 2: Using the CompilerOnce set up, the CodeDesigner software will call and control the compiler andprogrammer software. The compiler may be run manually from a DOS window. To run the compiler program manually, enter the command pbcfollowedby the number of the PIC chip being programmed (that is, 16F84), then followed by the name of the source code text file. For the PicBasic Pro compilerprogram, the command starts with pbpinstead of pbc,followed by the nameof the source code text file. For example, for the PicBasic compiler, if the sourcecode text file we created is named wink,then at the DOS command promptenterpbc p16 f84 wink.basFor the PicBasic Pro compiler, the command line would bepbp p16 f84 wink.basThe compiler reads the text file and compiles two additional files, an .asm(assembly language) and a .hex(hexadecimal) file.The wink.asmfile is the assembly language equivalent to the Basic program. The wink.hexfile is the machine code of the program written in hexadecimal numbers. It is the .hexfile that is uploaded into the PIC chip.If the compiler encounters errors when compiling the PicBasic source code,it will issue a list of errors it has found and will terminate. The errors listedneed to be corrected in the source code (text file) before it will successfullycompile.Step 3: Installing the Firmware, or Programming thePIC ChipConnect the EPIC programming board to the computer’s printer port via aDB25 cable. If you are using CodeDesigner, launch the EPIC Programmerfrom the menu. The EPIC programming board must be connected to the parallel port and switched on before you start the software, or else the softwarewill issue an error message “EPIC Programmer not found.” Aside from theEPIC Windows software (epicwin.exe), which may be started manually inWindows or through the CodeDesigner software, there is also a DOS versionof the program called epic.exe.Robot Intelligence ... (I/O line logic) and events. The math and logic functions allow the microcontroller to mimic sophisticated logic and electronic circuits. Copyright © 2004 The McGrawHill Companies. Click here for terms of use. 1 PIC Robotics vi Contents Setting CodeDesigner Options 25 First Program 31 The EPIC Programming Board Software ... 3Figure 1.1PicBasic Pro and PicBasic software packages and manuals.Figure 1.2EPIC Programmer software and hardware. PIC Robotics A Beginner’s Guide to Robotics Projects Using the PICmicro John Iovine McGrawHill...