陈楸,程鹏飞,吴成富,陈怀民.基于VxWorks定时中断的自适应串口驱动设计[J].测控技术,2012,31(07):103-105 |
基于VxWorks定时中断的自适应串口驱动设计 |
Adaptive Serial-Port Driver Design Based on Timing Interrupt in VxWorks |
|
DOI: |
中文关键词: 实时仿真 多串口驱动 时钟定时中断 自适应算法 |
英文关键词:real-time simulation multi-serial-port driver clock timing interrupt adaptive algorithm |
基金项目: |
|
摘要点击次数: 1159 |
全文下载次数: 312 |
中文摘要: |
针对在通信模块多、信息交互频繁的实时仿真环境中,传统多串口中断触发方式成倍占用系统资源和某些板卡无“FIFO满”,即“先入先出缓冲区满”标志位,导致仿真实时性和通信速率降低的情况,提出一种新的多串口驱动架构,采用时钟定时中断和自适应算法写FIFO的方式,不仅大幅度减少中断开销,而且使通信速率近乎达到极限,保证了数据的完整性。另外,本驱动基于VxWorks标准I/O驱动方式实现,故可稍加改动,植入BSP(板级支持包)中。 |
英文摘要: |
Aiming at the problems that the conventional interrupt trigger mode of serial port occupies system resources exponentially and some cards have not “FIFO full”,that is “first-in-first-out full” bit,which could make the real-time performance of simulation and communication rate become worse in real-time simulation environment of many communication blocks and much information interaction,a new multi-serial-port driver architecture is proposed,which uses the clock timing interrupt and adaptive algorithm to write FIFO.It not only 〖JP2〗reduces interrupt overhead,but also makes the communication rate to the limit approximately and ensures data integrity.In addition,as the drive is VxWorks standard I/O drive,developers can change it for board support package(BSP). |
查看全文 查看/发表评论 下载PDF阅读器 |
关闭 |