Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 289 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
289
Dung lượng
30,76 MB
Nội dung
[...]... 1.2). (EPIC is a product and trademark of microEngineering Labs, Inc.) Robot Intelligence 3 Figure 1.1 PicBasic Pro and PicBasic software packages and manuals Figure 1.2 EPIC Programmer software and hardware PicBasic and PicBasic Pro Compilers The PicBasic and PicBasic Pro compilers both function in the same way. Saved program code (text file) is run through a compiler (either the PicBasic ... the Basic language. It is called PicBasic. (The PicBasic and PicBasic Pro compilers used to write PicBasic programs are products and trademarks of microEngineering Labs, Inc.) PicBasic is similar to the PBasic language used in programming the Basic Stamp series. Programming microcontrollers directly using the PicBasic (or PicBasic Pro) compiler offer two major advantages over the Basic... for a large variety of PIC microcontrollers EPIC Programmer The second item needed is the EPIC Programmer, also made by microEngineering Labs, Inc. The EPIC Programmer consists of software (EPIC) and a programming carrier board (hardware). The EPIC software package has two executable files, one for DOS and another version of the soft ware for Windows It is the EPIC hardware and software that takes the compiled .hex... projects and robotics. First is the compiler, either the PicBasic Pro or PicBasic compiler (see Fig. 1.1). The PicBasic Pro compiler from microEngineering Labs, Inc. has a suggested retail price of $249.95. The PicBasic compiler from microEngineering Labs, Inc. has a suggested retail price of $99.95. In addition to a compiler you need the EPIC programming... bers, running the PicBasic program. Uploading the machine code (.hex file) into the microcontroller is the job of the EPIC Programmer board and soft ware, which we will look at shortly The PicBasic Pro compiler is considerably more expensive than the standard PicBasic compiler. The Pro version offers an enhanced and richer basic command syntax than is available in the PicBasic compiler package. A... protection. Additional features and architectural details of the PIC 16F84 will be given as we continue Step 1: Writing Code (the Basic Program) Both the PicBasic and PicBasic Pro compilers are packaged with a free version of CodeDesigner software. CodeDesigner is an integrated development envi ronment (IDE) for writing and programming PIC microcontrollers CodeDesigner is an advanced text editor that is capable of calling and using both the PicBasic and PicBasic Pro compilers and the EPIC software... DB25 cable. If you are using CodeDesigner, launch the EPIC Programmer from the menu. The EPIC programming board must be connected to the par allel port and switched on before you start the software, or else the software will issue an error message “EPIC Programmer not found.” Aside from the EPIC Windows software (epicwin.exe), which may be started manually in Windows or through the CodeDesigner software, there is also a DOS version... keyboard. The software is then uploaded into the PIC microcontroller and is ready to be inserted into your cir cuit and go to work Ready, Steady, Go Subsequent chapters contain stepbystep instructions for installing the soft ware onto your hard drive and programming your first PICmicro chip Parts List PicBasic Pro compiler $249.95 PicBasic compiler 99.95 EPIC Programmer 59.95 Microcontroller (16F84)... in case it is needed in the future The PicBasic Pro program is now installed You may close the DOS window and store the 3.5in diskette Chapter 3 Installing the EPIC Software Installing the EPIC software from Windows is simple To install, run the install.bat file on the 3.5in EPIC diskette The install.bat file exe cutes the main selfextracting program that automatically creates a subdirec tory EPIC on your computer’s hard drive,... automatically opens a DOS window and starts the executable program on the EPIC diskette The executable program creates a new subdirectory on the com puter’s hard drive called EPIC It decompresses and copies all the necessary files into the EPIC subdirectory, as shown in Fig 3.4 If you just installed the EPIC program using Windows, skip over the next section, “Installing the EPIC Software, DOS Version” and continue reading at . class="bi x0 y0 w0 h0" alt="" PIC Robotics This page intentionally left blank. PIC Robotics A Beginner’s Guide to Robotics Projects Using the PICmicro John Iovine McGraw-Hill New York Chicago. memory), ROM (read-only memory), I/O (input/output) lines, serial and parallel ports, timers, and sometimes other built-in peripherals such as ana- log-to-digital (A/D) and digital-to-analog (D/A). microcontroller integrated cir- cuit. General features: RISC CPU 35 single-word instructions; operating speed dc, 10-MHz clock input; 1K program memory; 14-bit-wide instructions; 8-bit-wide data path;