This application note explains how to integrate Microchip software libraries and protocol stacks with an RTOS and discusses the code changes required.
The note introduces the reasons for porting Microchip middleware libraries and protocol stacks to an RTOS‑based platform, and describes the modifications needed when using an RTOS. It covers the use of FreeRTOS, task scheduling, semaphores, and queues to manage library interactions and avoid priority‑inversion problems.
A demonstration application is built around an energy‑metering use case, using the Explorer 16 development board with PIC24F or PIC32 modules, a QVGA touch screen, Ethernet and 2.4 GHz RF interfaces. The document details hardware setup, task implementation, and the minimal changes required to keep COTS libraries functional in the RTOS environment. This manual is written in Chinese.
| Supported libraries | TCP/IP stack, Zigbee®, MiWi®, USB host/client, IrDA®, graphics library, mTouch®, Memory Disk Drive, audio library |
|---|---|
| RTOS used in demo | FreeRTOS |
The demonstration uses FreeRTOS as the RTOS.