DSPRelated.com
Books

Embedded Systems Building Blocks: Complete and Ready-to-Use Modules in C

Labrosse, Jean 1999

- This second edition features revisions that support the latest version of the author's popular operating system and book, MicroC/OS-II - Complete and ready-to-use modules in C Get a clear explanation of functional code modules and microcontroller theory


Why Read This Book

You should read this book if you need a hands-on library of proven, ready-to-use C modules and design patterns for building reliable real-time embedded firmware. It gives you pragmatic examples (drivers, buffers, timing, RTOS integration) that help turn DSP algorithms from algorithms-on-paper into working, interrupt-safe code on microcontrollers.

Who Will Benefit

Embedded/firmware engineers or DSP implementers who must integrate algorithms into real-time microcontroller systems and want tested C modules and RTOS integration patterns.

Level: Intermediate — Prerequisites: Comfortable C programming, basic microcontroller architecture (I/O, interrupts), and familiarity with embedded development tools; prior exposure to RTOS concepts is helpful but not required.

Get This Book

Key Takeaways

  • Integrate modular C code with an RTOS (MicroC/OS-II) and design task-based firmware
  • Implement interrupt-safe drivers, circular buffers, and producer/consumer mechanisms
  • Manage timing, delays, and watchdogs for deterministic real-time behavior
  • Design and use common utility modules (CRC, checksum, simple file/buffer management)
  • Structure code for portability across common microcontroller platforms and toolchains

Topics Covered

  1. Preface and design philosophy
  2. Getting started: toolchains and basic C module style
  3. Tasking and RTOS integration (MicroC/OS-II overview and examples)
  4. Timing, delays, and watchdogs
  5. Interrupt handling and interrupt-safe code patterns
  6. Serial communications and UART modules
  7. I/O, ADC interfaces, and simple device drivers
  8. Buffer management, FIFOs, and message passing
  9. Utilities: CRC, checksums, configuration storage
  10. Boot, initialization, and porting guidelines
  11. Debugging, testing, and diagnostic modules
  12. Appendices: code listings and API reference

Languages, Platforms & Tools

CAssemblyGeneric 8/16/32-bit microcontrollers8051PICAVRARM (general)MicroC/OS-IIKeilGCC/arm-gccIAR

How It Compares

Pairs well with Labrosse's own MicroC/OS-II kernel manual — the Building Blocks book provides practical modules and examples, while titles like Elecia White's Making Embedded Systems offer a broader narrative-driven introduction to embedded design.

Related Books

Collins, Travis F, Getz, Ro...