基于VB实现PC机与单片机远距离通信研究.doc

基于VB实现PC机与单片机远距离通信研究.doc

  1. 1、本文档共60页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
基于VB实现PC机与单片机远距离通信研究

基于VB实现PC机与单片机远距离通信的研究 摘要 在现代工业数据通信中,串口通信应用比较广泛;单片机以其体积小、价格低、抗干扰性能好等优点,在现场监控和数据采集系统中也得到广泛的应用;VB由于使用方便,容易掌握,设计软件方便,工作量较小,在通信程序的编写中,也深受工程人员喜爱。基于以上三个原因,本文研究了通过VB实现的PC机与单片机的远程通信系统。 在本通信系统中,硬件电路采用RS-232串口通信;并通过电平转换实现单片机与PC机的数据连接;通过RS-232/485转换器,实现数据的远距离传输;并且对系统运行的可靠性进行了分析。软件程序中,上位机采用VB编程,实现VB操作界面和相应的功能;下位机采用C语言编程,以实现上位机对下位机的控制。最后运用PROUES软件对整个系统进行了虚拟仿真,验证了系统的可行性。 关键词:PC机,单片机,远距离通信,VB,PROTUES Based on VB realize PC and single-chip microcomputer long distance communication research Abstract In the modern industrial data communications, serial interface communication is widely used; Single-chip microcomputer with its small size, low price, anti-jamming performance are also widely used on the site supervisory control and data acquisition system; VB due to use convenient, easy to master, design software is convenient, the workload is lesser, in write communication program, also is favored by engineering personnel. Based on the above three reasons, this paper studied the PC via VB realize remote communication system with MCU. In this communication system, hardware circuit uses RS - 232 serial interface communication; multilevel conversion is used to realize data connection between MCU and PC; RS - 232/485 switch is used to realize the data transmission over a long distance; and the operation reliability of the system is analyzed. In Software program, PC use VB programming to realize the VB interface and the corresponding function; Lower level computer programmed use C language to realize the control between PC and Lower level computer. Finally PROUES software is used to simulate the whole system, verify the feasibility of the system . Key words: PC, single-chip microcomputer, long distance communication, VB, PROTUES 目录 摘要 Ⅰ Abstract Ⅱ 1 绪论 1 1.1 课题背景 1 1.2 工业自动化的通信方式 1 1.3 串行通信的详细介绍 2 1.3.1串行通信的介绍 2 1.3.2 串行通信的基本概念 2 1.3.3 串行通信的制式 3 1.3.4 通信速度与通信距离 3 1.3.5 串行接口标准 4 2 单片机串行通信原理 5 2.1 单片机串行通信接口 5 2.1.1 串行接口的基本特点 5 2.1.2 串行控制寄存器(SCON) 5 2.1.3 电源控制寄存器(PCON) 6 2.1.4 串行口的

文档评论(0)

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

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

1亿VIP精品文档

相关文档