范文编号:TX403 范文字数:12645,页数:30 摘要 串口通信因其通信线路简单、使用灵活方便 ,在许多领域应用广泛。本文主要介绍如何实现运行WINDOWS操作系统的PC机与MSC-51单片机系统之间的通信。PC机的程序设计使用VB实现,PC机调用通用程序,控制RS-232串口,而MSC-51单片机的程序则通过汇编语言实现对RS-232串口的控制。为了保证数据通信的可靠性,要制定通信协议。基于串口通信和MSComm控件原理 ,详细介绍了利用VB6. 0编程实现发送接收字符,并给出了具体程序和解释。设计成功后,通过PC机的一个界面上的一个按钮就能实现接收和发送,并能看到接收到的数据。 ABSTRACT Serial communication program has broad application in many fields because of its simple communication circuitry , flexible uses. The purpose of this design is realize the communication between the computer which runs windows and MSC-51 single-chip microcomputer.We can use VB to write PC program.Wnen PC running the program,it can control RS-232 serial-port,The program of microcomputer can be writed by the assembler language to control RS-232 serial-port,In order to ensure the accuracy of correspondence,we should work out a protocol. Based on the principle of serial communication program and MScomm control , the article introduces using VB6. 0 to program the Mul 2 timode Serial Communication program such as manual or automatic transmitting symbol. ,then gives a concrete program.When the design is successful,pressing button with sending to seng data,if receiving the data,the text window will display the data. 摘要 I
|
上一篇:PAM调制解调系统设计 二 | 下一篇:图像梯形退化校正的研究与实现 |
点击查看关于 上位 下位 单片机 之间 进行 串口 通信 的相关范文题目 | 【返回顶部】 |