PC机与单片机串行通信系统设计.doc

  1. 1、本文档共45页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
陕西理工学院毕业设计 下载后全选后字体改为黑色则能看到全部内容 PC机与单片机串行通信系统设计 宗皛峰 (陕理工计算机科学与技术院(系)计算机科学与技术专业专升本051班,陕西 汉中 723003) 指导教师:李建忠 【摘要】 针对PC机和单片机在数据采集,工业控制中遇到的通信问题。我通过学习,运用串行通信的相关原理,设计了一种以RS-232总线为通信基础的计算机应用系统PC机与单片机串行通信系统。本系统是以RS-232为接口线路,89s51及单片机学习板为硬件环境,Microsoft公司的Visual Basic作为软件开发工具,利用其提供的各种面向对象的开发工具及串行通信控件MSComm来开发的。在系统的设计中采用模块化设计思路,逐层剖析,进行了用户的需求分析,总体的系统设计,并且进行了详细代码编写,在最后对系统进行了调试。系统主要可以完成PC机和单片机之间手动的数据发送,自动的数据发送,数据传输过程中的奇偶校验,单片机的按键触发,数码管显示等功能。本系统实现了PC机和单片机通过串行总线进行数据传输的功能,并且具有友好的图形用户界面,在现行的大部分系统下的Visual Basic环境均调试成功。 【关键词】 RS-232;串行通信;MSComm;PC机与单片机 Design of The Serial Communication System for PC and Singlechip Zong Xiao-Feng (Grade05,Class01,Major Computer Science and Technology,Computer Science and Technology Dept.,Shaanxi University of Technology,Hanzhong 723003,Shaanxi) Tutor:Li Jian-Zhong Abstract: Aim at the communication problem of pc and singlechip in industial control and date gathering. I have designed a communication systemthe serial communication system for pc and singlechip. This system by using RS-232 as interface criterion, the 89s51 single chip as hardware environment. and Visual Basic 6.0 of Microsoft which provides many kinds of oriented objects as development tool, and makes the practicable system which contains the transmissions and reception of data by adopting the top-down design method, modularized design thought, and carrying out feasibility study, demand analysis and overall design of coding and debug. This system can transimitted data from pc to singlechip.The system has a friendly users’ interface and can run successfully in Visual Basic in most system. Key Words: RS-232; Serial Communication; MSComm; PC and Single Chip 目 录 TOC \o 1-3 \h \z \u 引言 h 1 1概述 h 2 1.1 总体开发规则 h 2 1.2 本文的研究内容 h 2 1.3 PC机与单片机串行通信系统的需求分析 h 2 1.3.1 PC机与单片机串行通信系统的简介 h 2 1.3.2 PC机与单片机串行通信系统的用户需求 h 2 2 PC机与单片机串行通信系统的设计基础 h 4 2.1 课题的意义 h 4 2.2 串行通信接口 h 4 2.2.1 串行通信的数据格式 h 4 2.2.2 RS-232C接口标准简介 h 5 2.3 MSComm控件的介绍 h 7 2.3.1 工作方式 h 7 2.3.2 属性说

文档评论(0)

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

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

1亿VIP精品文档

相关文档