5.2 An Overview of Asynchronous Tools in FreeRTOS

Software Timers: For Application-Scheduled Events

FreeRTOS Software Timer is a tool used to schedule the execution of a function at a future time. It's like setting an alarm clock within your software. When the timer expires, the RTOS automatically calls a predefined function, known as a callback function.

Key Characteristics:

Types of Software Timers:

  1. One-Shot Timer: Executes its callback function only once after it is started.

  2. Auto-Reload Timer: Executes its callback function repeatedly at a fixed interval until it is explicitly stopped.

Hardware Interrupts: For Hardware-Triggered Events

Hardware Interrupt is a mechanism for a hardware peripheral to signal the CPU that it needs immediate attention. Unlike a software timer, which is scheduled by your application, an interrupt is triggered by an external, physical event.

Key Characteristics:

In summary, the choice between them is driven by the source of the event:


Revision #1
Created 2025-08-28 12:43:12 UTC by GI
Updated 2025-08-28 12:43:50 UTC by GI