节点文献
基于APIC的高精度定时器设计
Design of High Precision Timer Based on Advanced Programmable Interrupt Controller
【摘要】 在操作系统开发过程中需要一定精度的计时器支持。在Windows实时扩展改造过程中,针对原有定时精度低和波动较大的问题,提出一种基于高级可编程中断控制器(APIC)的高精度定时器设计方案。利用CPU片上结构APIC的计数寄存器编程,构建高精度时钟。运用内核驱动建立内核调度管理,通过内存映射提高用户态到内核态的数据传输速度,保证实时性能。利用DLL提供一组和内核交互的定时器接口供用户使用。实验结果表明,该方案有效解决了定时精度和稳定性问题,构造的定时器性能稳定,具有良好的实用性。
【Abstract】 Timer with a certain precision is often required in the process of developing the system. In the Windows real time extending process,aiming at the problem of insufficient original timing accuracy and the fluctuation problem,this paper presents a high precision timer based on local Advanced Programmable Interrupt Controller(APIC). Making use of the counting register programs CPU sheet structure of APIC,it constructs high precision clock effectively,and uses the kernel driver construction scheduling management,memory mapping to improve data transmission speed of user state to guarantee real-time kernel to provide real-time. DLL provides a set of interface for users. Experimental results show that the scheme can effectively solve the problem of timing precision,and it has good usability.
【Key words】 Advanced Programmable Interrupt Controller(APIC); timer; high precision; stability; memory mapping; real-time;
- 【文献出处】 计算机工程 ,Computer Engineering , 编辑部邮箱 ,2014年09期
- 【分类号】TP332;TH714.8
- 【被引频次】1
- 【下载频次】96