基于单片机的多机通信系统.doc
文本预览下载声明
基于单片机的多机通信系统
摘 要
RS-485电气特性的简单的单片机多机通信方式,采用自定义串行通信协议,实现单片机RS-485多机通讯的方法和技巧。系统设计和解决了8位单片机在多机通信方面的一些问题,在实现方面,系统实现了客户机与服户机间的通信,以及客户机与客户机间的通信。
单片机的多机通信在未来工业控制,通信,家用电器等领域都将有很大的发展空间,单片机依靠其体积小,性价比高,经济性上的优势一定会在未来的各个控制领域大展其优势。
关键词:单片机;通信协议;RS485;
Abstract
Single chip microcomputer as a branch of microcomputer, small volume, widely used in industrial advantages, control, communications, household appliances, etc are very widely. Single chip computer communication is in the development of industry standards and chip increase on a subject, this research, the single chip has gradually, but cannot satisfy the need of coordination work is an important trend. Communication is the two above the network structure, the chip can be realized through serial communication method for a final control process. Many applications key lies in mutual communication between computer and information to each other. This paper is to introduce a can use electrical characteristics of RS - 485 simple single-chip computer communication, using custom serial communication protocol, realize the RS - 485 single-chip computer communication methods and techniques. The system design and solve the eight microcomputer in the communication of some problems, in the aspects of system implementation, client and communications between the door machine, and communications between the client and the client.
Single chip computer communication in the future industrial control, communications, household appliances, etc will have very big development space, SCM, small size, depending on its high ratio of economic superiority in the future will show the advantages of each control field.
Key words: Single; chip Computer; communication protocol; RS485
目 录
论……………………………………………………………………1
1多机通讯介绍…………………………………………………………2
1.1软件中断型主从式多机通信………………………………………………2
1.2主从式多机通信原理……………………………………………………………………………………………………………………….3
2单片机与通讯芯片…………………………………………………..4
2.1单片机技术介绍…………………………………………………………...4
2.2 RS232与RS485通讯芯片…………………………………………………7
3单片机RS
显示全部