USB MCU Host Emulator – Sample Project USB AT-Bus Interface
Transcription
USB MCU Host Emulator – Sample Project USB AT-Bus Interface
Page 1 USB MCU Host Emulator – Sample Project USB AT-Bus Interface Overview This is an example project that demonstrates using the FT2232C’s Multi-Protocol Synchronous Serial Engine (MPSSE) controller to perform MCU host bus controlling of an AT-Bus. The executable application and the full project code (in Delphi) are provided. Requirements This project is designed to run on Windows 2000 or Windows XP and requires FT2232C drivers to be installed. FT2232C-Proj04 USB MCU Host Emulator - Sample Project © Future Technology Devices International Ltd. 2004 Page 2 Example Schematic The schematic shown is an example of the design tested with the application provided. USB "B" Connector Ferrite Bead 1 27R 2 3 4 5 470R VCC 3 42 V C C 27R 6 10nF 14 31 V C C V C C I O A 3v3OUT 33nF 7 A V C C V C C I O A AD0 24 (ADBUS0) 3 AD1 23 (ADBUS1) 4 USB DM AD2 22 (ADBUS2) 7 6 USB DP AD3 21 (ADBUS3) 8 9 AD4 20 (ADBUS4) 13 12 AD5 19 (ADBUS5) 14 15 AD6 (ADBUS6) 17 17 16 AD7 16 (ADBUS7) 18 19 1.5K FT2232C 5 RSTOUT# 43 XTIN 6MHz 44 XTOUT VCC 27pF 27pF 10K 4 0.1uF 46 47pF 8 ALE 29 (BCBUS1) RESET# ALE 11 ENABLE 48 EECS 1 EESK 2 EEDATA 47 Data 7 Data 6 Data 5 Data 4 Data 3 Data 2 Data 1 Data 0 1 TEST 10uF Decoupling Capacitors ADDR 5 ADDR 6 ADDR 7 10 ADDR 11 I/O0 15 (ACBUS0) AD12 36 (BDBUS4) ADDR 12 I/O1 13 (ACBUS0) AD13 35 (BDBUS5) ADDR 13 IORDY 12 (ACBUS2) AD14 33 (BDBUS6) ADDR 14 AD15 (BDBUS7) 32 ADDR 15 45 G N D 9 G N D G N D 18 25 G N D A29 A28 A27 A26 A25 A24 0.1uF ADDR 10 A G N D A30 20 AD11 37 (BDBUS3) A11 A23 A22 A21 A20 A19 A18 A17 A16 CS# RD# (BCBUS2) 28 RD# WR# 27 (BCBUS3) WR# OSC 11 (ACBUS3) A31 VCC AD10 38 (BDBUS2) VCC + ADDR 4 ADDR 9 CS# (BCBUS0) 30 0.1uF ADDR 3 AD9 39 (BDBUS1) LED 0.1uF ADDR 2 ADDR 8 10k IORDY ADDR 1 5 AD8 40 (BDBUS0) 470R LED 74LS373 ALE VCC 470R ADDR 0 2 A2 A3 A4 A5 A6 A7 A8 A9 B14 B13 OSC 34 AT BUS Connector FT2232C-Proj04 USB MCU Host Emulator - Sample Project © Future Technology Devices International Ltd. 2004 Page 3 Running the Sample Application Run HostEmul.exe. The following dialogue window will be shown. The top left drop down menu allows you to select the device you want to open. In this example device DLP-2232M A was connected. The OPEN and CLOSE buttons open and close the port. Read Controls Address High are address bits A15 to A8. Address Low are address bits A7 to A0. Read will read the address (uses A7 to A0) and the data is displayed in the log window. Read Extended will read the address (uses A15 to A0) and the data is displayed in the log window. Write Controls Address High are address bits A15 to A8. Address Low are address bits A7 to A0. Write will write the data in the data box to the address selected (uses A7 to A0). Write Extended write the data in the data box to the address selected (uses A15-A0). General I/O Bits There are two General I/O bits – 0 and 1. These are defaulted as inputs but can be set as outputs using the 0 Out and 1 Out boxes. The Set High bow sets the IO to logic one. This can be used to toggle the LEDs. Wait Controls Allows you to queue commands on the IO before triggering on a transition caused by fitting / removing a jumper link FT2232C-Proj04 USB MCU Host Emulator - Sample Project © Future Technology Devices International Ltd. 2004 Page 4 Further Information FT2232C Device Datasheet AN2232C-01 - Command Processor For MPSSE and MCU Host Bus Emulation AN2232C-02 - Bit Mode Functions for the FT2232C AN232B-04 – Data Throughput, Latency, and Handshaking** sn74ls373.pdf - Texas instruments SNLS373 Device Data Sheet Related Projects FT2232C-Proj01-USB to SPI Interface FT2232C-Proj02-USB to I2C Interface FT2232C-Proj03-USB to JTAG interface **Note – The application note refers to the FTDI’s FT232BM and FT245BM devices, but much of the information still applies to the FT2232C. FT2232C-Proj04 USB MCU Host Emulator - Sample Project © Future Technology Devices International Ltd. 2004 Page 5 Document Revision History FT2232C-Proj04 Version 1.0 – Initial document created November 2004. Disclaimer © Future Technology Devices International Limited , 2002 - 2004 Neither the whole nor any part of the information contained in, or the product described in this manual, may be adapted or reproduced in any material or electronic form without the prior written consent of the copyright holder. This product and its documentation are supplied on an as-is basis and no warranty as to their suitability for any particular purpose is either made or implied. Future Technology Devices International Ltd. will not accept any claim for damages howsoever arising as a result of use or failure of this product. Your statutory rights are not affected. This product or any variant of it is not intended for use in any medical appliance, device or system in which the failure of the product might reasonably be expected to result in personal injury. This document provides preliminary information that may be subject to change without notice. Contact Information Future Technology Devices International Limited 373 Scotland Street, Glasgow G5 8QB, United Kingdom. Tel : +44 ( 0 )141 429 2777 Fax : +44 ( 0 )141 429 2758 E-Mail ( Sales ) : [email protected] E-Mail ( Support ) : [email protected] E-Mail ( General Enquiries ) : [email protected] Web Site URL : http://www.ftdichip.com Agents and Sales Representatives Please visit the Sales Network page of the FTDI Web site for the contact details our distributor(s) in your country. FT2232C-Proj04 USB MCU Host Emulator - Sample Project © Future Technology Devices International Ltd. 2004