摘要
针对Windows环境下串行通信机制,研究了DOS环境下与之相对应的功能实现方法,提出了C语言程序设计方案。在系统通信中,设置数据流控制协议,开辟环形缓冲区处理通信数据,调用串行口的中断管理资源,实现异步通信,确保数据通信实时、稳定,效果良好。
Contraposing the serial communication mechanism of the windows system, of the corresponding realization method for DOS system is studied, and introduces programming precept based on C language is introduced. In system communication, in order to realize the asynchronous serial communication, it sets the command agreement of the data stream, assigns a cricoid buffer to manage the communication data, and uses the serial port's interrupt mechanism. This technique insures the data communicates steadily in real time, and brings into better effect.
出处
《计算机工程与设计》
CSCD
2004年第8期1311-1312,1316,共3页
Computer Engineering and Design