EmbeddedRelated.com
Books

MicroC/OS-II: The Real-Time Kernel

Labrosse, Jean J. 1998

Showcases the new features in version 2.0, demonstrates the operating system's abilities, and offers a concise explanation of real-time computing


Why Read This Book

You should read MicroC/OS-II if you want a compact, code-first introduction to how a small, commercial RTOS is designed, implemented, and used in real embedded projects. You will learn concrete kernel services, practical porting techniques, and how to apply deterministic real-time concepts to microcontrollers using real source code examples.

Who Will Benefit

Embedded firmware engineers or advanced students with basic C and MCU experience who need a hands-on reference for RTOS services, kernel internals, and porting techniques.

Level: Intermediate — Prerequisites: C programming (pointers, structures), basic microcontroller architecture and interrupts, and familiarity with compiling/linking embedded code and using a debugger.

Get This Book

Key Takeaways

  • Understand the architecture and design decisions behind a small preemptive RTOS kernel
  • Implement and configure tasks, priorities, scheduling, and time-management services
  • Use inter-task communication primitives (semaphores, mailboxes, queues) safely in firmware
  • Port the kernel to different processors by adapting context-switching and interrupt handling
  • Analyze and reason about real-time behavior, determinism, and timing constraints
  • Integrate the RTOS into real embedded applications with practical examples and test strategies

Topics Covered

  1. Introduction to Real-Time Concepts and MicroC/OS-II
  2. Kernel Architecture and Design Goals (v2.0 highlights)
  3. Task Management: Creation, Deletion, and Context Switching
  4. Scheduling, Priorities, and Time Management
  5. Intertask Communication: Semaphores, Mailboxes, and Queues
  6. Mutual Exclusion and Resource Management
  7. Interrupt Handling and ISR-to-Task Interactions
  8. Memory Management and Stack Considerations
  9. Porting MicroC/OS-II to New Processors
  10. System Configuration, Initialization, and Building the Kernel
  11. Example Applications and Practical Usage Patterns
  12. Debugging, Performance Analysis, and Real-Time Testing
  13. Appendices: API Reference, Data Structures, and Port Samples

Languages, Platforms & Tools

CAssemblyARM (various cores)x86MIPSMotorola 68k/ColdFire8051 and other 8-bit microcontrollersCross-compilers (GCC, vendor toolchains)Assembly/linker scriptsIn-circuit debuggers and JTAGCommon embedded IDEs (Keil, IAR, etc.)

How It Compares

More code-centric and porting-oriented than textbook treatments like Liu's Real-Time Systems; compared with modern open-source RTOS guides (e.g., FreeRTOS documentation), Labrosse's book focuses more on kernel internals and a single, well-documented commercial kernel.

Related Books

Bryant, Randal, O'Hallaron,...