论文部分内容阅读
本文介绍了为满足基于VxWorks的某嵌入式显控系统的通信需求,对多串口扩展卡EMM8的通信实现过程,包括环境配置和软件开发。分析了VxWorks操作系统下设备驱动程序在系统中的层次结构和串口设备驱动程序的运行机制。在对VxWorks下串口通信的实现方法进行分析的基础上,给出了采用非标准的VxWorks驱动方式,而在驱动程序中直接对硬件进行初始化,以中断方式进行串口通信。目前已成功应用于PC/104工控机上。
This paper introduces the communication process of EMM8 with multiple serial ports to meet the communication requirements of an embedded control system based on VxWorks, including environment configuration and software development. The hierarchy of device driver in VxWorks operating system and the operating mechanism of serial device driver are analyzed. Based on the analysis of the realization of serial communication under VxWorks, the non-standard VxWorks driving method is given, while the hardware is initialized directly in the driver and the serial communication is interrupted. Has been successfully applied to PC / 104 industrial computer.