Famed author Jack Ganssle has selected the very best embedded systems design material from the Newnes portfolio and compiled into this volume. The result is a book covering the gamut of embedded design-from hardware to software to integrated embedded systems-with a strong pragmatic emphasis. In addition to specific design techniques and practices, this book also discusses various approaches to solving embedded design problems and how to successfully apply theory to actual design tasks. The material has been selected for its timelessness as well as for its relevance to contemporary embedded design issues. This book will be an essential working reference for anyone involved in embedded system design! Table of Contents:Chapter 1. Motors - Stuart BallChapter 2. Testing - Arnold S. BergerChapter 3. System-Level Design - Keith E. CurtisChapter 4. Some Example Sensor, Actuator and Control Applications and Circuits (Hard Tasks) - Lewin ARW EdwardsChapter 5. Installing and Using a Version Control System - Chris Keydel and Olaf MedingChapter 6. Embedded State Machine Implementation - Martin GomezChapter 7. Firmware Musings - Jack GanssleChapter 8. Hardware Musings - Jack GanssleChapter 9. Closed Loop Controls, Rabbits, and Hounds - John M. HollandChapter 10. Application Examples David J. Katz and Rick GentileChapter 11. Analog I/Os - Jean LaBrosseChapter 12. Optimizing DSP Software - Robert OshanaChapter 13. Embedded Processors - Peter Wilson*Hand-picked content selected by embedded systems luminary Jack Ganssle*Real-world best design practices including chapters on FPGAs, DSPs, and microcontrollers*Covers both hardware and software aspects of embedded systems
Inhaltsverzeichnis
1;Front Cover;1 2;Embedded Systems;4 3;Copyright Page;5 4;Table of Contents;6 5;About the Editor;10 6;About the Authors;12 7;Preface;16 8;Chapter 1: Motors;20 8.1;1.1 Stepper Motors;21 8.2;1.2 DC Motors;40 8.3;1.3 Brushless DC Motors;43 8.4;1.4 Tradeoffs Between Motors;56 8.5;1.5 Motor Torque;59 9;Chapter 2: Testing;66 9.1;2.1 Why Test?;67 9.2;2.2 When to Test?;69 9.3;2.3 Which Tests?;71 9.4;2.4 When to Stop?;72 9.5;2.5 Choosing Test Cases;73 9.6;2.6 Testing Embedded Software;76 9.7;2.7 Performance Testing;84 9.8;2.8 Maintenance and Testing;89 9.9;Additional Reading;90 9.10;Summary;91 9.11;References;91 10;Chapter 3: System-Level Design;94 10.1;3.1 Dissecting the Requirements Document;96 10.2;3.2 Communications;112 10.3;3.3 System Priorities;128 10.4;3.4 Error Handling;135 10.5;3.5 System-Level Design;138 11;Chapter 4: Some Example Sensor, Actuator, and Control Applications and Circuits (Hard Tasks);176 11.1;4.1 Introduction;177 11.2;4.2 E2BUS PC-Host Interface;179 11.3;4.3 Host-to-Module Communications Protocol;184 11.4;4.4 Speed-Controlled DC Motor with Tach Feedback and Thermal Cutoff;203 11.5;4.5 Two-Axis Attitude Sensor Using MEMS Accelerometer;212 11.6;4.6 RS-422Compatible Indicator Panel;221 12;Chapter 5: Installing and Using a Version Control System;244 12.1;5.1 Introduction;245 12.2;5.2 The Power and Elegance of Simplicity;246 12.3;5.3 Version Control;247 12.4;5.4 Typical Symptoms of Not (Fully) Utilizing a Version Control System;247 12.5;5.5 Simple Version Control Systems;248 12.6;5.6 Advanced Version Control Systems;248 12.7;5.7 What Files to Put Under Version Control;249 12.8;5.8 Sharing of Files and the Version Control Client;249 12.9;5.9 Integrated Development Environment Issues;250 12.10;5.10 Graphical User Interface (GUI) Issues;251 12.11;5.11 Common Source Code Control Specification;251 12.12;5.12 World Wide Web Browser Interface or Java Version Control Client;252 12.13;5.13 Bug Tracking;260 12.14;5.14 Non-Configuration Management Tools;262 12.15;5.
15 Closing Comments;263 12.16;Suggested Reading, References, and Resources;264 13;Chapter 6: Embedded State Machine Implementation;266 13.1;6.1 State Machines;267 13.2;6.2 An Example;268 13.3;6.3 Implementation;270 13.4;6.4 Testing;275 13.5;6.5 Crank It;275 13.6;References;276 14;Chapter 7: Firmware Musings;278 14.1;7.1 Hacking Peripheral Drivers;279 14.2;7.2 Selecting Stack Size;282 14.3;7.3 The Curse of Malloc( );284 14.4;7.4 Banking;285 14.5;7.5 Logical to Physical;286 14.6;7.6 Hardware Issues;287 14.7;7.7 The Software;288 14.8;7.8 Predicting ROM Requirements;290 14.9;7.9 RAM Diagnostics;290 14.10;7.10 Inverting Bits;292 14.11;7.11 Noise Issues;294 14.12;7.12 A Few Notes on Software Prototyping;297 15;Chapter 8: Hardware Musings;302 15.1;8.1 Debuggable Designs;303 15.2;8.2 Test Points Galore;303 15.3;8.3 Resistors;305 15.4;8.4 Unused Inputs;308 15.5;8.5 Clocks;310 15.6;8.6 Reset;312 15.7;8.7 Small CPUs;314 15.8;8.8 Watchdog Timers;318 15.9;8.9 Making PCBs;321 15.10;8.10 Changing PCBs;323 15.11;8.11 Planning;324 16;Chapter 9: Closed Loop Controls, Rabbits and Hounds;326 16.1;9.1 Basic PID Controls;330 16.2;9.2 Predictive Controls;334 16.3;9.3 Combined Reactive and Predictive Controls;336 16.4;9.4 Various PID Enhancements;337 16.5;9.5 Robot Drive Controls;341 16.6;9.6 Tuning Controls;345 16.7;9.7 Rabbits Chasing Rabbits;347 16.8;9.8 Conclusions;347 17;Chapter 10: Application Examples;350 17.1;10.1 Introduction;351 17.2;10.2 Automotive Driver Assistance;351 17.3;10.3 Baseline JPEG Compression Overview;366 17.4;10.4 MPEG-2 Encoding;374 17.5;10.5 Code Optimization Study Using Open-Source Algorithms;383 18;Chapter 11: Analog I/Os;394 18.1;11.1 Analog Inputs;396 18.2;11.2 Reading an ADC;399 18.3;11.3 Temperature Measurement Example;405 18.4;11.4 Analog Outputs;410 18.5;11.5 Temperature Display Example;411 18.6;11.6 Analog I/O Module;414 18.7;11.7 Internals;415 18.8;11.8 Interface Functions;420 18.9;11.9 Analog I/O Module, Configuration;436 18.10;11.10 How to Use the Ana
log I/O Module;438 18.11;11.11 How to Use the Analog I/O Module, AI #0;440 18.12;References;446 19;Chapter 12: Optimizing DSP Software;470 19.1;12.1 Introduction;471 19.2;12.2 What Is Optimization?;471 19.3;12.3 The Process;472 19.4;12.4 Make the Common Case Fast;475 19.5;12.5 Make the Common Case Fast: DSP Architectures;475 19.6;12.6 Make the Common Case Fast: DSP Algorithms;478 19.7;12.7 Make the Common Case Fast: DSP Compilers;479 19.8;12.8 An In-Depth Discussion of DSP Optimization;486 19.9;12.9 Direct Memory Access;486 19.10;12.10 Managing Internal Memory;496 19.11;12.11 Loop Unrolling;497 19.12;12.12 Software Pipelining;503 19.13;12.13 Programmer Helping Out the Compiler;525 19.14;12.14 Profile-Based Compilation;539 19.15;12.15 Summary;546 19.16;References;547 20;Chapter 13: Embedded Processors;548 20.1;13.1 Introduction;549 20.2;13.2 A Simple Embedded Processor;550 20.3;13.3 Soft Core Processors on an FPGA;572 20.4;13.4 Summary;573 21;Index;574