Single and Multi-Chip Microcontroller Interfacing teaches the principles of designing and programming microcontrollers that will be used in a wide variety of electronic and mechanical devices, machines and systems. Applications are wide, ranging from controlling an automobile to measuring, controlling and displaying your home's temperature. The book utilizes the new Motorola 68Hc12 microcontroller as the primary example throughout. This new microprocessor is the latest development in mid-level 16-bit microcontrollers that will be used world wide due to its low cost and ease of programming. The book features the most popular programming languages--C and C++--in describing basic and advanced techniques. The 68Hc12 will replace many of the existing 8-bit microprocessors currently used in applications and teaching.
- First book available on the new Motorola 68HC12 microcontroller
- Thorough discussion of C and C++ programming of I/O ports and synchronization mechanisms
- Concrete discussion of applications of the popular, readily available, inexpensive and well-designed 68HC12
- Many examples and over 200 problems at the end of each chapters
- Separate sections describing object-oriented interfacing
This book is ideal for professional engineers as well as students in university courses in micro-processors/microcontrollers in departments of electrical engineering, computer engineering or computer science; It is also appropriate for advanced technical school courses. The book will also be a valuable professional reference for electrical engineers and mechanical engineers in industry working with the design of electronic and electromechanical devices and systems
Inhaltsverzeichnis
1;Cover ;1 2;Contents;8 3;Preface;14 4;List of Figures;18 5;List of Tables;22 6;Acknowledgments;23 7;About the Author;7 8;Chapter 1. Microcomputer Architecture;24 8.1;1.1 An Introduction to the Microcomputer;24 8.2;1.2 The 6812 Instruction Set;34 8.3;1.3 Assembly-Language Directives;51 8.4;1.4 Organization of 6812 Microcontrollers;54 8.5;1.5 Conclusions;59 8.6;Problems;61 9;Chapter 2. Programming Microcomputers;68 9.1;2.1 Introduction to C;69 9.2;2.2 Data Structures;78 9.3;2.3 Writing Clear C Programs;89 9.4;2.4 Conclusions;107 9.5;Problems;109 10;Chapter 3. Bus Hardware and Signals;116 10.1;3.1 Digital Hardware;117 10.2;3.2 Address and Control Signals in 6812 Microcontrollers;127 10.3;3.3 Conclusions;136 10.4;Problems ;138 11;Chapter 4. Parallel and Serial Input/Output;144 11.1;4.1 I/O Devices and Ports;145 11.2;4.2 6812 Parallel Ports;161 11.3;4.3 Input/Output Software;169 11.4;4.4 Input/Output Indirection;185 11.5;4.5 A Designer's Selection of I/O Ports and Software;204 11.6;4.6 Conclusions;206 11.7;Problems;208 12;Chapter 5. Interrupts and Alternatives;216 12.1;5.1 Programmed Synchronization;219 12.2;5.2 Interrupt Synchronization;233 12.3;5.3 Time-Sharing;267 12.4;5.4 Fast Synchronization Mechanisms;281 12.5;5.5 Conclusions;289 12.6;Problems;292 13;Chapter 6. System Control;300 13.1;6.1 6812 Chip Modes;300 13.2;6.2 6812 Memory Map Control;303 13.3;6.3 EEPROM and Flash Memory Programming;309 13.4;6.4 MC68HC812A4 Timing Control;312 13.5;6.5 An External Memory for the MC68HC812A4;313 13.6;6.6 The 6812 Background Debug Module;318 13.7;6.7 6812 Reset Handler;322 13.8;6.8 Conclusions;324 13.9;Problems;325 14;Chapter 7. Analog Interfacing;330 14.1;7.1 Input and Output Transducers;332 14.2;7.2 Basic Analog Processing Components;337 14.3;7.3 OP AMP and Analog Switch Signal Conditioning;349 14.4;7.4 Converters;357 14.5;7.5 Data Acquisition Systems;367 14.6;7.6 Conclusions;375 14.7;Problems;377 15;Chapter 8. Counters and Timers;384 15.1;8.1 The MC68HC812A4 Counter/Timer Su
bsystem;385 15.2;8.2 Signal Generation;386 15.3;8.3 Frequency and Period Measurement;404 15.4;8.4 Conclusions;411 15.5;Problems;413 16;Chapter 9. Communications Systems;420 16.1;9.1 Communications Principles;421 16.2;9.2 Signal Transmission;424 16.3;9.3 UART Link Protocol;431 16.4;9.4 Other Protocols;450 16.5;9.5 Conclusions;459 16.6;Problems;461 17;Chapter 10. Display and Storage Systems;468 17.1;10.1 Display Systems;469 17.2;10.2 Storage Systems;478 17.3;10.3 Conclusions;496 17.4;Problems;498 18;Index;506