关于usb与pc机通信的问题

来源:百度知道 编辑:UC知道 时间:2024/06/01 13:46:07
我做的是,用MSP430单片机通过USB接口芯片TUSB3410用USB数据线往电脑里发送数据, 板子连在电脑上已经被电脑识别 。
TUSB3410里集成了8051单片机, 我想问想实现与电脑通信,是不是得往8051里写控制呢?怎么把程序下到8051里呢?我做的板子是430单片机连接的JATG 只能把程序下载进430里。
请高手指点!很感激!

TUSB3410的文档11章TUSB3410 Bootcode Flow上讲了很清楚步骤,通过iic下载外部存储器,或者通过USB口下载到内部。TUSB3410 bootcode is a program embedded within TUSB3410 device. This program is designed to load application
firmware from either external memory device or USB host bootloader device driver. After finished downloading,
bootcode releases its control to the application firmware.
This document describes how the bootcode initializes the TUSB3410 device in detail. In addition, the default USB
descriptor, I2C device header format, USB host driver firmware downloading format, and supported built-in USB
vendor specific requests are listed for reference. Users should carefully follow the appropriate format to interface with
the bootcode. All unsupported formats might cause unexpected results.
The bootcode source code is also provided for programming reference.而且TI的网站上还提供了程序范例。