Upload
bob-thorton
View
230
Download
1
Embed Size (px)
DESCRIPTION
A sample project showcasing usage of the FT2232C/H microcontroller in host bus emulation mode. Made by FTDI
Citation preview
Page 1
FT2232C-Proj04 USB MCU Host Emulator - Sample Project © Future Technology Devices International Ltd. 2004
USB MCU Host Emulator – Sample ProjectUSB 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 in-stalled.
Page 2
FT2232C-Proj04 USB MCU Host Emulator - Sample Project © Future Technology Devices International Ltd. 2004
Example Schematic
The schematic shown is an example of the design tested with the application provided.
0.1uF
VCC
27R
USB "B"Connector
27R
USB DM
RSTOUT#
8
FT2232C
USB DP7
5
VCC
VCC
VCCIOA
3 42 14
1
2
3
4
Ferrite Bead
1.5K
33nF3v3OUT
6
470R
AVCC
46
GND
GND
AGND
18 25 34
10nF
VCC
RESET#4
Decoupling Capacitors
10uF
VCC
0.1uF 0.1uF
+
31
VCCIOA
GND
GND
945
TEST47
74LS373
AD0(ADBUS0)
AD1(ADBUS1)
AD2(ADBUS2)
AD3(ADBUS3)
EECS
EESK
EEDATA
10K 48
12
6MHz
27pF27pF
XTIN43
44 XTOUT
524
23
22
21
AD4(ADBUS4)
AD5(ADBUS5)
AD6(ADBUS6)
AD7(ADBUS7)
AD8(BDBUS0)
AD9(BDBUS1)
AD10(BDBUS2)
AD11(BDBUS3)
20
19
39
17
16
40
38
37
47pF
3
AD12(BDBUS4)
AD13(BDBUS5)
AD14(BDBUS6)
AD15(BDBUS7)
36
35
33
32
Data 7Data 6Data 5Data 4Data 3Data 2Data 1Data 0
ADDR 0
ADDR 1
ADDR 2
ADDR 3
ADDR 4
ADDR 5
ADDR 6
ADDR 7
ADDR 8
ADDR 9
ADDR 10
ADDR 11
ADDR 12
ADDR 13
ADDR 14
ADDR 15
4
7
8
13
14
17
18
2
5
6
9
12
15
16
19
ALE(BCBUS1)
29
CS#(BCBUS0) 30 CS#
RD#(BCBUS2) 28 RD#
27 WR#
IORDY(ACBUS2)
WR#(BCBUS3)
12IORDY
11 OSCOSC
(ACBUS3)
I/O0(ACBUS0)
I/O1(ACBUS0)
15
13
11
1
ALE
ENABLE 10
20
0.1uF
VCC
470R 470R
VCC
LED
LED
AT BUSConnector
A2A3A4A5A6A7A8A9
A31
A30
A29
A28
A27
A26
A25
A24
A23
A22
A21
A20
A19
A18
A17
A16
10k
B13
B14
ALEA11
Page 3
FT2232C-Proj04 USB MCU Host Emulator - Sample Project © Future Technology Devices International Ltd. 2004
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
Running the Sample Application
Run HostEmul.exe. The following dialogue window will be shown.
Page 4
FT2232C-Proj04 USB MCU Host Emulator - Sample Project © Future Technology Devices International Ltd. 2004
Further Information
FT2232C Device DatasheetAN2232C-01 - Command Processor For MPSSE and MCU Host Bus EmulationAN2232C-02 - Bit Mode Functions for the FT2232CAN232B-04 – Data Throughput, Latency, and Handshaking**sn74ls373.pdf - Texas instruments SNLS373 Device Data Sheet
Related Projects
FT2232C-Proj01-USB to SPI InterfaceFT2232C-Proj02-USB to I2C InterfaceFT2232C-Proj03-USB to JTAG interface
**Note – The application note refers to the FTDI’s FT232BM and FT245BM devices, but much of the infor-mation still applies to the FT2232C.
Page 5
FT2232C-Proj04 USB MCU Host Emulator - Sample Project © Future Technology Devices International Ltd. 2004
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 2777Fax : +44 ( 0 )141 429 2758
E-Mail ( Sales ) : [email protected] E-Mail ( Support ) : [email protected] ( General Enquiries ) : [email protected] Web Site URL : http://www.ftdichip.com
Agents and Sales RepresentativesPlease visit the Sales Network page of the FTDI Web site for the contact details our distributor(s) in your country.