The Microcontroller Idea Book is a hands-on guide that presents practical designs for use in data loggers, controllers, and other small-computer applications. Microcontrollers, or single-chip computers, are ideal for projects that require computer intelligence but don't need the disk drives, keyboard, and full-screen display of a desktop computer
ABOUT THE 8052-BASIC
Example circuits and programs in the book are based on the popular 8052-BASIC microcontroller, whose on-chip BASIC programming language makes it easy to write, run, and test your programs. With over 100 commands, instructions, and operators, the BASIC-52 interpreter can do much more than other single-chip BASICs. Its abilities include floating-point math, string handling, and special commands for storing programs in EPROM, EEPROM, or battery-backed RAM.
You can use any computer with a serial port as a host system for writing, uploading, running, debugging, and storing programs as you develop a project. When project development is complete, you can disconnect the host computer, and the 8052-BASIC will run your program automatically on boot-up. You can also use an 8052-BASIC circuit as a development system for uploading and debugging assembled or compiled programs. As a member of the 8051 microcontroller family, the 8052-BASIC uses a standard, popular architecture.
Microcontroller Basics: What is 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-52s 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.