duojitongxin
代码说明:
多机通信,设计了一种基于MCS-51系列单片机AT89S52 的多机通信系统。当1号机与2号机通信时,1号单片机为主机,2号机为从机。主机通过串口向从单片机发送指定格式的数据,从单片机收数据并作出响应,从机通过LED数码管显示通信状态。1号单片机通过矩阵键盘控制通信过程与显示。这通信模式是主从模式,只能是主机发信息给从机。当1号机与3号机通信时,不存在主从机之分,是平权模式。1号机可以通过按键发信息给3号机,3号机也可以通过按键发信息给1号机,通过各自的数码管显示通信数据,LED灯显示通信状态。(Multi-machine communication, design a multi-machine communication system based on MCS-51 series single-chip AT89S52' s. When the 1st and the 2nd machine-machine communication, the 1st microcontroller host, the 2nd machine as a slave. Data sent to the host computer through the serial port specified format from SCM, SCM and respond to the received data from the slave via LED digital display communication status. 1 MCU control the communication process through the matrix keyboard and display. This mode of communication is a master-slave mode, the host can only send a message to the slave. When the 1st and the 3rd machine-machine communication, there is no slave master points, is affirmative mode. The 1st machine can send a message to the 3rd through the key machine, the 3rd machine can also send information via the button to the 1st machine, display data communication through their digital tube, LED lights display the communication status.)
下载说明:请别用迅雷下载,失败请重下,重下不扣分!