毕业设计(论文)-单片机串行协议通信设计汇.docVIP

毕业设计(论文)-单片机串行协议通信设计汇.doc

  1. 1、本文档共36页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  5. 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  6. 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  7. 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  8. 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
毕业设计(论文)-单片机串行协议通信设计汇

目 录 摘要 I Abstract II 前言 III 第1章 绪论 1 1.1 课题背景 1 1.2 目的和意义 1 1.3 系统设计思想 1 第2章 单片机概述 3 2.1 单片机的发展历史 3 2.2 单片机的特点 3 2.3 单片机的应用 4 2.4 AT89C51单片机简介 5 2.5 本章小结 9 第3章 单片机的串行接口 10 3.1 基本概念 10 3.2 MCS-51的串行和控制寄存器 10 3.2.1 串行口和控制寄存器 10 3.2.2 串行口工作方式 12 3.3 本章小结 12 第4章 串行通讯技术及硬件基本组成 13 4.1 硬件的基本组成 13 4.2 串行通信原理 13 4.3 双机通信连接方法 13 4.4 本章小结 14 第5章 软件的设计和调整过程 15 5.1 程序流程图 15 5.2 通信协议 15 5.2.1 串行口控制寄存器SCON的设置 15 5.2.2 定时器的初始化设置 15 5.2.3 波特率计算 16 5.3 程序演示 17 5.4 本章小结 17 结论 18 致谢 19 参考文献 20 附录A 21 附录B 25 附录C 26 附录D 27 附录E 29 附录F 31 附录G 32 单片机串行通信协议设计 摘 要 本文介绍了89C51单片机的发展历史和简单介绍,并展望了它们的前景。着重介绍了单片机串行接口技术,指出了它们的重要性并阐述了其实现原理。根据串行通讯原理结合RS232串口设计了串行通讯协议,利用汇编语言为基础,编写了一个基于RS232串口的通信程序,实现了单片机-PC机的双机通讯。在硬件上测试完好,测试表明,在基于设计的通信协议上的单片机-PC机的通讯状况良好。首先分析数据通信协议数据包的一般格式,然后采用有限状态机的算法实现单片机与上位机之间的串行通信协议,包含上下位机的数据发送接受和协议的解析实现,并给出具体的实现方法。 关键词 89C51单片机;串行通讯原理;RS232串口;串行通讯协议;51单片机串口通信协议上位机下位机 Monolithic integrated circuits design communication protocol for serial Abstract This article describes the development and give a brief history of the 89C51 microcontroller and look forward to their future.Focused on single-chip serial interface technology, pointed out the importance of them and described the principles of its realization. Serial communication in accordance with the principle of combining the design of a serial RS232 serial Communication protocol, Based on the use of assembly language, the preparation of a RS232 serial communication based on the procedure, to achieve a single-chip dual-PC machine communication. Well-tested in hardware, testing showed that the single-chip-PC communications machine based on the design of communication protocols in good condition. Firstly analyzes the data communication protocol, and the general form packet finite-state machine algorithm between SCM and PC, including serial communication protocol and send and receive data bits of the agreement, and the analytical method was given. Key words 89C51 microcontroller principle of serial communication RS232 serial port

文档评论(0)

liwenhua00 + 关注
实名认证
文档贡献者

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

1亿VIP精品文档

相关文档