摘要
运用Win32API函数和多线程技术,对磁悬浮伺服装置控制系统中PC机与单片机间串行通信进行编程。介绍了开关串口、初始化串口、设置缓冲区、读写串口、重叠I/O操作、监视通信事件等与串行通信编程密切相关的API函数及其参数设置。
Win32API function and Multithread technology are adopted to program Serial communication between PC and micro controller unit in the control system of magnetic levitation servo device.API functions and their parameters setting such as opening and closing serial port,setting buffer area,reading and writing serial port,overlapped I /O opera-tion,watching communication event ,which are relevant closely to serial communication programming,are introduced.
出处
《计算机工程与应用》
CSCD
北大核心
2002年第18期136-136,181,共2页
Computer Engineering and Applications
基金
中国科学院机器人学开放研究实验室基金项目(编号:RL199904)
广东省自然科学基金项目(编号:000478)资助