毕业论文:单片机与PC机串行通信系统设计.doc

毕业论文:单片机与PC机串行通信系统设计.doc

  1. 1、本文档共32页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
PAGE  PAGE 27 河南农业大学 本科生毕业论文(设计) 题 目 单片机与PC机串行通信系统设计 学 院 机电工程学院 专业班级 电子信息工程07级3班 学生姓名 王卫亮、高岚 指导教师 胡建东 撰写日期:2011年 5 月 17 日 摘 要 随着计算机技术尤其是单片微型机技术的发展,单片机被广泛应用在工业控制系统中。单片机具有体积小、价格低廉、开发应用方便、可应用于恶劣工业环境的特点,在分布式控制系统中多采用单片机进行数据采集和现场控制。由于单片机的计算能力有限,难以进行复杂的数据处理,因此在功能复杂的控制系统中常采上位机下位机系统,单片机用作下位机进行数据采集和设备控制,而PC机用做上位机进行复杂的数据处理和对单片机的控制。因此如何实现PC机与单片机之间的通信具有重要的现实意义。 论文详细介绍了单片机与PC机通信的软硬件实现。在硬件设计中,单片机系统与PC机系统通过RS-232串行通信端口进行互连,单片机系统将由PC 机传输过来的数据信息动态的显示在LED数码管上。在软件设计中,采用Visual Basic 6.0中的MSComm通信控件设计PC上的串口通信程序,在单片机编程上采用接近硬件系统的汇编语言编写通信程序及数据处理程序。 关键词:单片机;串行通信;VB6.0;RS-485;LED数码管 Design of a serial Communication system between MCU and personal computer Abstract Along with the development of computer, especially the technology of MCU, MCU are widely used in the system of industry control. Small size, low price, the convenience of development and application and high adaptability are its peculiarities, respectiviely. It is usually used in distributed system to collect data and control on the scene. Owing to the limit of calculation, it is difficult to process complex data. Therefore, PC lower level computer system is often applied in functionally complex system. MCU collects data and control equipments as Downside machine, while PC makes complex data processing and the control of MCU. SO how to realize the communication between PC and MCU is practically meaningful. The essay introduces the communication between PC and MCU realized by soft and hard ware in details. IN design of hardware, MCU is connected with PC by the serial port of RS-232 and display the data passed by PC on the LED dynamically. In design of software, program of serial port are designed by MSComm communication control in the language of Visual Basic 6.0, on the other hand, the program of communication and data processing are programmed by the language of assembly, which is more

文档评论(0)

花开半季 + 关注
实名认证
内容提供者

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

1亿VIP精品文档

相关文档