Circuits, Programs,
& Applications featuring the 8052 BASIC Microcontroller
(8052, member of Intel 8051 microcontroller family)
The Microcontroller Idea Book by Jan Axelson focusses
on the 8052 BASIC microcontroller. It takes the reader
who may essentially have no knowledge of programming through
BASIC while offering considerable insight into the design
of simple embedded systems.
It is a hands on guide to designing, building and testing
microcontroller based devices. The ideas and applications
presented here are not limited to the 8052-BASIC. If the
reader is used to working on a different chip, you can
adapt the circuits and programs can be adapted to it.
The schematics and programs listings in this book include
comments and explanations to help apply the ideas irrespective
of whether one is using the 8052 BASIC microcontroller.
It is not just a textbook that presents information, but
gives details of how to apply it. With the collection
of input / output circuits provided, it helps to connect
to the outside world and have it all work properly.
Both, the hardware and the software aspects have been
epitomized as microcontroller projects involving both
circuit design and programming.
Some of the features of the book are:
- Complete circuit schematics and parts list - so one can easily build the circuits
oneself.
- Design theory - for example, why use this particular component or modify the circuit shown.
- Example program listings - for easy testing and use of the circuits.
- Construction and debugging tips
- to help get the circuits up and running with no
problems.
- How to add sensors, relays, displays, clock/calenders,
keypads, wireless links and more.
Table of Contents in The Microcontroller Idea Book
- Microcontroller Basics:
What's a Microcontroller?
A Little History
New Tools
Project Steps
- Inside the 8052-BASIC:
Possibilities
Limits, What You Need
The 8051 Family
Elements of the 8052 and 8052-BASIC
- Powering Up:
About the Circuit
Circuit Construction
Powering Up
Basic tests
Simple Programs to Try
Exiting Programs
- Saving Programs:
Nonvolatile Memory Options
Adding NVRAM or EEPROM
Using the Programming Commands
Adding Bootup Options
Erasing NV Memory
Adding more NVRAM or EEPROM
Adding EPROM
EPROM-programming Circuits
Power Supplies for Programming
Storing Programs on Disk
- Programming:
Programming Basics
BASIC-52 Bugs and Things to Watch Out For
Finding Program Errors
BASIC-52 Keywords by Function
Quick Reference to BASIC-52
- Inputs and Outputs:
The Memory Map
Uses for I/O Ports
Adding Ports
The 8255 Programmable Peripheral Interface
- Switches and Keypads:
Simple Switches
Adding a Keypad
- Displays:
Using LEDs
7-segment Displays
Displaying Messages
Inside the Display Controller
Mounting Displays in an Enclosure.
- Using Sensors to Detect and Measure:
Sensor Basics
Choosing Sensors
On/off Sensors
Analog Sensors
Sensor Examples
Level Translating
Choosing a Converter
- Clocks and Calendars:
BASIC-52's Real-time Clock
A Watchdog Timekeeper
- Control Circuits:
Switching Power to a Load
Controlling a Switch Matrix
Op Amp with Programmable Gain
Controlling a Stepper Motor
Speed Control of a Continuous DC Motor
- Wireless Links:
Infrared Links
Increasing the Distance, Radio Links.
- Calling Assembly-language Routines:
Assembly-language Basics
What You Need
Loading a Routine
File Formats for Assembly-language Routines
Assembling a Program, Uploading a Program
Example: Creating a Sine Wave
Avoiding Program Crashes
Interrupts
Adding Custom Commands and Instructions
A General-purpose EPROM Programmer
- Running BASIC-52 from External Memory:
Reasons
Copying BASIC-52
System Requirements
Storing BASIC-52 Programs
- Related Products:
Enhanced BASIC-52
BASIC compilers
Programming Environments
Pc Boards
BASIC-52 Source Code
- Appendices:
A. Sources: Books, BBS's, Product Vendors.
B. Programs for Loading Files.
C. Number Systems: About Number
Systems, Kilobytes and Megabytes. |