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

  • 281
  • 0
  • 约1.67万字
  • 约 27页
  • 2017-09-22 发布于陕西
  • 举报

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

单片机的双机通信技术研究 [摘 要] 由单片机构成的双机通信系统采用总线型主从式结构。所谓主从式结构,即在两个单片机中,一个主机负责通信管理,另一个为从机,从机要负责主机的调度与支配。该设计用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精品文档

相关文档