A beginners guide to robotic

289 672 0
A beginners guide to robotic

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... (2) 22­pF capacitors 0.10 each Available from Images SI Inc. (see Suppliers at end of book) Additional components are required in Chap. 6: (1) Solderless breadboard RadioShack PN# 276­175 (1) 0.1­�F capacitor RadioShack PN# 272­1069 (8) Red LEDs RadioShack PN# 276­208 (8) 470­� resistors* RadioShack PN# 270­1115 (1) 4.7­k� resistor RadioShack PN# 271­1126 (1) Voltage regulator (7805) RadioShack PN# 276­1770... direct control of LCD modules, DTMF out, and X­10 commands, to name a few While the PicBasic Pro is a more sophisticated package, the compiler does not handle two of my favorite Basic commands, peek and poke. Although the commands are listed as “functional” in the Pro manual, it is emphasized that “PEEK and POKE should never be used in a PicBasic Pro program.” There are work­arounds to using the peek and poke commands in the Pro version that... (2) Four­position PC mounted switches RadioShack PN# 275­1301 (1) 9­V battery clip RadioShack PN# 270­325 Available  from  RadioShack,  Images  SI  Inc.,  Jameco  Electronics,  and  JDR Microdevices (see Suppliers) *These resistors are also available in 16­pin dip package This page intentionally left blank Chapter 2 Installing the Compiler To compile  your  PicBasic  programs  (text  files)  into  something  that  can  be uploaded into the PIC microcontrollers and run,... Inc.  has  a suggested  retail price  of  $99.95.  In  addition  to a compiler  you  need  the  EPIC  programming board  and  software;  this  package  sells  for  $59.95  (see  Fig.  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... Supplemental—Applications Directory It would be a good idea at this time if we created another subdirectory where we can store all our PicBasic application programs This will keep the PBC (or PBP)  and  EPIC  directories  clean, neat, and  uncluttered  with  programs  and program revisions From Windows Explorer create an Applics subdirectory on your computer’s hard drive Chapter 4 CodeDesigner In  this  chapter ... embedded in a hardware device that can read and execute by the device but cannot be modified. So when our program (software) is embedded (uploaded) into the microcontroller, it may be referred to as firmware. Other phrases may include the term firmware instead of software, such as “upload the firmware” or “once the firmware has been installed into the device.” Consumables Consumables  are  the  electronic ... parallel ports, timers, and sometimes other built­in peripherals such as ana­ log to digital  (A/ D)  and  digital to analog  (D /A)   converters.  The  key  feature, however, is the microcontroller’s capability of uploading, storing, and running a program Why Use a Microcontroller? Being inexpensive single­chip computers, microcontrollers are easy to embed into larger electronic circuit designs. Their ability to store and run unique pro­ grams  makes  them  extremely ... 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 few of the addition­ al commands that can be found in the Pro version allow the use of interrupts,... DOS  commands  are typed in on the command line, and then the Return key is hit to execute the command The DOS instructions are provided to help the reader and serve as a sup­ plement  to the  installation  directions  provided  with  the  software  packages The instructions are not meant as a DOS tutorial More information on DOS commands can be found in any number of DOS manuals Here is a list of DOS... 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 . All trademarks are trademarks of their respective owners. Rather than put a trade- mark symbol after every occurrence of a trademarked name, we use names in an edi- torial fashion only, and to. such as ana- log -to- digital (A/ D) and digital -to- analog (D /A) converters. The key feature, however, is the microcontroller’s capability of uploading, storing, and running a program. Why Use a. wink.bas The compiler reads the text file and compiles two additional files, an .asm (assembly language) and a .hex (hexadecimal) file. The wink.asm file is the assembly language equivalent to

Ngày đăng: 22/05/2014, 18:13

Từ khóa liên quan

Mục lục

  • TeamLiB

  • Cover

  • Contents

  • Preface

  • Chapter 1. Robot Intelligence

    • What Is a Microcontroller?

    • Why Use a Microcontroller?

    • Designer Computers So Many Microcontrollers

    • The Compiler

    • PIC Programming Overview

    • Software and Hardware

    • PicBasic and PicBasic Pro Compilers

    • EPIC Programmer

    • Firmware

    • Consumables

    • 16F84 PIC Microcontroller

    • Step 1: Writing Code (the Basic Program)

    • Step 2: Using the Compiler

    • Step 3: Installing the Firmware, or Programming the PIC Chip

    • Ready, Steady, Go

    • Parts List

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan