DS FT312D
DS FT312D
Future Technology
Devices International
Ltd.
DS_FT312D
(USB Android Host IC)
The FT312D is a USB 2.0 Full Speed host IC
specifically targeted at providing access to
peripheral hardware from an Android platform with
a USB device port. The device will bridge the USB
port to a UART interface via the Android Open
Accessory protocol and has the following advanced
features:
• Single chip USB to UART interface.
• 12 MHz oscillator using external crystal.
• Entire USB protocol handled on the chip. No
• Integrated power-on-reset circuit.
USB specific firmware programming required.
• +3V3Single Supply Operation with 5V tolerant
• Supports USB bulk transfer mode
inputs.
• Basic UART interface with RXD, TXD, RTS#,
• USB 2.0 Full Speed compatible.
CTS# pins.
• Extended operating temperature range; -40⁰C
• TX_ACTIVE signal for controlling transceivers
to 85⁰C.
on RS485 interfaces.
• Available in compact Pb-free 32 Pin LQFP and
• UART RX buffer size is 5512 bytes
QFN packages (both RoHS compliant).
• UART TX buffer size is 256 bytes
• USB_ERROR indicator pin
• Suitable for use on any Android platform
supporting Android Open Accessory Mode
(Typically 3.1 onwards, however some
platforms may port Open Accessory Mode to
version 2.3.4)
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 documentat ion 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 preliminar y
information that may be subject to change without notice. No freedom to use patents or other intellectual property rights is implied by
the publication of this document. Future Technology Devices International Ltd, Unit 1, 2 Seaward Place, Centurion Business Park,
Glasgow, G41 1HH, United Kingdom.
1 Typical Applications
• Connecting Android phones to USB accessories • Home automation via Android devices
• Connecting Android tablets to USB accessories • Data logging from USB accessories
• Controlling instrumentation from Android • Connecting serial printing devices to Android
devices. devices
USB_ERROR#
TXD
RXD
USBDP
USB
RTS#
USB Host Buffer UART
USBDM Transceiver
CTS#
TX_ACTIVE
Table of Contents
16
15
14
13
12
11
10
9
NC
VCCIO
RESET#
TEST0
TEST2
GND
GND
GND
17 8
USBDP TEST1
18 7
USBDM VREGOUT
19 6
GND GND
20 5
NC FT312D XTOUT
21 4
NC QFN 32 XTIN
22 3
VCCIO AVCC
USB_ERROR#
23 2
TXD VCC
TX_ACTIVE
24 1
RXD GND
VCCIO
RTS#
CTS#
GND
GND
NC
NC
25
26
27
28
29
30
31
32
33
Note 1: The pinout is the same for the QFN and LQFP packages.
Note 2: Pin 33 on the symbol is the copper pad in the centre of the QFN package
4 Function Description
The FT312D is FTDI’s second dedicated Android Open Accessory Mode integrated circuit device or Android
Host. The FT312D USB host port is dedicated to support of the Android Open Accessory class and will
bridge data between this port and the UART interface.
The FT312DUART module controls the UART interface providing basic RXD, TXD signalling with
RTS#/CTS# hardware flow control. An additional TX_Active signal is supplied to control external RS485
transceivers for users wishing to create a USB to RS485 bridge. The UART supports baud rates from 300
baud to 921600 baud. A full description of the UART module is provided in Section 5.
4.2.2 Buffers
The FT312D provides internal buffering between the USB port and the UART port of the IC for smooth
data streaming.
The Android device can send NAK’s to the USB OUT token sent from the FT312D. This can happen when
the UART application on the Android is running in the background or multiple applications are launched in
the Android device. When the UART application on the Android device is not accepting data, the data will
be buffered in the UART RX buffer in FT312D. The UART RX buffer size is 5512 bytes.
The UART_TX buffer which stores data from the USB port, heading for the UART is 256 bytes.
The USB Host block handles the parallel-to-serial and serial-to-parallel conversion of the USB physical
layer. This includes bit stuffing, CRC generation.
USB transceiver cells provide the physical USB device interface supporting USB 1.1 and USB 2.0
standards. Low-speed and full-speed USB data rates are supported. The output driver provides 3V3 level
slew rate control signalling, whilst a differential receiver and two single ended receivers provide USB
DATA IN, SE0 and USB Reset condition detection. These cells also include integrated internal pull-down
resistors as required for host mode.
Default values for the strings are set in the device as per Table 4.1.
5 UART Interface
The interface implements a standard asynchronous serial UART port with flow control, for example
RS232/422/485. The UART can support baud rates from 300 to 921600 with RTS/CTS flow control. The
UART can support baud rates from 300 to 115200 with no flow control.
Data transfer uses NRZ (Non-Return to Zero) data format consisting of 1 start bit, 7 or 8 data bits, an
optional parity bit, and one or two stop bits. When transmitting the data bits, the least significant bit is
transmitted first. Transmit and receive waveforms are illustrated in Figure 5-1 and Figure 5-2.
Baud rate (default =9600 baud), flow control settings (default = None), number of data bits (default=8),
parity (default is no parity) and number of stop bits (default=1) are all configurable from the Android
application. Please refer to FT31XD Android Programmers Guide for further details.
TX_ACTIVE is transmit enable, this output may be used in RS485 designs to enable the line driver for
transmit mode.
UART RX buffer size is 5512 bytes and UART TX buffer size is 256 bytes.
Note:
The FT312D has to enumerate the Android device before receiving data from the UART device.
This can be implemented by disconnecting the UART TXD signal of external UART device connected to the
FT312D RXD signal until after the FT312D has established the USB link with Android device.
1. When FT312D connects to the Android device and enumeration is completed, the USB_ERROR# will
become Logic 0 (default Logic 1). This signal can be used to control the TTL gate (74LVC2G241,
74LVC1G125 or others) ON/OFF such that the TXD/RXD lines are connected/disconnected.
If the UART device has an enable pin (active high enable) such as on the GPS module, the USB_ERROR#
can also be used. The USB_ERROR# pin may be inverted with an NPN BJT then connected to the enable
pin of the GPS module.
Figure 5-4 Inverting Gate Control signal to enable GPS module (active high enable)
* If devices are stored out of the packaging beyond this time limit the devices should be baked before
use. The devices should be ramped up to a temperature of 125°C and baked for up to 17 hours.
7.1 DC Characteristics
DC Characteristics (Ambient Temperature -40˚C to +125˚C)
8 Application Examples
The following sections illustrate possible applications of the FT312D.
5V 3V3 3V3
REGULATOR
5V Power to USB
Ferrite VCC
Bead
VCCIO
1 UART_TXD
RESET# TXD
2 27R
USBDM
UART_RXD
3 RXD
USBDP
4 27R UART_RTS# MCU/FPGA
RTS#
5
UART_CTS#
47pF 47pF CTS#
SHIELD
FT312D UART_TX_ACTIVE
100nF TX_ACTIVE
GND
GND
AVCC LED
620R
3V3
USB_ERROR
VREGOUT
D
GN
3V3
GND
GND
The UART signals are at 3V3 level and may be used to drive directly into a FPGA or MCU with a 3V3
interface, or could be level shifted with an RS232, RS422 or RS485 transceiver. The TX_ACTIVE signal is
used mostly with RS485 transceivers to enable the Transmit line drivers.
5V 3V3 3V3
REGULATOR
5V Power to USB
Ferrite VCC
Bead
VCCIO TXD
DB9
1 UART_TXD 3
RESET# TXD
2 27R
USBDM RXD
UART_RXD 2
3 RXD
USBDP
4 27R RS232 RTS
UART_RTS#
RTS# LEVEL 7
CONVERTER
5 CTS
UART_CTS# 8
47pF 47pF CTS#
SHIELD 10
FT312D
5
100nF TX_ACTIVE
GND
SHIELD
GND
AVCC LED
620R
3V3
USB_ERROR
VREGOUT
D
GN
3V3
GND
GND
An example of using the FT312D as a USB to RS232 converter is illustrated in Figure 8.2. In this
application, a TTL to RS232 Level Converter IC is used on the serial UART interface of the FT312D to
convert the TTL levels of the FT312D to RS232 levels. This level shift can be done using line drivers from
a variety of vendors e.g., Zywyn.
A suitable level shifting device is the Zywyn ZT3243F which is capable of RS232 communication at up to
1000k baud.
9 Package Parameters
FT312D is available in RoHS Compliant packages, QFN package (32QFN) and an LQFP package (32LQFP).
The packages are lead (Pb) free and use a ‘green’ compound. The package is fully compliant with
European Union directive 2002/95/EC.
The mechanical drawings of the packages are shown in Sections 9.2 - all dimensions are in millimetres.
The solder reflow profile for all packages can be viewed in Section 9.3.
9.1.1 QFN-32
An example of the markings on the QFN package are shown in Figure 9-1. The FTDI part number is too
long for the 32 QFN package so in this case the last two digits are wrapped down onto the date code line.
I
XXXXXXXX Line 2 – Wafer Lot Number
1C should be printed on line 4, then a space and then the Date Code.
9.1.2 LQFP-32
An example of the markings on the LQFP package are shown in Figure 9-2.
I
XXXXXXXXXX Line 2 – Wafer Lot Number
32
1C YYWW Line 4 – Revision, Date Code
Notes:
Note 2: The centre pad should be connected to the GND plane for improved thermal conduction and
noise immunity.
Average Ramp Up Rate (Ts to Tp) 3°C / second Max. 3°C / Second Max.
Preheat
- Temperature Min (Ts Min.) 150°C 100°C
- Temperature Max (Ts Max.) 200°C 150°C
- Time (ts Min to ts Max) 60 to 120 seconds 60 to 120 seconds
10 Contact Information
Future Technology Devices International Limited (UK) Future Technology Devices International Limited (USA)
Unit 1, 2 Seaward Place, Centurion Business Park 7130 SW Fir Loop
Glasgow G41 1HH Tigard, OR 97223-8160
United Kingdom USA
Tel: +44 (0) 141 429 2777 Tel: +1 (503) 547 0988
Fax: +44 (0) 141 429 2758 Fax: +1 (503) 547 0987
Future Technology Devices International Limited (Taiwan) Future Technology Devices International Limited (China)
2F, No. 516, Sec. 1, NeiHu Road Room 1103, No. 666 West Huaihai Road,
Taipei 114 Shanghai, 200052
Taiwan, R.O.C. China
Tel: +886 (0) 2 8797 1330 Tel: +86 (21) 62351596
Fax: +886 (0) 2 8751 9737 Fax: +86 (21) 62351595
Web Site
http://ftdichip.com
System and equipment manufacturers and designers are responsible to ensure that their systems, and any Future Technology Devi ces
International Ltd (FTDI) devices incorporated in their systems, meet all applicable safety, regulatory and system-level performance
requirements. All application-related information in this document (including application descriptions, suggested FTDI devices and other
materials) is provided for reference only. While FTDI has taken care to assure it is accurate, this information is subject to customer
confirmation, and FTDI disclaims all liability for system designs and for any applications assistance provided by FTDI. Use of FTDI
devices in life support and/or safety applications is entirely at the user’s risk, and the user agrees to defend, indemnify, and hold
harmless FTDI from any and all damages, claims, suits, or expense resulting from such use. This document is subject to change without
notice. No freedom to use patents or other intellectual property rights is implied by the publication of this document. Neith er the whole
nor any part of the information contained in, or the product described in this document, may be adapted, or reproduced in any material
or electronic form without the prior written consent of the copyright holder. Future Technology Devices International Ltd, Un it 1, 2
Seaward Place, Centurion Business Park, Glasgow G41 1HH, United Kingdom. Scotland Registered Company Number: SC136640
Appendix A – References
Document References
White Paper - WP_001 Connecting Peripherals to an Android Platform
FT31XD Android Programmers Guide
List of Tables
Table 3.1 Power and Ground .......................................................................................................... 6
Table 3.2 Function Pins.................................................................................................................. 7
Table 4.1 Default Descriptor Strings ................................................................................................ 9
Table 6.1 Error Detection ............................................................................................................. 12
Table 7.1 Absolute Maximum Ratings ............................................................................................ 13
Table 7.2 Operating Voltage and Current ....................................................................................... 13
Table 7.3 I/O Pin Characteristics ................................................................................................... 13
Table 7.4 USB I/O Pin (USBDP, USBDM) Characteristics .................................................................. 14
Table 7.5 Crystal Oscillator 1.8 Volts DC Characteristics .................................................................. 14
Table 7.6 ESD and Latch-up Specifications ..................................................................................... 14
Table 9.1 Reflow Profile Parameter Values ..................................................................................... 21
Table 9.2 Package Reflow Peak Temperature .................................................................................. 21