特级做A爰片毛片免费69,永久免费AV无码不卡在线观看,国产精品无码av地址一,久久无码色综合中文字幕

單片機串口通信畢業(yè)論文.doc

約48頁DOC格式手機打開展開

單片機串口通信畢業(yè)論文,目錄摘要iabstractii1 緒論11.1本課題選取的目的及意義11.2 目前國內(nèi)外本課題研究狀況21.3 本文的主要工作32串行通信理論的有關(guān)概念52.1 通信52.2 通信參數(shù)62.3工作模式62.4 同步通信與異步通信73 幾種常用串行總線協(xié)議及方案選取83.1 iic總線傳輸協(xié)議83....
編號:36-111631大小:454.50K
分類: 論文>通信/電子論文

內(nèi)容介紹

此文檔由會員 huangbinbest 發(fā)布

單片機串口通信畢業(yè)論文


目錄
摘要 I
Abstract II
1 緒論 1
1.1本課題選取的目的及意義 1
1.2 目前國內(nèi)外本課題研究狀況 2
1.3 本文的主要工作 3
2串行通信理論的有關(guān)概念 5
2.1 通信 5
2.2 通信參數(shù) 6
2.3工作模式 6
2.4 同步通信與異步通信 7
3 幾種常用串行總線協(xié)議及方案選取 8
3.1 IIC總線傳輸協(xié)議 8
3.2 SPI總線傳輸協(xié)議 11
3.3 串口通信傳輸協(xié)議 13
3.3.1 80C51單片機的串行口的結(jié)構(gòu) 13
3.3.2 80C51串行口的控制寄存器 13
3.3.3 80C51單片機串行口的工作方式 14
3.4 方案選取 17
4 主從通信系統(tǒng)設(shè)計 18
4.1 硬件原理圖設(shè)計 18
4.2 軟件的編寫 19
5主從式總線通信系統(tǒng)仿真 22
6 論文總結(jié) 24
致謝 25
參考文獻 26
附錄 27

 

 
摘要
在要監(jiān)控的范圍較大或監(jiān)控點數(shù)較多的情況下,就需要把監(jiān)控工作分散進行,而把監(jiān)控結(jié)果集中管理。這就是所謂的分布式監(jiān)控。而分布式監(jiān)控比較常用的一種通信方式就是主從式通信了。本文介紹了一個單片機做主機,兩個單片機做從機的小型主從式總線通信系統(tǒng)的設(shè)計與實現(xiàn)。系統(tǒng)不僅實現(xiàn)了主從機之間的通信,而且實現(xiàn)了從機之間的通信。
本文以主從式通信系統(tǒng)的分析與設(shè)計為主線,首先了解串行通信理論的有關(guān)概念,由此引出了多臺設(shè)備間的串行通信模式,并提出了一個按總線方式將多個RS-232的發(fā)送端并聯(lián)的可行方案。同時也介紹了單片機之間的串行通信設(shè)計。主從式通信的程序由兩部分組成,一部分是主機的串行通信程序,別一部分是從機的串行通信程序。因此要設(shè)計一個協(xié)議管理主從機之間的通信。
通信協(xié)議的設(shè)計主要解決了以下幾個問題:1.對于主從式通信系統(tǒng)的設(shè)計通過通信協(xié)議進行管理,可以對主從機之間的通信進行規(guī)范化管理,使整個系統(tǒng)不會陷入混亂通信之中。2.設(shè)計了主機向從機發(fā)送通信方式的命令格式,從機向主機發(fā)送反饋命令的格式,以及通訊握手和發(fā)送/接收的具體處理流程

關(guān)鍵字:主從式,多機通信,RS-232串行數(shù)據(jù)通信

 


Abstract
As large number of observation points are monitored simultaneously,each of the tasks can be controlled through a distributed control system in order to focus on the result of observation. This is called the Distributed Monitoring. The distributed control is commonly used as a way of master-slave communication. This article describes a microcontroller to be the host and two small microcontroller to be the slave and by this way to design a master-slave bus communication system. System not only realizes the communication between master and slave, but also realizes the communication between the slaves.
This thesis focused on analysis and design of a communications plan for a distributed monitored control system.In the beginning the application background and the layout of the devices are introduced,this leads to the serial communication mode between multiple-device.After the introduction a feasible way to let several RS-232’s TXDbe in parallel via bus is described. Also introduced the design of serial communication between MCU.
Communication protocol designed mainly to solve the following problems:first,for the master-slave communication system design management through communication protocols can be standardized management the master slave communications.By this way, the whole system will not into chaos communications.second, Design of the host machine to send a communication from the command format, feedback from the machine to send commands to the format of the host ,Communication handshake and send / receive the specific processes
Key Words: Master-slave mode, Muliple-computer communication, RS-232 serial date communication