Design Method of Timer Based on FreeRTOS Real-Time Embedded Operating System
Given the current situation that various kinds of real-time communication protocols and real-time control systems running on modern industrial control equipment need many types of high-precision timing services, a design method of timer based on FreeRTOS real-time embedded operating system is proposed. Using the deterministic real-time task management mechanism of FreeRTOS real-time embedded operating system, the timing service addition, timer counting, and timing service function operation are managed by special thread tasks, which solves the problem of large cumulative error caused by the deep coupling of the above operations. Based on stm32f407, a test platform is built to test the timer’s timing error and timing delay duration. The experimental results show that the timing error is within 5us, and the timing delay duration is within 30us, which meets the requirements of timing service accuracy in most cases.
Authors
- Jiao Yang
- Mingxu Gang
Institutions
- Shenyang Institute of Automation (CN)
- Chinese Academy of Sciences (CN)
Publication Details
- Published
- 2025-03-21
- DOI
- https://doi.org/10.1109/iscait64916.2025.11010702
- Primary Topic
- Advanced Sensor and Control Systems
- Type
- article
- Field-Weighted Citation Impact
- 0.00