STMicroelectronics (STM32G4x, STM32F4x, STM32F7x, STM32H7x) 1. Introduction to Zephyr RTOS Back to top of the page
Category: Embedded System
FreeRTOS vs. Zephyr RTOS
FreeRTOS is a lightweight, production-proven real-time kernel maintained by AWS under the MIT license. Built for resource-constrained microcontrollers, it delivers deterministic task scheduling, queues, semaphores, mutexes, and memory management with minimal flash and RAM usage. Its modular, vendor-neutral design integrates easily with custom toolchains, hardware platforms, and abstraction layers, making it a strong choice for…
STM32 FreeRTOS: Event Groups
STM32 Microcontroller and FreeRTOS Development Event Groups Event groups allow a task to wait in the blocked state for a combination of one of more events to occur. Event groups unblock all the tasks that were waiting for the same event, or combination of events, when the event occurs. Event groups reduce RAM usage by…
STM32 FreeRTOS: Software Timers
STM32 Microcontroller and FreeRTOS Development One-shot timer: once started, it will execute its callback function once only. It can be restarted manually, but will not restart itself Auto-reload timer: once started, it will re-start itself each time it expires, resulting in periodic execution of its callback function xTimerCreate() Creates a FreeRTOS software timer using dynamically…
TI C2000: Communication – Serial Communication Interface (SCI)
TI C2000 Real-Time Microcontroller: Control, Sensing, and Communication Please also see this post about the SCI/UART communication protocol. Serial Communications Interface (SCI) SCI Multiprocessor Wake-Up Modes SCI Summary Serial Communications Interface (SCI) The SCI is a two-wire asynchronous serial port (also known as a UART) that supports communications between the processor and other asynchronous peripherals…
TI C2000: Control – enhanced Capture (eCAP)
TI C2000 Real-Time Microcontroller: Control, Sensing, and Communication Capture Module (eCAP) Example: eCAP1 Reference [1] TMS320F2837xD Microcontroller Workshop Back to top of the page
TI C2000: Control – enhanced Pulse Width Modulation (ePWM)
TI C2000 Real-Time Microcontroller: Control, Sensing, and Communication ePWM Module Signals and Connections ePWM Block Diagram ePWM Time-Base Sub-Module ePWM Compare Sub-Module ePWM Action Qualifier Sub-Module ePWM Dead-Band Sub-Module ePWM Chopper Sub-Module ePWM Trip-Zone and Digital Compare Sub-Module ePWM Event-Trigger Sub-Module Hi-Resolution PWM (HRPWM) Example: ePWM1A ePWM Module Signals and Connections ePWM Block Diagram ePWM…
TI C2000: Analog Subsystem – Sigma Delta Filter Module (SDFM)
TI C2000 Real-Time Microcontroller: Control, Sensing, and Communication Sigma Delta Filter Module (SDFM) SDFM Block Diagram Sigma Delta Filter Module (SDFM) The SDFM is a four-channel digital filter designed specifically for current measurement and resolver position decoding in motor control applications. Each channel can receive an independent delta-sigma modulator bit stream which is processed by…
TI C2000: Analog Subsystem – Comparator Subsystem (CMPSS)
TI C2000 Real-Time Microcontroller: Control, Sensing, and Communication Comparator Subsystem (CMPSS) Comparator Subsystem Block Diagram Comparator Subsystem (CMPSS) The F2837xD includes eight independent Comparator Subsystem (CMPSS) modules that are useful for supporting applications such as peak current mode control, switched-mode power, power factor correction, and voltage trip monitoring. The Comparator Subsystem modules have the ability…
STM32 FreeRTOS: FreeRTOS Scheduler
STM32 Microcontroller and FreeRTOS Development The scheduling algorithm is the software routine that decides which ready state task to transition into the running state. Round Robin: this scheduler will ensure tasks that share priority are selected to enter the running state in turn. The Round Robin scheduling algorithm in FreeRTOS does not guarantee time is…