1.0 Features: Virtual Com Port (VCP) Drivers For Hardware Features
1.0 Features: Virtual Com Port (VCP) Drivers For Hardware Features
1.0 Features: Virtual Com Port (VCP) Drivers For Hardware Features
The FT232BQ is the 5 x5 mm lead free QFN32 package version of the 2nd generation of FTDIs popular USB UART I.C. This device not only adds extra functionality to its FT8U232AM predecessor and reduces external component count, but also maintains a high degree of pin compatibility with the original, making it easy to upgrade or cost reduce existing designs as well as increasing the potential for using the device in new application areas.
1.0
Features
HARDWARE FEATURES Single Chip USB Asynchronous Serial Data Transfer Full Handshaking & Modem Interface Signals UART I/F Supports 7 / 8 Bit Data, 1 / 2 Stop Bits and Odd/Even/Mark/Space/No Parity Data rate 300 => 3M Baud (TTL) Data rate 300 => 1M Baud (RS232) Data rate 300 => 3M Baud (RS422/RS485) 384 Byte Receive Buffer / 128 Byte Transmit Buffer for high data throughput Adjustable RX buffer timeout Fully Assisted Hardware or X-On / X-Off Handshaking In-built support for event characters and line break condition Auto Transmit Buffer control for RS485 Support for USB Suspend / Resume through SLEEP# and RI# pins Support for high power USB Bus powered devices through PWREN# pin Integrated level converter on UART and control signals for interfacing to 5V and 3.3V logic Integrated 3.3V regulator for USB IO Integrated Power-On-Reset circuit Integrated 6MHz 48Mhz clock multiplier PLL USB Bulk or Isochronous data transfer modes 4.35V to 5.25V single supply operation UHCI / OHCI / EHCI host controller compatible USB 1.1 and USB 2.0 compatible USB VID, PID, Serial Number and Product Description strings in external EEPROM EEPROM programmable on-board via USB Compact 5 x 5 mm Lead free RoHS compliant QFN32 package.
VIRTUAL COM PORT (VCP) DRIVERS for Windows 98 and Windows 98 SE Windows 2000 / ME / Server 2003 / XP Windows XP 64 Bit Windows XP Embedded Windows CE 4.2 MAC OS-8 and OS-9 MAC OS-X Linux 2.40 and greater
D2XX (USB Direct Drivers + DLL S/W Interface) Windows 98 and Windows 98 SE Windows 2000 / ME / Server 2003 / XP Windows XP 64 Bit Windows XP Embedded Windows CE 4.2 Linux 2.40 and greater
APPLICATION AREAS USB RS232 Converters USB RS422 / RS485 Converters Upgrading RS232 Legacy Peripherals to USB Cellular and Cordless Phone USB data transfer cables and interfaces Interfacing MCU based designs to USB USB Audio and Low Bandwidth Video data transfer PDA USB data transfer USB Smart Card Readers Set Top Box (S.T.B.) PC - USB interface USB Hardware Modems USB Wireless Modems USB Instrumentation USB Bar Code Readers
Page 1 of 25
2.0
Enhancements
This section summarises the enhancements of the 2nd generation device compared to its FT8U232AM predecessor. For further details, consult the device pin-out description and functional descriptions.
Integrated Power-On-Reset (POR) Circuit The device now incorporates an internal POR function. The existing RESET# pin is maintained in order to allow external logic to reset the device where required, however for many applications this pin can now simply be hard wired to VCC. In addition, a new reset output pin (RSTOUT#) is provided in order to allow the new POR circuit to provide a stable reset to external MCU and other devices. RSTOUT# was the TEST pin on the previous generation of devices.
This gating is now done on-chip - USBEN has now been replaced with the new PWREN# signal which can be used to directly drive a transistor or P-Channel MOSFET in applications where power switching of external circuitry is required. A new EEPROM based option makes the device pull gently down its UART interface lines when the power is shut off (PWREN# is High). In this mode, any residual voltage on external circuitry is bled to GND when power is removed thus ensuring that external circuitry controlled by PWREN# resets reliably when power is restored.
Integrated RCCLK Circuit In the previous devices, an external RC circuit was required to ensure that the oscillator and clock multiplier PLL frequency was stable prior to enabling the clock internal to the device. This circuit is now embedded on-chip the pin assigned to this function is now designated as the TEST pin and should be tied to GND for normal operation. Lower Suspend Current Integration of RCCLK within the device and internal design improvements reduce the suspend current of the FT232BQ to under 200uA (excluding the 1.5k pull-up on USBDP) in USB suspend mode. This allows greater margin for peripherals to meet the USB Suspend current limit of 500uA. Support for USB Isochronous Transfers Whilst USB Bulk transfer is usually the best choice for data transfer, the scheduling time of the data is not guaranteed. For applications where scheduling latency takes priority over data integrity such as transferring audio and low bandwidth video data, the new device now offers an option of USB Isochronous transfer via an option bit in the EEPROM.
Integrated Level Converter on UART interface and control signals The previous devices would drive the UART and control signals at 5V CMOS logic levels. The new device has a separate VCC-IO pin allowing the device to directly interface to 3.3V and other logic families without the need for external level converter I.C.s
Improved Power Management control for USB Bus Powered, high current devices The previous devices had a USBEN pin, which became active when the device was enumerated by USB. To provide power control, this signal had to be externally gated with SLEEP# and RESET#.
Page 2 of 25
to the device and they will be sequentially sent to the interface at a rate controlled by the prescaler setting. As well as allowing the device to be used stand-alone as a general purpose IO controller for example controlling lights, relays and switches, some other interesting possibilities exist. For instance, it may be possible to connect the device to an SRAM congurable FPGA as supplied by vendors such as Altera and Xilinx. The FPGA device would normally be un-congured (i.e. have no dened function) at power-up. Application software on the PC could use Bit Bang Mode to download conguration data to the FPGA which would dene its hardware function, then after the FPGA device is congured the FT232BQ can switch back into UART interface mode to allow the programmed FPGA device to communicate with the PC over USB. This approach allows a customer to create a generic USB peripheral whos hardware function can be dened under control of the application software. The FPGA based hardware can be easily upgraded or totally changed simply by changing the FPGA conguration data le. Application notes, software and development modules for this application area will be available from FTDI and other 3rd parties. PreScaler Divide By 1 Fix The previous device had a problem when the integer part of the divisor was set to 1. In the 2nd generation device setting the prescaler value to 1 gives a baud rate of 2 million baud and setting it to zero gives a baud rate of 3 million baud. Noninteger division is not supported with divisor values of 0 and 1.
of on-chip VCC decoupling. Though this does not eliminate the need for external decoupling capacitors, it signicantly improves the ease of PCB design requirements to meet FCC, CE and other EMI related specications. Improved PreScaler Granularity The previous version of the Prescaler supported division by (n + 0), (n + 0.125), (n + 0.25) and (n + 0.5) where n is an integer between 2 and 16,384 (2 ). To this we have added (n + 0.375), (n + 0.625), (n + 0.75) and (n+ 0.875) which can be used to improve the accuracy of some baud rates and generate new baud rates which were previously impossible (especially with higher baud rates). Bit Bang Mode The 2nd generation device has a new option referred to as Bit Bang mode. In Bit Bang mode, the eight UART interface control lines can be switched between UART interface mode and an 8-bit Parallel IO port. Data packets can be sent
14
Page 3 of 25
Page 4 of 25
3.0
VCC
SLEEP# PWREN#
Dual Port TX Buffer 128 bytes
48MHz
3V3OUT
USBDP
USB Transceiver
USBDM
UART
USB DPLL
3V3OUT
EEPROM Interface
XTOUT
6MHZ Oscillator
x8 Clock Multiplier
48MHz
XTIN
12MHz
RESET#
RESET GENERATOR
RSTOUT#
TEST GND
3.1
Page 5 of 25
Page 6 of 25
EEPROM Interface Though the FT232BQ will work without the optional EEPROM, an external 93C46 (93C56 or 93C66) EEPROM can be used to customise the USB VID, PID, Serial Number, Product Description Strings and Power Descriptor value of the FT232BQ for OEM applications. Other parameters controlled by the EEPROM include Remote Wake Up, Isochronous Transfer Mode, Soft Pull Down on Power-Off and USB 2.0 descriptor modes. The EEPROM should be a 16 bit wide conguration such as a MicroChip 93LC46B or equivalent capable of a 1Mb/s clock rate at VCC = 4.35V to 5.25V. The EEPROM is programmable-on board over USB using a utility available from FTDIs web site (http://www.ftdichip.com). This allows a blank part to be soldered onto the PCB and programmed as part of the manufacturing and test process. If no EEPROM is connected (or the EEPROM is blank), the FT232BQ will use its built-in default VID, PID Product Description and Power Descriptor Value. In this case, the device will not have a serial number as part of the USB descriptor.
4.0
Device Pin-Out
32
25
13
26
30
24
FTDI
FT232BQ
XXYY
8 17 9 16
3V3OUT
A V V C
V C C
V C C
V C C I O
TXD RXD
25
24
USBDM
RTS# CTS#
23
22
USBDP
DTR# DSR#
21
20
RSTOUT# RESET#
DCD# RI#
19
18
27
XTIN
TXDEN TXLED#
16
12
25
26
27
28
29
30
31
32
28
RXLED#
11
32
24 23 22 21 20 19 1 2 3 4 5 6 7 8
14
2
31
15
10
18
17
16
15
14
13
12
11
10
Page 8 of 25
4.1
Signal Descriptions
16
TXDEN
OUT
USB INTERFACE GROUP Pin# 7 8 Signal USBDP USBDM Type I/O I/O Description USB Data Signal Plus ( Requires 1.5k pull-up to 3V3OUT or RSTOUT# ) USB Data Signal Minus
EEPROM INTERFACE GROUP Pin# 32 Signal EECS Type I/O Description EEPROM Chip Select. For 48MHz operation pull EECS to GND using a 10K resistor. For 6MHz operation no resistor is required. Tri-State during device reset. **Note 1 Clock signal to EEPROM. Tri-State during device reset, else drives out. Adding a 10K pull down resistor onto EESK will cause the FT232BQ to use USB Product ID 6004 (hex) instead of 6001 (hex). All of the other USB device descriptors are unchanged.**Note 1 EEPROM Data I/O Connect directly to Data-In of the EEPROM and to DataOut of the EEPROM via a 2.2K resistor. Also, pull Data-Out of the EEPROM to VCC via a 10K resistor for correct operation. Tri-State during device reset. **Note 1
EESK
OUT
EEDATA
I/O
Page 9 of 25
14
PWRCTL
IN
MISCELLANEOUS SIGNAL GROUP Pin# 4 5 Signal RESET# RSTOUT# Type IN OUT Description Can be used by an external device to reset the FT232BQ. If not required, tie to VCC. Output of the internal Reset Generator. Stays high impedance for ~ 5ms after VCC > 3.5V and the internal clock starts up, then clamps its output to the 3.3v output of the internal regulator. Taking RESET# low will also force RSTOUT# to drive low. RSTOUT# is NOT affected by a USB Bus Reset. LED Drive - Pulses Low when Transmitting Data via USB LED Drive - Pulses Low when Receiving Data via USB Input to 6MHz Crystal Oscillator Cell. This pin can also be driven by an external 6MHz clock if required. Note : Switching threshold of this pin is VCC/2, so if driving from an external source, the source must be driving at 5V CMOS level or a.c. coupled to centre around VCC/2. Output from 6MHz Crystal Oscillator Cell. XTOUT stops oscillating during USB suspend, so take care if using this signal to clock external logic. Puts device in I.C. test mode must be tied to GND for normal operation.
12 11 27
O.C. O.C. IN
28 31
XTOUT TEST
OUT IN
POWER AND GND GROUP Pin# 6 Signal 3V3OUT Type OUT Description 3.3 volt Output from the integrated L.D.O. regulator This pin should be decoupled to GND using a 33nF ceramic capacitor in close proximity to the device pin. Its prime purpose is to provide the internal 3.3V supply to the USB transceiver cell and the RSTOUT# pin. A small amount of current (<= 5mA) can be drawn from this pin to power external 3.3v logic if required. +4.35 volt to +5.25 volt VCC to the device core, LDO and non-UART interface pins. +3.0 volt to +5.25 volt VCC to the UART interface pins 10..12, 14..16 and 18..25. When interfacing with 3.3V external logic in a bus powered design connect VCCIO to a 3.3V supply generated from the USB bus. When interfacing with 3.3V external logic in a self powered design connect VCCIO to the 3.3V supply of the external logic. Otherwise connect to VCC to drive out at 5V CMOS level. Device - Ground Supply Pins Device - Analog Power Supply for the internal x8 clock multiplier Device - Analog Ground Supply for the internal x8 clock multiplier
3,26 13
VCC VCCIO
PWR PWR
9,17 30 29
**Note 1 - During device reset, these pins are tri-state but pulled up to VCC via internal 200K resistors.
Page 10 of 25
FTDI
5mm
FT232BQ
2.7mm
0.5mm
2.7mm
0.4mm
0.5mm
0.25mm
0.75mm
0.02mm
0.2mm
The FT232BQ is supplied in lead (Pb) free, leadless QFN32 package. This package has a 5 mm x 5 mm body with no protruding pins, and is ideal for for projects where package area is critical. In the above drawing all dimensions are in millimetres. Note that two date code formats are used - XXYY = Date Code where XX = 2 digit year number, YY = 2 digit week number; or XYY-1 where X = 1 digit year. number, YY = 2 digit week number. The FT232BQ is fully compliant with the European Union RoHS directive. A lead (Pb) free LQFP package device is also available, part number FT232BL.
Page 11 of 25
6.0
These are the absolute maximum ratings for the FT232BQ device in accordance with the Absolute Maximum Rating System (IEC 60134). Exceeding these may cause permanent damage to the device. Parameter Storage Temperature Floor Life (Out of Bag) at Factory Ambient (30oC/60% Relative Humidity) Ambient Temperature (Power Applied) M.T.B.F. (at 35 C)
o o
Value 65 C to + 150 C
o
Units Degrees C
192 Hours (Level 3 Compliant) **Note 2 0oC to + 70oC 247484 Hours 28 Years -0.5 to +6.00 -0.5 to +3.8 -0.5 to +(Vcc +0.5) -0.5 to +(Vcc +0.5) 24 24 500 +/- 3000 +/-200 V V V V mA mA mW V mA Degrees C
VCC Supply Voltage D.C. Input Voltage - USBDP and USBDM D.C. Input Voltage - High Impedance Bidirectionals D.C. Input Voltage - All other Inputs DC Output Current Outputs DC Output Current Low Impedance Bidirectionals Power Dissipation (VCC = 5.25V) Electrostatic Discharge Voltage (Human Body Model) (I < 1uA) Latch Up Current (Vi = +/- 10V maximum, for 10 ms)
**Note 2 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 110oC and baked for 8 to 10 hours.
6.1
D.C. Characteristics
DC Characteristics ( Ambient Temperature = 0 to 70oC ) Operating Voltage and Current Parameter Vcc1 Vcc2 Icc1 Icc2 Description VCC Operating Supply Voltage VCCIO Operating Supply Voltage Operating Supply Current Operating Supply Current Min 4.35 3.0 Typ 5.0 25 180 Max 5.25 5.25 200 Units V V mA uA Normal Operation USB Suspend **Note 3 Conditions
**Note 3 Supply current excludes the 200uA nominal drawn by the external pull-up resistor on USBDP. UART IO Pin Characteristics ( VCCIO = 5.0V ) Parameter Voh Vol Vin VHys Description Output Voltage High Output Voltage Low Input Switching Threshold Input Switching Hysteresis Min 3.2 0.3 1.3 50 Typ 4.1 0.4 1.6 55 Max 4.9 0.6 1.9 60 Units V V V mV Conditions I source = 2mA I sink = 2mA **Note 4
Page 12 of 25
**Note 4 Inputs have an internal 200K pull-up resistor to VCCIO. XTIN / XTOUT Pin Characteristics Parameter Voh Vol Vin Description Output Voltage High Output Voltage Low Input Switching Threshold Min 4.0 0.1 1.8 Typ 2.5 Max 5.0 1.0 3.2 Units V V V Conditions Fosc = 6MHz Fosc = 6MHz
RESET#, TEST, EECS, EESK, EEDATA Pin Characteristics Parameter Voh Vol Vin VHys Description Output Voltage High Output Voltage Low Input Switching Threshold Input Switching Hysteresis Min 3.2 0.3 1.3 50 Typ 4.1 0.4 1.6 55 Max 4.9 0.6 1.9 60 Units V V V mV Conditions I source = 2mA I sink = 2 mA **Note 5
**Note 5 EECS, EESK and EEDATA pins have an internal 200K pull-up resistor to VCC RSTOUT Pin Characteristics Parameter Voh Vol Description Output Voltage High Output Voltage Low Min 3.0 0.3 Typ Max 3.6 0.6 Units V V Conditions I source = 2mA I sink = 2mA
USB IO Pin Characteristics Parameter UVoh UVol UVse UCom UVDif UDrvZ Description IO Pins Static Output ( High) IO Pins Static Output ( Low ) Single Ended Rx Threshold Differential Common Mode Differential Input Sensitivity Driver Output Impedance Min 2.8 0 0.8 0.8 0.2 29 44 Typ Max 3.6 0.3 2.0 2.5 Units V V V V V Ohm **Note 5 Conditions RI = 1.5K to 3V3Out ( D+ ) RI = 15K to GND ( D- ) RI = 1.5K to 3V3Out ( D+ ) RI = 15K to GND ( D- )
**Note 5 Driver Output Impedance includes the external 27R series resistors on USBDP and USBDM pins.
Page 13 of 25
7.0 7.1
Device Conguration Examples Oscillator Congurations Figure 4 3-Pin Ceramic Resonator Conguration
FT223BM
FT232BQ
27 3-Pin Resonator 6MHz XTIN
FT232BQ
27 XTIN
1M
28
XTOUT
28
XTOUT
Figure 4 illustrates how to use the FT232BQ with a 3-Pin Ceramic Resonator. A suitable part would be a ceramic resonator from Muratas CERALOCK range. (Murata Part Number CSTCR6M00G15), or equivalent. 3-Pin ceramic resonators have the load capacitors built into the resonator so no external loading capacitors are required. This makes for an economical conguration. The accuracy of this Murata ceramic resonator is +/- 0.1% and it is specically designed for USB full speed applications. A 1 MegaOhm loading resistor across XTIN and XTOUT is recommended in order to guarantee this level of accuracy. Other ceramic resonators with a lesser degree of accuracy (typically +/- 0.5%) are technically out-with the USB specication, but it has been calculated that using such a device will work satisfactorily in practice with a FT232BQ design. Figure 5 illustrates how to use the FT232BQ with a 6MHz Crystal or 2-Pin Ceramic Resonator. In this case, these devices do not have in-built loading capacitors so these have to be added between XTIN, XTOUT and GND as shown. A value of 27pF is shown as the capacitor in the example this will be good for many crystals and some resonators but do select the value based on the manufacturers recommendations wherever possible. If using a crystal, use a parallel cut type. If using a resonator, see the previous note on frequency accuracy.
Page 14 of 25
7.2
EEPROM Conguration
Figure 6 illustrates how to connect the FT232BQ to the 93C46 (93C56 or 93C66) EEPROM. EECS (pin 32) is directly connected to the chip select (CS) pin of the EEPROM. EESK FT232BM (pin 1) is directly connected to the clock (SK) pin of the FT232BQ 32 EEPROM. EEDATA (pin 2) is directly connected to the Data EECS 1 In (Din) pin of the EEPROM. There is a potential condition EESK whereby both the Data Output (Dout) of the EEPROM can 2 EEDATA drive out at the same time as the EEDATA pin of the FT232BQ. To prevent potential data clash in this situation, the Dout of the EEPROM is connected to EEDATA of the FT232BQ via a 2.2K resistor. Following a power-on reset or a USB reset, the FT232BQ will VCC scan the EEPROM to nd out (a) if an EEPROM is attached EEPROM - 93C46 / 56 / 66 to the Device and (b) if the data in the device is valid. If both 1 8 of these are the case, then the FT232BQ will use the data in CS VCC the EEPROM, otherwise it will use its built-in default values. 7 2 SK NC When a valid command is issued to the EEPROM from the 2k2 3 6 FT232BQ, the EEPROM will acknowledge the command by DIN NC pulling its Dout pin low. In order to check for this condition, 4 5 DOUT GND it is necessary to pull Dout high using a 10K resistor. If the command acknowledge doesnt happen then EEDATA will be VCC pulled high by the 10K resistor during this part of the cycle 10k and the device will detect an invalid command or no EEPROM present. There are two varieties of these EEPROMs on the market one is congured as being 16 bits wide, the other is congured as being 8 bits wide. These are available from many sources such as Microchip, STMicro, ISSI etc. The FT232BQ requires EEPROMs with a 16-bit wide conguration such as the Microchip 93LC46B device. The EEPROM must be capable of reading data at a 1Mb clock rate at a supply voltage of 4.35V to 5.25V. Most available parts are capable of this. Check the manufacturers data sheet to nd out how to connect pins 6 and 7 of the EEPROM. Some devices specify these as no-connect, others use them for selecting 8 / 16 bit mode or for test functions. Some other parts have their pinout rotated by 90o so please select the required part and its options carefully. It is possible to share the EEPROM between the FT232BQ and another external device such as an MCU. However, this can only be done when the FT232BQ is in its reset condition as it tri-states its EEPROM interface at that time. A typical conguration would use four bits of an MCU IO Port. One bit would be used to hold the FT232BQ reset (using RESET#) on power-up, the other three would connect to the EECS, EESK and EEDATA pins of the FT232BQ in order to read / write data to the EEPROM at this time. Once the MCU has read / written the EEPROM, it would take RESET# high to allow the FT232BQ to congure itself and enumerate over USB.
Page 15 of 25
7.3
VCC
1 2 3 4
10nF
27R
27R
26 V C C V C C
13 V C C I O
30 A V C C
0.1uF
FT232BM
6
33nF
3v3OUT
8 7
USB DM USB DP
FT232BQ
1k5
5
VCC
VCC
RSTOUT#
RESET#
14
+
POWERCTL
G N D
9
G N D
17
A G N D
29
0.1uF
0.1uF
10uF
Decoupling Capacitors
Figure 7 illustrates a typical USB bus powered conguration. A USB Bus Powered device gets its power from the USB bus. Basic rules for USB Bus power devices are as follows a) On plug-in, the device must draw no more than 100mA b) On USB Suspend the device must draw no more than 500uA. c) A Bus Powered High Power Device (one that draws more than 100mA) should use the PWREN# pin to keep the current below 100mA on plug-in and 500uA on USB suspend. d) A device that consumes more than 100mA can not be plugged into a USB Bus Powered Hub e) No device can draw more that 500mA from the USB Bus. PWRCTL (pin 14) is pulled low to tell the device to use a USB Bus Power descriptor. The power descriptor in the EEPROM should be programmed to match the current draw of the device. A Ferrite Bead is connected in series with USB power to prevent noise from the device and associated circuitry (EMI) being radiated down the USB cable to the Host. The value of the Ferrite Bead depends on the total current required by the circuit a suitable range of Ferrite Beads is available from Steward (www.steward.com) for example Steward Part # MI0805K400R-00 also available as DigiKey Part # 240-1035-1.
Page 16 of 25
1 2 3 4
27R 27R
26 V C C V C C
13 V C C I O
30 A V C C
0.1uF
FT232BM
6
33nF
4k7
3v3OUT
8 7
10k
USB DM USB DP
FT232BQ
1k5
5
4
VCC
RSTOUT#
RESET#
VCC
+
14
POWERCTL
G N D
9
G N D
17
A G N D
29
0.1uF
0.1uF
10uF
Decoupling Capacitors
Figure 8 illustrates a typical USB self powered conguration. A USB Self Powered device gets its power from its own POWER SUPPLY and does not draw current from the USB bus. The basic rules for USB Self power devices are as follows a) A Self-Powered device should not force current down the USB bus when the USB Host or Hub Controller is powered down. b) A Self Powered Device can take as much current as it likes during normal operation and USB suspend as it has its own POWER SUPPLY. c) A Self Powered Device can be used with any USB Host and both Bus and Self Powered USB Hubs PWRCTL (pin 14) is pulled high to tell the device to use a USB Bus Power descriptor. The power descriptor in the EEPROM should be programmed to a value of zero. The USB power descriptor option in the EEPROM should be programmed to a value of zero (self powered). To meet requirement a) the 1.5K pull-up resistor on USBDP is connected to RSTOUT# as per the bus-power circuit. However, the USB Bus Power is used to control the RESET# Pin of the FT232BQ device. When the USB Host or Hub is powered up RSTOUT# will pull the 1.5K resistor on USBDP to 3.3V, thus identifying the device as a full speed device to USB. When the USB Host or Hub power is off, RESET# will go low and the device will be held in reset. As RESET# is low, RSTOUT# will also be low, so no current will be forced down USBDP via the 1.5K pull-up resistor when the host or hub is powered down. Failure to do this may cause some USB host or hub controllers to power up erratically. Note : When the FT232BQ is in reset, the UART interface pins all go tri-state. These pins have internal 200K pull-up resistors to VCCIO, so they will gently pull high unless driven by some external logic.
Page 17 of 25
7.4
VCC
SP213EHCA
25 7 22 20 8 6 5 26 19 21 SHDN# EN 11 2 23 1 9 3 4 27 16 28
15
0.1uF
10
25 24 23 22 21 20 19 18 16
DB9-M
3
TXD RXD RTS CTS DTR DSR DCD RI GND
T1In
R4Out
T1Out
R4In
2 7 8 4 6 1 9
5
T3In
R1Out
T2In
R2Out R3Out R5Out
T4In
C1+
T4Out
C2+
12
0.1uF
14
17
0.1uF
C1VG N D 10 11 V C C
C2V+
16 13
0.1uF
VCC
0.1uF
VCC
Figure 9 illustrates how to connect the UART interface of the FT232BQ to a TTL RS232 Level Converter I.C. to make a USB <=> RS232 converter using the popular 213 series of TTL to RS232 level converters. These devices have 4 transmitters and 5 receivers in a 28 LD SSOP package and feature an in-built voltage converter to convert the 5v (nominal) VCC to the +/- 9 volts required by RS232. An important feature of these devices is the SHDN# pin which can power down the device to a low quiescent current during USB suspend mode The device used in the example is a Sipex SP213EHCA which is capable of RS232 communication at up to 500K baud. If a lower baud rate is acceptable, then several pin compatible alternatives are available such as Sipex SP213ECA , Maxim MAX213CAI and Analog Devices ADM213E which are good for communication at up to 115,200 baud. If a higher baud rate is desired, use a Maxim MAX3245CAI part which is capable of RS232 communication at rates of up to 1M baud. The MAX3245 is not pin compatible with the 213 series devices, also its SHDN pin is active high so connect this to PWREN# instead of SLEEP#.
Page 18 of 25
FT232BM
FT232BQ
PWREN# SLEEP# TXD RXD RTS# CTS# DTR# DSR# DCD# RI#
DB9-M
TXDM
15
10
4 5 3
10 D
9
25 24 23 22 21 20 19 18 16
TXDP RXDP
120R
11 R 6 7
12
RXDM
VCC 14 SP491
4 5 3
GND
10 D
9
RTSM
RTSP CTSP
11 R 6 7
12
120R
CTSM
TXDEN
Figure 10 illustrates how to connect the UART interface of the FT232BQ to a TTL RS422 Level Converter I.C. to make a USB <=> RS422 converter. There are many such level converter devices available this example uses Sipex SP491 devices which have enables on both the transmitter and receiver. Because the transmitter enable is active high, it is connected to the SLEEP# pin. The receiver enable is active low and is connected to the PWREN# pin. This ensures that both the transmitters and receivers are enabled when the device is active, and disabled when the device is in USB suspend mode. If the design is USB BUS powered, it may be necessary to use a P-Channel logic level MOSFET (controlled by PWREN#) in the VCC line of the SP491 devices to ensure that the USB standby current of 500uA is met. The SP491 is good for sending and receiving data at a rate of up to 5M Baud in this case the maximum rate is limited to 3M Baud by the FT232BQ.
Page 19 of 25
DB9-M
15
10
3 4 2 VCC SP481 8
25 24 23 22 21 20 19 18 16
D
6
DM
DP
GND
R 5
120R
LINK
TXDEN
Figure 11 illustrates how to connect the UART interface of the FT232BQ to a TTL RS485 Level Converter I.C. to make a USB => RS485 converter. This example uses the Sipex SP481 device but there are similar parts available from Maxim and Analog Devices amongst others. The SP481 is a RS485 device in a compact 8 pin SOP package. It has separate enables on both the transmitter and receiver. With RS485, the transmitter is only enabled when a character is being transmitted from the UART. The TXDEN pin on the FT232BQ is provided for exactly that purpose and so the transmitter enable is wired to TXDEN. The receiver enable is active low, so it is wired to the PWREN# pin to disable the receiver when in USB suspend mode. RS485 is a multi-drop network i.e. many devices can communicate with each other over a single two wire cable connection. The RS485 cable requires to be terminated at each end of the cable. A link is provided to allow the cable to be terminated if the device is physically positioned at either end of the cable. In this example the data transmitted by the FT232BQ is also received by the device that is transmitting. This is a common feature of RS485 and requires the application software to remove the transmitted data from the received data stream. With the FT232BQ it is possible to do this entirely in hardware simply modify the schematic so that RXD of the FT232BQ is the logical OR of the SP481 receiver output with TXDEN using an HC32 or similar logic gate.
Page 20 of 25
VCCIO
VCCIO
TX
RX
LED
FT232BQ FT232BM
TXLED# RXLED# 12 11
220R
220R
FT232BQ FT232BM
TXLED# RXLED# 12 11
220R
The FT232BQ has two IO pins dedicated to controlling LED status indicators, one for transmitted data the other for received data. When data is being transmitted / received the respective pins drive from tri-state to low in order to provide indication on the LEDs of data transfer. A digital one-shot timer is used so that even a small percentage of data transfer is visible to the end user. Figure 12 shows a conguration using two individual LEDs one for transmitted data the other for received data. In Figure 13, the transmit and receive LED indicators are wire-ORed together to give a single LED indicator which indicates any transmit or receive data activity. Another possibility (not shown here) is to use a 3 pin common anode tri-color LED based on the circuit in Figure 13 to have a single LED that can display activity in a variety of colors depending on the ratio of transmit activity compared to receive activity. Note that the LEDs are connected to VCCIO.
Page 21 of 25
7.6 Interfacing to 3.3v Logic Figure 14 Bus Powered Circuit with 3.3V logic drive / supply voltage
3.3v LDO Regulator In Gnd Out 3.3v Power to External Logic
0.1uF
Ferrite Bead
1 2 3 4
10nF
VCC
3 V C C
6
470R
27R
27R
26 V C C
13 V C C I O
30 A V C C
0.1uF
33nF
3v3OUT
FT232BM FT232BQ
8 7 USB DM USB DP
Figure 14 shows how to congure the FT232BQ to interface with a 3.3V logic device. In this example, a discrete 3.3V regulator is used to supply the 3.3V logic from the USB supply. VCCIO is connected to the output of the 3.3V regulator, which in turn will cause the UART interface IO pins to drive out at 3.3V level. For USB bus powered circuits some considerations have to be taken into account when selecting the regulator a) The regulator must be capable of sustaining its output voltage with an input voltage of 4.35 volts. A Low Drop Out (LDO) regulator must be selected. b) The quiescent current of the regulator must be low in order to meet the USB suspend total current requirement of <= 500uA during USB suspend. An example of a regulator family that meets these requirements is the MicroChip (Telcom) TC55 Series. These devices can supply up to 250mA current and have a quiescent current of under 1uA. In some cases, where only a small amount of current is required (< 5mA) , it may be possible to use the in-built regulator of the FT232BQ to supply the 3.3v without any other components being required. In this case, connect VCCIO to the 3v3OUT pin of the FT232BQ. Note : It should be emphasised that the 3.3V supply for VCCIO in a bus powered design with a 3.3V logic interface should come from an LDO which is supplied by the USB bus, or from the 3V3OUT pin of the FT232BQ, and not from any other source.
Page 22 of 25
Figure 15 Self Powered Circuit with 3.3V logic drive / supply voltage
VCC3V
470R
VCC5V
1 2 3 4
27R 27R
0.1uF
30 A V C 6 C 3v3OUT
3 V C C
26 V C C
13 V C C I O
33nF
4K7
FT232BM FT232BQ
8 7 USB DM USB DP
VCC3V
10K
1K5
5
4
VCC5V
RSTOUT#
RESET#
PWRCTL
14
G N D
9
G N D
17
A G N D
29
0.1uF
0.1uF
10uF
Decoupling Capacitors
Figure 15 is an example of a USB self powered design with 3.3V interface. In this case VCCIO is supplied by an external 3.3V supply in order to make the device IO pins drive out at 3.3V logic level, thus allowing it to be connected to a 3.3V MCU or other external logic. A USB self powered design uses its own power supplies, and does not draw any of its power from the USB bus. In such cases, no special care need be taken to meet the USB suspend current (0.5 mA) as the device does not get its power from the USB port. As with bus powered 3.3V interface designs, in some cases, where only a small amount of current is required (<5mA), it may be possible to use the in-built regulator of the FT232BQ to supply the 3.3V without any other components being required. In this case, connect VCCIO to the 3v3OUT pin of the FT232BQ. Note that in this case PWRCTL is pulled up to VCCIO, not VCC.
Page 23 of 25
7.7 Power Switching Figure 16 Bus Powered Circuit ( <= 100mA ) with Power Control
P-Channel Power MOSFET
s d
Ferrite Bead
VCC
1 2 3 4
27R
3 V C C
26 V C C
13 V C C I O
30 A V C C
0.1uF
27R
10nF
6
33nF
3v3OUT
FT232BM FT232BQ
8 7 USB DM USB DP
PWREN#
15
USB Bus powered circuits need to be able to power down in USB suspend mode in order to meet the <= 500uA total suspend current requirement (including external logic). Some external logic can power itself down into a low current state by monitoring the PWREN# pin. For external logic that cannot power itself down in that way, the FT232BQ provides a simple but effective way of turning off power to external circuitry during USB suspend. Figure 16 shows how to use a discrete P-Channel Logic Level MOSFET to control the power to external logic circuits. A suitable device could be a Fairchild NDT456P, or International Rectier IRLML6402, or equivalent. It is recommended that a soft start circuit consisting of a 1K series resistor and a 0.1 uF capacitor are used to limit the current surge when the MOSFET turns on. Without the soft start circuit there is a danger that the transient power surge of the MOSFET turning on will reset the FT232BQ, or the USB host / hub controller. The values used here allow attached circuitry to power up with a slew rate of ~12.5 V per millisecond, in other words the output voltage will transition from GND to 5V in approximately 400 microseconds. Alternatively, a dedicated power switch i.c. with inbuilt soft-start can be used instead of a MOSFET. A suitable power switch I.C. for such an application would be a Micrel (www.micrel.com) MIC2025-2BL or equivalent. Please note the following points in connection with power controlled designs a) The logic to be controlled must have its own reset circuitry so that it will automatically reset itself when power is reapplied on coming out of suspend. b) Set the Pull-down on Suspend option in the FT232BQs EEPROM. c) For USB high-power bus powered device (one that consumes greater than 100 mA, and up to 500 mA of current from the USB bus), the power consumption of the device should be set in the max power eld in the EEPROM. A high-power bus powered device must use this descriptor in the EEPROM to inform the system of its power requirements. d) For 3.3V power controlled circuits VCCIO must not be powered down with the external circuitry (PWREN# gets its VCC supply from VCCIO). Either connect the power switch between the output of the 3.3V regulator and the external 3.3V logic OR if appropriate power VCCIO from the 3V3OUT pin of the FT232BQ.
Page 24 of 25
Section 4.1 RESET# Pin description corrected (RESET# does not have an internal 200k pull-up to VCC as previously stated). Figure 2 pin-out corrected (EECS = Pin 32).
Pin and package naming made consistent throughout data sheet. Section 1.0 Updated to reect availability of Mac OS X driver. Section 2.0 Minor corrections. Section 3.1 Minor changes to functional block descriptions of SIE, RESET Generator, and EEPROM interface. Section 4.1 Note added to EEPROM interface group. Section 4.1 RSTOUT# Pin description amended. Section 6.1 Minimum operating supply voltage adjusted. Section 6.1 EESK added to Note 3. Section 6.1 UART IO pin characteristics amended. Section 6.1 RESET#, TEST, EECS, EESK, and EEDATA pin characteristics amended. Section 6.1 RSTOUT pin characteristics amended. Section 7.1 Updated recommended ceramic resonator part number and circuit conguration. Section 7.3 USB Self Powered Conguration (1) (original gure 8 removed). Recommended circuit for USB self powered designs updated. Subsequent gure numbers have changed as a result. Section 7.6 Note added to description of Bus powered circuit with 3.3V logic drive / supply voltage. Section 7.6 Self Powered Circuit with 3.3V logic drive / supply voltage added (new gure 16).
Section 5.0 Package drawing amended Section 6.0 Floor Life / Relative Humidity specication added. ESD and Latch Up specications amended. Section 7.1 Required resonator / crystal accuracy corrected.
Section 10.0 FTDI Address Updated Section 2.0 Extended EEPROM Support corrected Section 4.1 VCCIO Pin description amended. Section 7.4 RS485 Example Sipex SP481 part number corrected.
Section 4.1 EESK Pin Description amended. Section 7.6 Figure 16 PWRCTL Pin number corrected. Section 7.7 Figure 15 PWREN# Pin number corrected.
Section 1.0 WinCE drivers now available. Section 5.0 Date code format updated. Section 6.0 Absolute Maximum Ratings table reformated.
Section 1.0 D2XX drivers for Linux and Windows CE now available. Section 5.0 FT232BQ (lead Free) and FT232BQ (lead free QFN package) now available.
Section 1.0 Driver OS Support updated. Section 6.0 USB Data line absolute maximum rating added.
Page 25 of 25
9.0 Disclaimer
Future Technology Devices International Limited , 2005 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.
Page 26 of 25