EmbeddedRelated.com
Books
The 2026 Embedded Online Conference

Embedded Multitasking (Embedded Technology)

Curtis, Keith E. 2006

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.
* Accompanying companion website contains the source code for the text examples and other useful design tools.


Why Read This Book

You will learn how to build reliable multitasking firmware without the overhead of an RTOS by using interleaved state machines and event-driven techniques that fit in tight memory and CPU budgets. The book emphasizes practical patterns, concrete examples, and design strategies so you can deliver responsive, maintainable embedded systems on small microcontrollers.

Who Will Benefit

Embedded firmware engineers and hardware-focused software developers who work on memory- or resource-constrained microcontrollers and need robust multitasking without a full RTOS.

Level: Intermediate — Prerequisites: Familiarity with C and/or assembly programming, basic microcontroller architecture (registers, I/O, timers), interrupts, and digital electronics.

Get This Book

Key Takeaways

  • Implement interleaved state machines to achieve cooperative multitasking on constrained microcontrollers.
  • Design event-driven firmware architectures that scale in complexity while minimizing memory and CPU overhead.
  • Handle interrupts, timers, and peripheral events safely and predictably within a multitasking framework.
  • Minimize stack and heap usage and make predictable timing trade-offs in non-RTOS systems.
  • Debug, test, and validate multitasking firmware with techniques suited for low-resource devices.

Topics Covered

  1. 1. Multitasking in Embedded Systems — Motivation and Requirements
  2. 2. Concurrency Concepts and Terminology
  3. 3. Finite State Machines and Interleaved Execution
  4. 4. Event-Driven Architectures and Scheduling Strategies
  5. 5. Cooperative vs. Preemptive Approaches — Tradeoffs
  6. 6. Interrupt Design and Safe Interaction with Tasks
  7. 7. Timers, Timeouts, and Real-Time Considerations
  8. 8. Memory-Conscious Task and Data Management
  9. 9. Synchronization, Resource Sharing, and Deadlock Avoidance
  10. 10. Debugging, Testing, and Verification Techniques
  11. 11. Migrating to an RTOS — When and How
  12. 12. Case Studies and Example Implementations
  13. Appendices: Coding Patterns, Pseudocode, and Reference Materials

Languages, Platforms & Tools

CAssemblyPseudocode/examplesGeneral 8/16/32-bit microcontrollersPICAVR8051ARM Cortex-M (applicable)RISC-V (techniques are architecture-agnostic and transferable)GCC/cross-compilersKeil MDKMPLABGDB/embedded debuggersLogic analyzerOscilloscope

How It Compares

Unlike RTOS-focused texts such as Jonathan Valvano's ARM/RTOS books that teach kernel use, Curtis emphasizes architecting multitasking through interleaved state machines so you can avoid or delay an RTOS; it’s more hands-on and lower-level than broader primers like Elecia White’s Making Embedded Systems.

Related Books

Bryant, Randal, O'Hallaron,...
The 2026 Embedded Online Conference