- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
本 科 毕 业 设 计 论 文
题目:基于USB协议的PC机与430单片机的通讯系统设计
系别: 电气与信息工程系 专业: 电气工程及其自动化 班级: 学号 学生姓名: 指导老师: 2014 年 5 月
摘 要
随着计算机技术的发展,尤其是单片机微型机技术领域,单片机的应用越来越广泛。为了在工业控制、数据采集及仪器仪表自动化等领域让其变得简单,我们采用分布式控制系统,而在此系统中,基于USB协议的PC机与单片机通讯系统是相对方便的。设计选用芯片为MSP430F149,它是一种工业级超低功耗的微控制器。之所以有超低功耗是因为其在降低芯片的电源电压及灵活控制运行的时钟方面都有独到之处。USB是计算机与外接设备连接的一种接口,具有连接方便,传输速率及可靠性高,能自动完成设备的检测与设置及无需单独给设备供电的特点。本设计主要介绍了如何使用一台计算机与单片机通过USB接口实现串行通信,在设计中采用单片机MSP430F149,USB转接芯使用CH341T,软件部分PC机采用C语言编程,单片机部分用中断方式完成数据的接受和发送,程序开发采用汇编语言和C语言。
关键词:MSP430单片机,USB,PC机,串行通信
ABSTRACT
With the development of computer technology,especially in the field of SCM,and it is widely applied.For industrial control,data collection and instrumentation automation and other fields allowed easier,We will use a distributed control system,while in the system,the communication system between SCM and PC based USB is relatively easy.The chip of design is NSP430F149,It is an industrial-grade ultra-low power micro controllers.The reason for this is because it reduces the chips power supply voltage and flexible control aspects are unique running clock.USB is an interface between a computer and external devices connected,With easy connection,high transmission rate and reliability, can automatically detect and set the device to the device and do not need a separate power supply characteristics.This design mainly introduces how to use a computer and a single-chip micro computer via the USB interface implementation serial communication. In this design microcontroller AT89C51, USB adapter chip CH341; Software design, PC machine adopts the C programming language used interrupt mode, microcontroller finish data sending and receiving, assemble language and Keil C used as the language of development program.
KEY WORDS : MCU、USB、personal computer、 serial communication
摘 要 I
ABSTRACT III
1绪 论 1
1.1研究现状及发展前景 1
1.2 研究目的及意义 1
1.3方案内容与结论 2
2 通讯原理 3
2.1串行通信 3
2.2 RS232原理 4
2.3. MSP430的串口通讯模块(USART) 5
2.4.USB相关原理 6
2.4.1热插拔 6
2.4.2 USB数据传输 7
2.4.3 USB总线协议 8
2.5.通信协议 13
3
文档评论(0)