【毕业论文设计】单片机的双机通信技术研究.doc

【毕业论文设计】单片机的双机通信技术研究.doc

  1. 1、本文档共27页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
单片机的双机通信技术研究 [摘 要] 由单片机构成的双机通信系统采用总线型主从式结构。所谓主从式结构,即在两个单片机中,一个主机负责通信管理,另一个为从机,从机要负责主机的调度与支配。该设计用AT89C51芯片,并用C语言程序来控制AT89C51,使之能实现两个单片机之间的通信。通信方式为单工通信,一个为主单片机,作为发送方,另一个为从单片机,作为接收方。对于两片8051,发送方的数据由串行口TXD端输出,通过74LS05反向驱动,经光电耦合器至平衡差信号输出,经过传输线(双胶线)将信号传送到接收端。接收方通过平衡差分长线接收芯片75175将差分信号转换成TTL电平信号,通过反向驱动后,经光电耦合器到达接收方串行口的接收端。 [关 键 词] AT89C51;单片机;双机通信 two-machine communication Wang Yinping (Grade07,Class4,Major of Communication Engineering,Dept. of E.I.of Shaanxi University of Technology, Hanzhong 723003,China) Tutor:Wang Zhanbei [Abstract] Dual posed by the MCU using bus-based communication system master-slave structure. The so-called master-slave structure, that is, two microcontrollers, a master is responsible for communication management, and the other from the machine, the host from the confidential responsible for scheduling and disposal. AT89C51 chip with the design and use of C language program to control the AT89C51, so that it can achieve communication between two microcontrollers. Communication is simplex, a main microcomputer, as the sender, the other is from the microcontroller, as receiver. For the two 8051, the sender of the data from serial port TXD-ended output, driven by 74LS05 reverse, the optocoupler to balance the difference signal output, through the transmission line (Shuangjiao line) the signal to the receiver. Long-term through a balanced differential receiver chip 75175 to receive the differential signal into a TTL level signal, through the reverse drive, via optocoupler receiver serial port to reach the receiver [Key words] AT89C51; SCM; two-machine communication 不要删除行尾的分节符,此行不会被打印 目 录 摘 要 I Abstract II 1 绪 论 2 1.1 课题背景 2 1.1.1单片机 2 1.1.2C语言 2 1.2双机通信 3 2方案论证 5 2.1基于PC机的双机通信 5 2.2基于单片机的C语言双机通信 5 2.2方案论证 5 3原理简介 6 3.1原理说明 6 3.2总体设计 7 3.3运行环境 7 3.3.1Proteus 7 3.3.2 Keil uVision3 9 4元器件介绍 11 4.1AT89C51 11 4.24*4键盘 13 4.3排阻 3 4.4数码管 13 结 论 15 致 谢 17 参考文献 18 附 录 19 1.绪 论 课题背景 单片机 单片机是一种集成在电路芯片,是采用超大规模集成电路技术把具有数据处理能力的中央处理器CPU随机存储器RAM、只读存储器

文档评论(0)

蜗牛 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档