ВУЗ: Не указан

Категория: Не указан

Дисциплина: Не указана

Добавлен: 15.06.2025

Просмотров: 2091

Скачиваний: 0

ВНИМАНИЕ! Если данный файл нарушает Ваши авторские права, то обязательно сообщите нам.

Chapter 15

Elimination of the need to use line numbers at all.

Automatic stripping of comments, to save memory and execution time in uploaded programs.

On-line help for BASIC-52.

Debugging tools, such as setting of breakpoints or watch variables for program testing.

Conversion of BASIC-52 programs to hex files for EPROM programming.

Screening of variable names for duplicates or embedded keywords.

Pc Boards

If you’d rather not build your own 8052-BASIC system from scratch, a variety of sources are ready to help here as well, with fabricated pc boards ready for use with the 8052-BASIC chip. The boards contain all of the components required to get an 8052-BASIC system up and running. Most come with complete schematics, to make it easy to add to the included circuits. A few boards are available as kits or bare boards, if you’d rather build your own.

I’ll describe just a few of the available products here; see Appendix A for a more complete listing of sources.

Figure 15-2. Prologic’s BASCOM1 is available as a low-cost bare pc board with an instruction manual for construction and use.

248

The Microcontroller Idea Book


Related Products

Figure 15-3. Blue Earth’s Micro440 board has BASIC-52 and a monitor program in a tiny package.

Micromint offers a variety of 8052-BASIC boards and other products. Both the BCC52 and RTC52 are single-board systems that can also serve as the base of an expanded system. The BCC52 uses edge connectors and a backplane, while the RTC52 is a stackable design. A variety of expansion boards are available, including interfaces to displays, keypads, relays, infrared control, and A/D converters. The BRUTE-52 is a single board with many expansion options on-board.

Micromint’s Domino is a complete Basic-52 system in a 20-pin encapsulated package that’s about the size and shape of a domino. It has a surface-mount 80C52-BASIC chip, 32 kilobytes each of RAM and EEPROM, and twelve I/O pins, two of which may be analog inputs. The Domino’s BASIC-52 interpreter adds functions for measuring frequency and period and for reading the analog inputs.

Prologic Designs offers an inexpensive bare pc board (Figure 15-2) and detailed manual for 8052-BASIC systems, for those who prefer building their own.

Blue Earth Research’s Micro-440e is a complete system on a tiny pc board, just 1.9" x 2.25" (Figure 15-3). The system uses a surface-mount 83C51FB chip with both Blue Earth’s version of BASIC-52 and a monitor program in ROM. A case and expansion boards are also available. The Micro-485 adds an analog-to-digital converter, clock and calendar, and an RS-485 interface for networking.

The Microcontroller Idea Book

249

Chapter 15

To speed up program execution, you can use Dallas Semiconductor’s DS80C520 high-speed microcontrollers, which are compatible with the 8051 family. MDL Labs and Photronics Research offer variations of BASIC-52 designed for use with these chips.

BASIC-52 Source Code

If you’re interested in seeing the source code for the BASIC-52 interpreter, look for it on Intel’s or Philips’ BBS or on the Internet (Appendix A). To modify the code, you’ll need Intel’s ASM51 or a compatible 8051 assembler.

250

The Microcontroller Idea Book

Sources

Appendix A

Sources

This Appendix lists a variety of sources to help you in your 8052-BASIC projects, including books, on-line BBS’s, and companies who offer products related to the topics in this book.

Books

Here is a selection of books about BASIC-52, the 8051/2 microcontroller family, and related topics:

BASIC-52 Essentials

These are the essential hardware and software manuals for working with the 8052-BASIC. You’ll need either Intel’s or Systronix’s programming manual, and a data book from Intel or another 8052 vendor. See the Product Vendors section for addresses and phone numbers.

BASIC-52 Programming

Systronix $20 postpaid

Complete reference to the BASIC-52 programming language. Includes many program examples and handy back-cover index.

The Microcontroller Idea Book

251

Appendix A

BASIC-52 User’s Manual (Intel #270010-004 $15

Complete reference to the BASIC-52 programming language. Includes some circuit schematics.

Embedded Microcontrollers Handbook (Intel) $22.95

Intel’s handbook, or data book, has hardware details and an assembly-languuage reference for the 8052 and 80C52 (and much more), but nothing specifically about the 8052BASIC chip. Intel updates the data books yearly, so the exact title and price may vary. Ask for the data book that covers 8-bit embedded controllers. Philips, Siemens, and other manufacturers also publish data books for their 8052 and 80C52 chips.

8051/2 Microcontrollers

These are some additional books about the 8051 family of microcontrollers. The Product Vendors list has addresses and phone numbers for many of the publishers. Local bookstores can order the others, which are from major publishers.

Assembly Language Programming (L.S. Electronic Systems, 190 pages, $33.00). For the 8051 family.

C and the 8051: Programming and Multitasking, by Thomas W. Schultz (Prentice Hall, 1993, $52). Discusses using an operating system to handle multiple tasks. Examples include solenoid cyclers, a pulse generator, envelope detector, and motor speed control, using the C programming language.

The 8051 Family of Microcontrollers by Richard H. Barnett (Prentice Hall, 1995, 164 pages, $49)

The 8051 Microcontroller, 2nd edition, I. Scott MacKenzie (Macmillan, 1994, 356 pages, $58). Includes schematics for a single-board computer, assembly-language source code for a monitor program, and interfaces to a keypad, LEDs, and loudspeaker.

The 8051 Microcontroller: Architecture, Programming, and Applications, Kenneth J. Ayala (West Publishing Company, 1991, 241 pages, $49). Includes disk with assembler and simulator.

The 8051 Microcontroller: Hardware, Software, and Interfacing, James W. Stewart (Regents/Prentice Hall, 1993, $27.50, 273 pages). Includes many interfacing examples, such as switches, solenoids, relays, shaft encoders, displays, motors, and A/D converters, and a chapter on top-down design method.

252

The Microcontroller Idea Book


Sources

Programming and Interfacing the 8051 Microcontroller by Sencer Yeralan and Ashutosh Ahluwalia (Addison-Wesley, 1995, $40, 328 pages)

Programming and Interfacing with Microcontrollers–Experimenting with the 8031 Family of Microcontrollers (Rigel Corporation).

Data Books

Data books are where to look for specific, detailed information about a particular IC. They’re also a good source for application examples. National Semiconductor has a good selection of books covering most types of integrated circuits. The exact titles and prices change from year to year, but this is a typical selection:

CMOS Logic (including HCMOS, HCTMOS, 4000 series, 74C series) TTL Logic (including LSTTL)

Linear Devices (A/D, D/A, temperature sensors, voltage references)

Op Amps

Power ICs (voltage regulators, peripheral drivers)

You can request data books directly from the manufacturers. Digi-Key and other component vendors also offer a selection. For a small charge, many suppliers will include data sheets for individual components that you order.

Related Topics

These are some other books that you may find useful in designing, building, and working with microcontroller circuits:

The Art of Electronics, second edition by Paul Horowitz and Winfield Hill (Cambridge University Press, 1989, $59.95). A complete and readable reference on electronic circuits of all types.

Gordon McComb’s Tips and Techniques for the Electronics Hobbyist by Gordon McComb (TAB-McGraw Hill, 1991). A good introduction to building, testing, and understanding electronic circuits.

Making Printed Circuit Boards by Jan Axelson (TAB-McGraw Hill, 1993, $19.95). How to design and make pc boards, with a chapter on wire-wrapping and other construction methods.

The Microcontroller Idea Book

253

Appendix A

BBS’s

Use your personal computer and communications software to explore these BBS’s (on-line bulletin boards), which are good sources for files relating to the 8051/2, including the 8052-BASIC.

BBS Name

Phone Number

Available Files

Circuit Cellar

203-871-1988

8052 programming tools, programs

Intel Applications

503-264-7999

BASIC-52 source code

Philips Semiconductor

1-800-451-6644

BASIC-52 source code

Systronix

801-487-2778

HEX2RAM.BAS, HEXLOAD.BAS

Internet

Many of the vendors listed here now have information available on the World Wide Web. Lakeview Research’s Web site includes a BASIC-52 page with links to product vendors and updates to the information in this book. You can also save yourself some typing by downloading a file containing all of the code listings in the book.

You can find Lakeview Research on the Internet at: http://www.lvr.com

254

The Microcontroller Idea Book


Sources

Product Vendors

The following companies offer products related to microcontroller applications. Many are mentioned as sources for particular products in this book.

Airpax Company

stepper motors

604 West Johnson Avenue

P.O. Box 590

Chesire, CT 06410

203-271-6000

Allegro Microsystems

motor-control chips

115 Northeast Cutoff, Box 15036

Worcester, MA 01615

508-853-5000

All Electronics Corp.

surplus components

P.O. Box 567

Van Nuys, CA 91408-0567

1-800-826-5432

Allen Systems

8051 assembler

2346 Brandon Road

Columbus, OH 43221

614-488-7122

Anywhere Engineering

8051 assembler

920 Eighth Street

Boulder, CO 80302

303-442-0556

Amperex/Philips Sales Corporation

LCD modules, manual (publication #238)

Providence Pike

Slatersville, RI 02876

401-762-9000

Basicon, Inc.

80C52-BASIC chip, systems, related products

14273 NW Science Park Drive

Portland, OR 97229

503-626-1012

The Microcontroller Idea Book

255


Appendix A

Binary Technology

BASIC compiler, 8052-BASIC systems,

PO Box 67

related products

Meriden, NH 03770

603-469-3232

Blue Earth Research

8052-BASIC systems, related products

165 W. Lind Ct.

Mankato, MN 56001

507-387-4001

Blue Ridge Micros

8052-BASIC board

2505 Plymouth Road

Johnson City, TN 37601

615-335-6696

Dallas Semiconductor

NV RAM, real-time clocks

4350 South Beltwood Parkway

Dallas, TX 75244-3292

214-450-0400

1-800-336-6933

Digi-Key Corporation

electronic components

701 Brooks Ave. South

P.O. Box 677

Thief River Falls, MN 56701-0677

1-800-344-4539

Dunfield Development Systems

8051 assembler

P.O. Box 31044

Nepean, Ontario K2B 8S8

Canada

613-256-5820

Edmund Scientific Company

lenses, optical components, other scientific

101 E. Gloucester Pike

equipment

Barrington, N.J. 08007-1380

609-573-6250

256

The Microcontroller Idea Book