嵌入式Linux下高精度定时器的实现
Implement of High Precision Timer in Embedded Linux
嵌入式Linux开发过程中经常遇到需要设定大量定时器的情况,随着嵌入式技术的发展,嵌入式Linux应用场合也越来越广,在定时的精度以及定时抖动等指标上也提出了更严格的要求。本文结合嵌入式Linux环境,给出了三种实现ms级且具有较高定时精度的定时器实现方法,分别是利用系统调用,利用RTC,利用周期计数并比较。我们针对这三种实现定时的方案分别分析了其影响定时精度的主要相关事项,以及这三种定时器在使用过程中的注意事项,最后给出了三种定时器适合的应用场景。
When developing application using the embedded Linux, it is integrant that implementing some timer with high precision. As the improvement of embed, embedded Linux is used more wildly. The precision of timers is more and more needed. This thesis gives three methods to implement high precision timer, such as using system call, using RTC, using counter and comparing periodically, analyzes the precision of three methods , factors effects the precision, and attentions of using the timer. Finally gives the appliance environment of the three methods.
范异君
计算技术、计算机技术电子技术应用
嵌入式Linux定时器精度
Embedded LinuximerPrecision
范异君.嵌入式Linux下高精度定时器的实现[EB/OL].(2008-12-17)[2025-08-18].http://www.paper.edu.cn/releasepaper/content/200812-515.点此复制
评论