FT2232C - FTDI
FT2232C - FTDI
FT2232C - FTDI
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Overview<br />
USB to I²C Bus Interface - Sample Project<br />
Page 1<br />
This example project for the <strong>FT2232C</strong> demonstrates how to use the devices Multi-Protocol synchronous<br />
Serial Engine (MPSSE) to make a USB to I²C bus interface. The executable application and full project code<br />
(in Delphi) are provided.<br />
Requirements<br />
This project is designed to run on Windows 2000 or Windows XP and requires <strong>FTDI</strong>’s <strong>FT2232C</strong> drivers to<br />
be installed<br />
Test Circuit<br />
This project was developed and tested using the following circuit. 4 of the signal lines on channel A of the<br />
<strong>FT2232C</strong> were used.<br />
USB "B"<br />
Connector<br />
5<br />
1<br />
2<br />
3<br />
4<br />
10nF<br />
Ferrite Bead<br />
27R<br />
47pF<br />
0.1uF 0.1uF<br />
27R<br />
VCC<br />
1.5K<br />
27pF<br />
+<br />
10uF<br />
6MHz<br />
VCC<br />
VCC<br />
27pF<br />
10K<br />
Decoupling<br />
Capacitors<br />
33nF<br />
6<br />
8<br />
7<br />
3 42 14<br />
V<br />
C<br />
C<br />
3v3OUT<br />
V<br />
C<br />
C<br />
USB DM<br />
USB DP<br />
5<br />
RSTOUT#<br />
43<br />
XTIN<br />
44 XTOUT<br />
4<br />
RESET#<br />
48<br />
EECS<br />
1<br />
EESK<br />
2<br />
EEDATA<br />
47<br />
TEST<br />
V<br />
C<br />
C<br />
I<br />
O<br />
A<br />
470R<br />
<strong>FT2232C</strong><br />
A<br />
G<br />
N<br />
D<br />
45<br />
G<br />
N<br />
D<br />
31<br />
V<br />
C<br />
C<br />
I<br />
O<br />
A<br />
G<br />
N<br />
D<br />
9<br />
G<br />
N<br />
D<br />
<strong>FT2232C</strong>-Proj02 USB to I²C Bus - Sample Project v1.1 © Future Technology Devices International Ltd. 2004<br />
46<br />
G<br />
N<br />
D<br />
18 25 34<br />
A<br />
V<br />
C<br />
C<br />
0.1uF<br />
23<br />
ADBUS1<br />
ADBUS2 22<br />
ADBUS0<br />
24<br />
ADBUS4<br />
20<br />
Vcc<br />
10k 10k 10k<br />
10k<br />
A0<br />
A1<br />
A2<br />
GND<br />
Vcc<br />
24LC02<br />
10k<br />
VCC<br />
WP<br />
SCC<br />
SDA<br />
Vcc
Running the Sample Application<br />
Page 2<br />
Run I²CTest.exe. The following dialogue window will be shown. Use the Device name drop down menu to<br />
select the MPSSE device that you want to talk to.<br />
Read - this will read the current contents of the 24LC02. If the EEPROM is blank FF’s will be shown.<br />
Erase - this will erase the EEPROM contents.<br />
Prog To Addr - This will program the address value (in hex) to each address in the EEPROM. i.e. 0000 will<br />
be programmed to address 0000, 0001 to address 0001,...., and 007F to address 007F.<br />
Prog Frm File - This allows the EEPROM to be programmed with data from a file stored on the PC. The<br />
file used to program can be selected using Open from the File menu. The file path will be displayed under<br />
the File Name field.<br />
I2C Address - Can be used to select the target device using the address lines if multiple I²C devices are connected<br />
to the <strong>FT2232C</strong>.<br />
Clk Divisor - Allows the clock divisor for programming the EEPROM to be set.<br />
The full Delphi project files are available for this application program.<br />
Further Information<br />
<strong>FT2232C</strong> Device Datasheet<br />
AN2232C-01 - Command Processor For MPSSE and MCU Host Bus Emulation<br />
AN2232C-02 - Bit Mode Functions for the <strong>FT2232C</strong><br />
<strong>FT2232C</strong>-Proj01 - USB to SPI Bus Sample Project<br />
<strong>FT2232C</strong>-Proj02 USB to I²C Bus - Sample Project v1.1 © Future Technology Devices International Ltd. 2004
Document Revision History<br />
<strong>FT2232C</strong>-Proj02 Version 1.0 – Initial document created May 2004.<br />
<strong>FT2232C</strong>-Proj02 Version 1.1 – November 2004 - Circuit diagram updated.<br />
Disclaimer<br />
© Future Technology Devices International Limited , 2002 - 2004<br />
Neither the whole nor any part of the information contained in, or the product described in this manual, may be<br />
Page 3<br />
adapted or reproduced in any material or electronic form without the prior written consent of the copyright holder.<br />
This product and its documentation are supplied on an as-is basis and no warranty as to their suitability for any<br />
particular purpose is either made or implied.<br />
Future Technology Devices International Ltd. will not accept any claim for damages howsoever arising as a result of<br />
use or failure of this product. Your statutory rights are not affected.<br />
This product or any variant of it is not intended for use in any medical appliance, device or system in which the failure<br />
of the product might reasonably be expected to result in personal injury.<br />
This document provides preliminary information that may be subject to change without notice.<br />
Contact Information<br />
Future Technology Devices International Limited<br />
373 Scotland Street,<br />
Glasgow G5 8QB,<br />
United Kingdom.<br />
Tel : +44 ( 0 )141 429 2777<br />
Fax : +44 ( 0 )141 429 2758<br />
E-Mail ( Sales ) : sales1@ftdichip.com<br />
E-Mail ( Support ) : support1@ftdichip.com<br />
E-Mail ( General Enquiries ) : admin1@ftdichip.com<br />
Web Site URL : http://www.ftdichip.com<br />
Agents and Sales Representatives<br />
Please visit the Sales Network page of the <strong>FTDI</strong> Web site for the contact details our distributor(s) in your country.<br />
<strong>FT2232C</strong>-Proj02 USB to I²C Bus - Sample Project v1.1 © Future Technology Devices International Ltd. 2004