1、 1 摘要 通用串行总线(USB)是一种高传输速率的串行接口总线,由于它具有即插 即用、易于扩展和高传输速率的特点(与老式的串、并口相比),随着计算机技 术的发展, 现在已经被广为应用于各种计算机外设、 数字设备以及工业领域之中。 对基于 USB 总线的数据传输的方法进行研究,充分利用这种数据传输的优越性, 能提高数据传输的速率、可靠性与方便性,这样就能更有效的利用计算机资源, 在实际应用中更好地发挥作用。 毕设设计是 USB 输出数据存储器设计,采用上位机控制信息的发送。由于 USB 接口在当今社会的广泛使用,所以在硬件这一部分采用的是将 USB 转换成串 行口通信来实现的。主要采用的是 P
2、L2303 芯片,该芯片具有此项功能。本次毕 设的主要部分是单片机接收上位机发送的信息, 然后运用 12864 液晶在将这些信 息显示出来。另外 12864 液晶中含有汉字库,也使显示字符串变得比较容易了。 在上位机这一块要采用 MSComm 控件,使上位机完成与单片机的通信。 关键词:通用串行总线;单片机;12864 液晶 2 Abstract Universal Serial Bus(USB) is a kind of the serial buses with high speed on transmitting. With the development of computer tec
3、hnology,it has been used widely for the peripheral equipment、digital device and the industrial field,for it has such advantages as Plug and Play,easy to be eapanded and the high speed on transmitting(Compared with the old-fashioned serial and parallel port).Studying the method of transmitting data b
4、ased on USB、using the advantage of this method sufficie-ntly,we can improve the speed of its transmitting 、 reliability and conbenience,use the resource of the computer availabilitily and it play an important role in practical application. Graduation design theme is usb output data storage design. a
5、nd uses a machine to control information sending. Usb interfaces are used widely in our society,so we change the usb ports into the serial communication in this part of the hardware.It mainly adopts pl2303 chip,and this chip has this function.The main part is that monolithic takes over the informati
6、on from the upper,then we use Lcd12864 to show this information. In addition, Lcd12864 contains chinese character library,so displaying the string has become more easily. Upper machine uses mscomm activex to communicate with MCU. Key Words:USB;MCU;Lcd12864 3 1 绪论 1.1 USB 简介 USB 是由世界著名计算机和通信公司等共同推出的新一代接口标准,全称为 Universal Serial Bus(通用串行总线) ,是一种快速、灵活的总线接口。它是 为了解决日益增加的 PC 外设与有限的主板插槽和端口之间的矛盾而制定的一种 串行通信标准。USB 应用十分广泛,并具有下述优点: 1、适用于多种外设,使它不需要为不同的外设准备不同的接口和协议; 2、Window