论文部分内容阅读
以实际应用的小型集散变频调速控制系统为例,介绍了一种PC机与多AT89C2051单片机之间串行通信的接口电路,并提出一种新的通信方法,即采用QBASIC语言提供的通信语句来编写多机通信程序,对所接收的信息采用回送比较法,无需区分“地址帧”和“数据帧”,将其作为一个字符串一起发送。该方法硬件紧凑,软件编程简单、可靠。
Taking a small distributed inverter speed control system as an example, an interface circuit of serial communication between a PC and a multi-AT89C2051 single-chip microcomputer is introduced and a new communication method is proposed, that is, a communication statement provided by the QBASIC language To write multi-machine communication program, the received information using the loopback comparison method, without distinction between “address frame” and “data frame”, send it as a string together. The method is compact in hardware and software programming is simple and reliable.