| |
| |
Preface | |
| |
| |
Microcontroller | |
| |
| |
What is a Microcontroller | |
| |
| |
Why Use a Microcontroller | |
| |
| |
The Future of Electronics Is Here--It's Microcontrollers | |
| |
| |
Designer Computers | |
| |
| |
The PIC Chip | |
| |
| |
Better than Any Stamp | |
| |
| |
PIC Programming Overview | |
| |
| |
Ready, Steady, Go | |
| |
| |
Parts List | |
| |
| |
Software Installation (Compiler and Programmer) | |
| |
| |
Installing the PICBasic Compiler Software | |
| |
| |
Installing the EPIC Software | |
| |
| |
PIC Applications Directory | |
| |
| |
Path--The Final DOS Commands | |
| |
| |
First Basic Program | |
| |
| |
Programming the PIC Chip | |
| |
| |
Troubleshooting EPIC Software: A Few Alternatives | |
| |
| |
Testing the PIC Microcontroller | |
| |
| |
The Solderless Breadboard | |
| |
| |
Three Schematics, One Circuit | |
| |
| |
Wink | |
| |
| |
Troubleshooting the Circuit | |
| |
| |
Chapter Review | |
| |
| |
Parts List | |
| |
| |
PIC 16F84 Microcontroller | |
| |
| |
Harvard Architecture and Memory-Mapped I/O | |
| |
| |
Binary Fundamentals | |
| |
| |
Registers and Ports | |
| |
| |
Accessing the Ports for Output | |
| |
| |
Electrical Binary, TTL, and CMOS | |
| |
| |
Counting Program | |
| |
| |
Counting Binary Progression | |
| |
| |
Basic High and Low Commands | |
| |
| |
Programming Review | |
| |
| |
Reading Input Signals | |
| |
| |
Reading I/O Lines | |
| |
| |
The Button Command | |
| |
| |
Dynamic Changes | |
| |
| |
Program 4.2 Features | |
| |
| |
The Variables Used in Button | |
| |
| |
Multiple Statements--Single Line | |
| |
| |
Peek | |
| |
| |
New Features | |
| |
| |
Basic Input and Output Commands | |
| |
| |
ZIF Adapter Sockets | |
| |
| |
ZIF Socket | |
| |
| |
AC Adapter | |
| |
| |
Parts List | |
| |
| |
PICBasic Language Reference | |
| |
| |
Branch | |
| |
| |
Button | |
| |
| |
Call | |
| |
| |
Eeprom | |
| |
| |
End | |
| |
| |
For..Next | |
| |
| |
Gosub | |
| |
| |
Gosub nesting | |
| |
| |
Goto | |
| |
| |
High | |
| |
| |
I2cin | |
| |
| |
I2cout | |
| |
| |
If..Then | |
| |
| |
Input | |
| |
| |
Let | |
| |
| |
Lookdown | |
| |
| |
Lookup | |
| |
| |
Low | |
| |
| |
Nap | |
| |
| |
Output | |
| |
| |
Pause | |
| |
| |
Peek | |
| |
| |
Poke | |
| |
| |
Pot | |
| |
| |
Pulsin | |
| |
| |
Pulsout | |
| |
| |
Pwm | |
| |
| |
Random | |
| |
| |
Read | |
| |
| |
Return | |
| |
| |
Reverse | |
| |
| |
Serin | |
| |
| |
Serout | |
| |
| |
Sleep | |
| |
| |
Sound | |
| |
| |
Toggle | |
| |
| |
Write | |
| |
| |
Characteristics of the 16F84 Microcontroller | |
| |
| |
Current Maximums for I/O Port(s) | |
| |
| |
Clock Oscillators | |
| |
| |
Reset | |
| |
| |
PIC Harvard Architecture | |
| |
| |
Register Map | |
| |
| |
Speech Synthesizer | |
| |
| |
Speech Chip | |
| |
| |
A Little on Linguistics | |
| |
| |
Interfacing to the SPO-256 | |
| |
| |
Mode Select | |
| |
| |
The Circuit | |
| |
| |
The Program | |
| |
| |
Program Features | |
| |
| |
Parts List | |
| |
| |
Serial Communication and Creating I/O Lines | |
| |
| |
Creating New I/O Ports | |
| |
| |
Serial Communication | |
| |
| |
Output First | |
| |
| |
Basic Serial | |
| |
| |
Clear Pin | |
| |
| |
The Programs | |
| |
| |
Bit Shift Correcting | |
| |
| |
Programming Challenge (Simple) | |
| |
| |
Programming Challenge (Not Simple) | |
| |
| |
Input I/O | |
| |
| |
Parts List | |
| |
| |
LCD Alphanumeric Display | |
| |
| |
Error Detection Algorithms | |
| |
| |
Parity | |
| |
| |
Serial Formats | |
| |
| |
Positioning the Cursor | |
| |
| |
Off-Screen Memory | |
| |
| |
Parts List | |
| |
| |
Sensors: Resistive, Neural, and Fuzzy Logic | |
| |
| |
Reading Resistive Sensors | |
| |
| |
R/C Values | |
| |
| |
Scale | |
| |
| |
Pin Exceptions | |
| |
| |
Resistive Sensors | |
| |
| |
Test Program | |
| |
| |
Fuzzy Logic and Neural Sensors | |
| |
| |
Fuzzy Logic Light Tracker | |
| |
| |
Program 10.2 | |
| |
| |
Fuzzy Output | |
| |
| |
Program 10.3 | |
| |
| |
Parts List | |
| |
| |
DC Motor Control | |
| |
| |
The Transistor | |
| |
| |
First Method | |
| |
| |
Bidirectional Method | |
| |
| |
Diodes | |
| |
| |
Parts List | |
| |
| |
Stepper Motor Control | |
| |
| |
Stepper Motor Construction and Operation | |
| |
| |
Real-World Motors | |
| |
| |
First Stepper Circuit | |
| |
| |
Second Basic Program | |
| |
| |
Half-Stepping | |
| |
| |
The ti Delay Variable | |
| |
| |
Troubleshooting | |
| |
| |
UCN 5804 Dedicated Stepper Motor ICs | |
| |
| |
Parts List | |
| |
| |
Servomotor Control | |
| |
| |
Extending Servomotor Range | |
| |
| |
Manual Servo Control | |
| |
| |
Multiple Servomotors | |
| |
| |
Timing and Servomotors | |
| |
| |
Parts List | |
| |
| |
Analog-to-Digital (A/D) Converters | |
| |
| |
Analog Signal | |
| |
| |
Digital Equivalents | |
| |
| |
A/D Converters | |
| |
| |
Setting the Reference Voltage | |
| |
| |
Voltage Range and Resolution | |
| |
| |
Interpreting the Results | |
| |
| |
Serial Chip Control | |
| |
| |
Serial Chip Sequence | |
| |
| |
Toxic Gas Sensor | |
| |
| |
Parts List | |
| |
| |
Controlling AC Appliances | |
| |
| |
Inductive and Resistive Loads | |
| |
| |
Circuit Construction | |
| |
| |
Test Circuit | |
| |
| |
Smart Control | |
| |
| |
Electronic Noses | |
| |
| |
Parts List | |
| |
| |
Appendix A | |
| |
| |
Hexadecimal Numbers | |
| |
| |
Program Answers | |
| |
| |
Suppliers Index | |
| |
| |
Index | |