登录

  • 登录
  • 忘记密码?点击找回

注册

  • 获取手机验证码 60
  • 注册

找回密码

  • 获取手机验证码60
  • 找回
毕业论文网 > 毕业论文 > 电子信息类 > 电子信息工程 > 正文

基于C8051F单片机的USB接口电路及其在数据通信中的应用

 2023-05-04 08:05  

论文总字数:16617字

摘 要

:随着USB 的快速发展和广泛应用,便携式设备中越来越多的应用到了USB技术,本文通过对单片机的相关知识、USB通信协议的研究设计了一套基于单片机的USB通信系统,采用 USB 接口芯片在实验装置上扩展 USB 功能不仅可以实现 USB 单片机的功能 ,同时也降低了成本. 本人通过对单片机技术相关知识、USB通信协议等理论知识进行研究,在前人的基础上,设计了一套基于单片机的USB通信系统。本课程设计实现具有数据储存、数据通信等功能的单片机系统。该系统基于C51单片机的USB接口设计,该系统由最小C51单片机系统、USB接口模块和E2PROM模块组成。系统实现按键输入数据保存至E2PROM后,可通过USB接口传送至上位机功能。通过对系统的仿真及实物调试,完成了系统设计,实现了课程设计的要求。对于本系统设计的单片机的USB通信系统,仍然需要做进一步的研究与探索。

关键词:USB,数据通信,单片机,E2PROM

Abstract: With the rapid development and wide application of USB, portable devices is more and more applied to the USB technology , Based on the knowledge of the microcontroller , USB communication protocol study theoretical knowledge research I designed USB communication system based on single chip expand the use of USB interface chip,USB function on the experimental device not only can achieve single-chip USB function , while also reducing costs. I studied theoretical knowledge through knowledge of chip technology , USB communication protocol , on the basis of previous design a set of single-chip USB -based communication system . This course is designed to achieve single-chip system with key input , data storage , data communications and other functions. The system is designed by C51 MCU USB interface, the system consists of a minimum C51 MCU system and USB interface module. After the system to achieve key input data is saved to the E2PROM, first bit machine can function through USB interface to transfer . Through the system simulation and physical testing, complete system design, implementation of curriculum design. The system is designed for single-chip USB communication systems still need to do further research and exploration.

Keywords:USB, Data communication ,SCM,E2PROM

目录

1绪论………………………………………………………………………………6

1.1 课题研究的背景……………………………………………………………6

1.2课题研究的目的和意义………………………………………………………6

1.3 本课题主要研究的内容和章节安排………………………………………6

1.3.1 本课题主要研究内容……………………………………………………6

2 USB通信协议简介………………………………………………………………7

2.1 数据协议层…………………………………………………………………8

2.1.1 USB传输类型………………………………………………………………9

2.2 USB设备架构………………………………………………………………10

3 系统设计原理…………………………………………………………………10

3.1 USB接口简介………………………………………………………………11

3.2 I2C总线简介…………………………………………………………………12

3.3 设计方案……………………………………………………………………13

4 单元模块设计…………………………………………………………………13

4.1 USB硬件电路设计…………………………………………………………13

4.1.1 电源电路模块……………………………………………………………13

4.1.2 单片机最小系统模块……………………………………………………13

4.1.3 E2PROM模块:……………………………………………………………14

4.1.4 USB接口模块……………………………………………………………15

4.2 USB软件设计………………………………………………………………16

4.2.1主程序介绍………………………………………………………………17

4.2.2 E2PROM写程序……………………………………………………………18

4.2.3 E2PROM读程序……………………………………………………………20

4.2.4 USB接口程序………………………………………………………………23

5 测试……………………………………………………………………………25

6 结论……………………………………………………………………………24

参考文献…………………………………………………………………………27 致谢………………………………………………………………………………28

1 绪论

剩余内容已隐藏,请支付后下载全文,论文总字数:16617字

您需要先支付 80元 才能查看全部内容!立即支付

企业微信

Copyright © 2010-2022 毕业论文网 站点地图