1、 0 摘要摘要:本课程设计实现具有按键输入、数据储存、数据通信等功能的单片机系统。该 系统基于 C51 单片机的 USB 接口设计, 该系统由最小 C51 单片机系统、USB 接口模 块组成。系统实现按键输入数据保存至 E2PROM 后,可通过 USB 接口传送至上位机功 能。通过对系统的仿真及实物调试,完成了系统设计,实现了课程设计的要求。 关键字关键字:USB,数据通信,单片机,按键输入,E2PROM Abstract:This course designs the single slice of machine system that the realization has a keys
2、troke, the data functions, such as storage and data correspondence.etcThat system connects a peoples design according to USB of C51 single slice of machine, that system from the minimum C51 single slice of machine system, and USB pick up a people mold piece constitute.The system carries out a keystr
3、oke data to keep to E2 PROMs, can connect a highest of a peoples transmission through USB machine function.Passing is true to imitating of system and the real object adjust to try, completed a system design and carried out the request of course design. Key words:USB, data correspondence, single slic
4、e of machine, keystroke, E2PROM 0 目目 录录 前言前言 1 1 1.1.总体设计方案总体设计方案 2 2 1.11.1 接口设计方案接口设计方案 2 2 1.1.11.1.1 独立模式即(独立模式即(USBUSB 接口芯片外接接口芯片外接 C51C51 芯片)芯片) 2 2 1.1.2 USB1.1.2 USB 接口芯片集成了接口芯片集成了 MCUMCU 2 2 1.21.2 系统设计方案系统设计方案 2 2 2 2系统设计原理系统设计原理 3 3 2 2.1 USB.1 USB 接口简介接口简介 3 3 2.2 I2.2 I 2 2C C 总线简介 总线简介 3 3 3 3单元模块设计单元模块设计 4 4 3.1 USB3.1 USB 硬件电路设计硬件电路设计 4 4 3.1.13.1.1 电源电路模块电源电路模块 4 4 3.1.23.1.2 单片机最小系统模块单片机最小系统模块 5 5 3.1.3 E3.1.3 E 2 2PROM PROM 模块:模块: