摘要
针对51系列单片机与智能模块的串口通信,研究嵌入式实时内核的串口通信方案。讨论了实时操作系统下消息队列功能正确配置方法,利用系统中断和内核提供的消息队列功能,实现了串口通信和数据存储,对通信协议、消息队列功能配置、驱动程序任务分解、数据存储方式作了重点论述,为设计使用智能模块与单片机串口通信的控制系统应用领域提供了良好的升级解决方案。
In view of existing situation for 51 computers and intelligent serial communication module,the design project of serial communication program based on embedded real-time kernel is developed,and discussed the method of proper configured Message Queuing in the real-time operating system.The technology of serial communication and data storage is designed and implemented using system interrupt and kernel message queue.The research is focused on communication protocol,message queue function deployment,driver task decomposition and data storage.It provide a good solution for smart module with single chip serial communication control system applications to upgrade.
出处
《电脑编程技巧与维护》
2010年第16期69-70,共2页
Computer Programming Skills & Maintenance
关键词
智能模块
串口通信
消息队列
单片机
Intelligent module
serial communication
Message Queue
microcontroller