摘要: |
[目的]使嵌入式系统软件能够适应多种不同通讯协议,并保持通讯模块的稳定性。[方法]基于ARM微处理芯片LPC2132,提出一种通用的串口驱动程序设计方案:将通讯协议与串口驱动分离,把协议帧数据段分类处理,系统软件只需要定义协议帧数据段描述,而不需要和具体的通用驱动程序打交道即可实现通讯。[结果]该串口驱动程序在远程环境采集系统中经过长时间的测试和应用,运行稳定。[结论]该串口驱动程序设计方案提高了编码效率,简化了驱动软件设计。 |
关键词: 串口驱动程序 ARM LPC2132 |
DOI: |
投稿时间:2013-11-21修订日期:2013-12-12 |
基金项目: |
|
Design of Universal Serial Port Driver Based on ARM LPC2132 |
TANG Min-qin, XIA Jun
|
(Guangxi Hunter Information Industry Co., Ltd., Guilin, Guangxi, 541004, China) |
Abstract: |
[Objective] In order to make embedded system software fit different kinds of communication protocol and remain the stable of communication module, universal serial port driver is designed.[Method] Base on the ARM LPC2132 microprocessor chip, we propose the design of universal serial port driver. We separate the communication protocol from port driver and classify the protocol frame data segment. Therefore, the system only needs to define the description of protocol frame data segment. Real-time communication can be realized without communication with specific universal driver.[Result] This serial port driver is tested and applied stably in remote acquisition environment for a long time. [Conclusion] This serial port driver increases the efficiency of coding and simplifies design for driver software. |
Key words: serial driver ARM LPC2132 |