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,86 MB
Nội dung
[...]... (2) 22pF 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# 276175 (1) 0.1�F capacitor RadioShack PN# 2721069 (8) Red LEDs RadioShack PN# 276208 (8) 470� resistors* RadioShack PN# 2701115 (1) 4.7k� resistor RadioShack PN# 2711126 (1) Voltage regulator (7805) RadioShack PN# 2761770... direct control of LCD modules, DTMF out, and X10 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 workarounds to using the peek and poke commands in the Pro version that... (2) Fourposition PC mounted switches RadioShack PN# 2751301 (1) 9V battery clip RadioShack PN# 270325 Available from RadioShack, Images SI Inc., Jameco Electronics, and JDR Microdevices (see Suppliers) *These resistors are also available in 16pin 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 toa 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 builtin 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 singlechip 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