In an embedded system, firmware is the software that directly interfaces with the microcontroller, controlling the system's function. The major forces driving the embedded firmware development process today are reduced development times, increased complexity, and the need to handle multiple tasks simultaneously. These forces translate into strenuous design requirements for embedded engineers and programmers. Many low-level embedded microcontroller designs have insufficient memory and/or architectural limitations that make the use of a real-time operating system impractical. The techniques presented in this book allow the design of robust multitasking firmware through the use of interleaved state machines. This book presents a complete overview of multitasking terminology and basic concepts. Practical criteria for task selection and state machine design are also discussed. Designing multitasking firmware is arduous, complex and fraught with potential for errors, and there is no one, "standard way to do it. This book will present a complete and well-organized design approach with examples and sample source code that designers can follow.
- Covers every aspect of design from the system level to the component level, including system timing, communicating with the hardware, integration and testing.
Inhaltsverzeichnis
1;Front Cover;1 2;Embedded Multitasking;4 3;Copyright Page;5 4;Contents;8 5;About the Author;12 6;Whats on the CD-ROM?;14 7;Chapter 1. Whats In This Book, and Why Should I Read It?;16 7.1;Engineering and Profits;19 8;Chapter 2. Basic Embedded Programming Concepts;34 8.1;Numbering Systems;35 8.2;Data Structures;48 8.3;Communications Protocols;66 8.4;Mathematics;76 8.5;Numeric Comparison;84 8.6;State Machines;98 8.7;Multitasking;114 9;Chapter 3. System-Level Design;126 9.1;Dissecting the Requirements Document;128 9.2;System-Level Design;172 10;Chapter 4. Component-Level Design;218 10.1;Task State Machines;218 10.2;Communications;238 10.3;System Timing;255 10.4;Priority Handler;267 10.5;Error Recovery System;286 11;Chapter 5. Implementation and Testing;304 11.1;Building a Testing Driver Routine;322 12;Chapter 6. Does It Do the Job?;394 13;Index;398 14;Elsevier Science CD-ROM License Agreement;416