270308$高蓝色海洋$毕业设计-基于RS-232C的串口通信试题.doc

270308$高蓝色海洋$毕业设计-基于RS-232C的串口通信试题.doc

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
基于RS-232C的串口通信 摘 要 随着计算机系统的应用和微机网络的发展,通信功能越来越显的重要。通信既包括计算机与外部设备之间,也包括计算机和计算机之间的信息交换。由于串行通信是在一根传输线上一位一位的传送信息,所用的传输线少,并且可以借助现成的电话网进行信息传送,因此,特别适合于远距离传输。串口接口RS-232C实现较为简单,可以实现全双工的实时通信。因此,它作为一种标准,目前已在微机通信接口中广泛采用。PC机与单片机之间传送数据可通过RS-232C接口实现。PC机可以作为上位机,单片机作为从机进行串口通信。PC机在Windows平台上,利用Visual Basic编程语言中的 mscomm控件可以开发串口通信程序界面,进行串口通信的实时观测,并利用MAX232进行电平转换与单片机相连。通过单片机编写通信协议就可以实现PC机与单片机之间的数据传送,从而实现基于RS-232C的串口通信控制。 关键词: 单片机 MAX232 RS-232C 串口通信 Visual Basic Serial Port Communication Based on RS-232C Abstract Along with the application of computer system and the development of microcomputer network, Communication is more and more important .It can be exchange information between computer and the peripheral equipments , and between computer and the other computers .Because the serial communication is transmitted the information with bit by bit ,it only uses a few line and also can use the ready-made telephone line .So it suits to the long-distance transmission .the RS-232C realization is simple and the communication is duplex and real-time. Therefore it is looked as a kind of standard and used in microcomputer communication widely .The realization of data communication between PC and single-chip can use RS-232C. During the communication PC is a upper machine and single-chip is host machine .In the windows platform ,using mscomm control in Visual Basic software to develop the surface of serial port communication and carry on real-time observation .Using MAX232 to realize the level conversion and connect with single-chip .Programming in the single-chip to realize the communication protocol and it can complete the data transmission. Key words: single-chip; MAX232;RS-232C; Serial port communication; Visual Basic 目 录 1引言 1 2 Visual Basic与单片机实现串口通信的总体设计方案 2 2.1 Visual Basic与单片机串口通信功能的实现方法 2 2.2 MAX232的结构与功能 3 2.3 MAX232实现PC机与单片机的联调 3 3 Visual Basic开发串口通信程序设计 5 3.1mscomm控件实现串口通信的方法 5 3.2 Visual Basic开发串

文档评论(0)

高考学子 + 关注
实名认证
内容提供者

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

1亿VIP精品文档

相关文档