Lakeview Research LLC, 1997. — 289 p. — ISBN: 0-9650819-4-X.
This book is a hands-on guide to designing, building, and testing microcontroller-based devices. Microcontrollers, or single-chip computers, are ideal for projects that require computer intelligence, but don’t need the overhead of a complete personal computer with disk drives, keyboard, and full-screen display.
The author and publisher have used their best efforts in preparing this book and the materials in it. The author built and tested the electronic circuits described, ran and tested the computer programs presented, and reviewed all materials for completeness and accuracy. The author and publisher make no warranty about the circuit schematics, program listings, and other materials in this book. The author and publisher take no responsibility for any damages resulting from any use of the material in this book.
Chapter 1 Microcontroller BasicsWhat’s a Microcontroller?
A Little History.
New Tools.
Project Steps.
Chapter 2 Inside the 8052-BASICPossibilities.
Limits.
What You Need.The 8051 Family.
Elements of the 8052 and 8052-BASIC.
Chapter 3 Powering UpAbout the Circuit.
Circuit Construction.
Powering Up.
Basic Tests.
Simple Programs to Try.
Exiting Programs.
Chapter 4 Saving ProgramsNonvolatile 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.
Chapter 5 ProgrammingProgramming Basics.
BASIC-52 Bugs and Things to Watch Out For.
Finding Program Errors.
BASIC-52 Keywords by Function.
Quick Reference to BASIC.
Chapter 6 Inputs and OutputsThe Memory Map.
Uses for I/O Ports.
Adding Ports.
The 8255 Programmable Peripheral Interface.
Chapter 7 Switches and KeypadsSimple Switches.
Adding a Keypad.
Chapter 8 Displays.
Using LEDs.
7-segment Displays.
Displaying Messages.
Inside the Display Controller.
Mounting Displays in an Enclosure.
Chapter 9 Using Sensors to Detect and MeasureSensor Basics.
Choosing Sensors.
On/off Sensors.
Analog Sensors.
Sensor Examples.
Level Translating.
Choosing a Converter.
Chapter 10 Clocks and CalendarsBASIC-52’s Real-time Clock.
A Watchdog Timekeeper.
Chapter 11 Control CircuitsSwitching Power to a Load.
Controlling a Switch Matrix.
Op Amp with Programmable Gain.
Controlling a Stepper Motor.
Speed Control of a Continuous DC Motor.
Chapter 12 Wireless LinksInfrared Links.
Increasing the Distance.
Radio Links.
Chapter 13 Calling Assembly-language RoutinesAssembly-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.
Chapter 14 Running BASIC-52 from External MemoryReasons.
Copying BASIC.
System Requirements.
Storing BASIC-52 Programs.
Chapter 15 Related ProductsEnhanced BASIC.
BASIC Compilers.
Programming Environments.
Pc Boards.
BASIC-52 Source Code.
Appendix A Sources.
Books.BBS’s.
Product Vendors.
Appendix B Programs for Loading Files.
Appendix C Number Systems.
About Number Systems.
Kilobytes and Megabytes