Download MMusb2232 User`s Manual
Transcript
MMusb2232 User’s Manual REV 1.0 u rd ST, ta- rve l a oa , S e Ev B VR ers b S l d n io 1, A trol We mo t i a ‘5 in ron ed r c fo cro dd s M the e s d e i m mb oar rs, peC E B e S PI its ng roll gh r K pi nt Hi fo r y o rte tot roc FID ers s o c r Pr mi s, R mm lle rs or ler gra tro f ol n o s pr oco CB e nt r l P r r u o o c tem ic s, t m m ds f s e y n S T ste ar lS n I , sy Bo tro C d I r n n e P so atio oco eb , e R c W r u AV pro val mic ed iro E dd ic ng PIC be ds m M ni T, m r , ig , S s E oa rs s e B t de VR Ki ng roll h t i r , A rte typ on Hig 1 c ‘5 Sta oto ro ID r e ic F rs P le rs or m s, R mm ve s f ller gra ntrl r Se ule tro pro oco r s, od on s m t c tem mic em i n ne s T st y S y r ohe In S C, r s B t e d PI eso tion ice , e R oc ua m Sp AV opr val IC e r r fo ic g E T, P mb E rs s M nin , S s ing r ig t R i e l ol des , AV er K typ B `51 tart roto roS s P mic , PC for s s ller er for lers d l ar tro erw les tro on b S du con ram c ro We imo et rog o n p n ed Mi her m roc d d ds et ste ic ar rs, Sy T m r o B olle In , S so tr ed IC oce ign P s co Spe R, opr De V cr B Rion h t ig r A Mi PC lua H f o rs , s oneasolution e Many ideas s er roll em Ev ds m nt st ng oar y o c S ni B Introduction MMusb2232 is low-cost integrated module for data transmission via USB 2.0 Full Speed interface with maximum transfer 12 Mbit/s. It is based on FTDI`s FT2232C device. Module features two Multi-Purpose UART/FIFO controllers that can be configured individually in several modes. In addition to the UART interface, FIFO interface, and Bit-Bang I/O modes of the second-generation FT232BM and FT245BM devices, the FT2232C offers a variety of additional modes of operation including a Multi-Protocol Synchronous Serial Engine interface designed specifically for synchronous serial protocols such as JTAG and SPI bus. MMusb2232 is made in two-layer printed circuit board technology with a solid ground plane. Module includes an integral 93C56 EEPROM on board which is programmable via USB. All signals are drive via 34 pin, 1.1 in wide footprint. Integral power control makes the MMusb2232 a perfect choice for USB bus-powered, high power designs as well as self- and low-powered products. Choosing our Minimodule is the first step for projects, which should be done in the short time. MMusb2232 could be used both prototype eliminating necessity of designing circuit board and final circuit in which module is fitted like “sandwich shape”. We wish you were successful at designing and using new devices Features Summary • • • • • • • • • • • • • • • • • • • • • • • • Single board, USB Dual Channel Serial / Parallel Ports with a variety of configurations Entire USB protocol handled on-board. No USB-specific firmware programming required UART interface option with full Handshaking & Modem interface signals UART Interface supports 7/8 bit data, 1/2 stop bits, and Odd/Even/Mark/Space/NoParity Transfer Data Rate 300 to 1 Mega Baud (RS232) Transfer Data Rate 300 to 3 Mega Baud (TTL and RS422 / RS485) Auto Transmit Enable control for RS485 serial applications using TXDEN pin MMusb245-style FIFO interface option with bi-directional data bus and simple 4-wire handshake interface Transfer Data Rate up to 1 MegaByte / Second Enhanced Bit-Bang Mode interface option New Synchronous Bit-Bang Mode interface option New CPU-Style FIFO Interface Mode option New Multi-Protocol Synchronous Serial Engine (MPSSE) interface option New MCU Host Bus Emulation Mode option New Fast Opto-Isolated Serial Interface Mode option Interface mode and USB Description strings configurable in on-board EEPROM EEPROM Configurable in-circuit via USB Support for USB Suspend and Resume conditions via PWREN#, and SI/WUx pins Support for bus powered, self powered, and high-power bus powered USB configurations Integrated Power-On-Reset circuit, with optional Reset input and Reset Output pins 5V and 3.3V logic IO Interfacing with independent level conversion on each channel USB Bulk or Isochronous data transfer modes 4.35V to 5.25V single supply operating voltage range UHCI / OHCI / EHCI host controller compatible 2 • • • USB 2.0 Full Speed (12 Mbits / Second) compatible 4 diodes LED which signalize transmission on lines TXD and RXD channel’s A and B Standard 34-pin, 0.6in wide footprint Virtual Com Port (VCP) drivers • Windows 98 / 98 SE / 2000 / ME / XP D2XX (Direct Drivers + DLL S/W) • Windows 98 / 98 SE / 2000 / ME / XP Application areas • • • • • • • • • • USB Dual Port RS2232 Converters USB Dual Port RS422 / RS485 Upgrading Legacy Peripheral Designs USB Instrumentation USB JTAG Programming USB to SPI Bus Interfaces USB Industrial Control Field Upgradeable USB Products Galvanically Isolated Products with USB Interfaces Toys General Description The MMusb2232 module is a USB interface that incorporates the functionality of two chips FT232BM and FT245BM into a single 34-pin module. A single downstream USB port is converted to two IO channels that can each be individually configured as UART interface, or FIFO interface, without the need to add a USB hub. There are also several new modes which can be enabled in the external EEPROM, or by using DLL driver commands. These include Synchronous Bit-Bang Mode, a CPU-Style FIFO Interface Mode, a Multi-Protocol Synchronous Serial Engine Interface Mode, MCU Host Bus Emulation Mode, and Fast Opto-Isolated Serial Interface Mode. Additionally, a new high output drive level option means that the device UART / FIFO IO pins will drive out at around three times the normal power level, allowing the data bus to be shared by several devices. Classic BM-style Asynchronous Bit-Bang Mode is also supported, but has been enhanced to give the user access to the device’s internal RD# and WR# strobes. FTDI provides a royalty free Virtual Com Port (VCP) driver that makes the peripheral ports look like a standard COM port to the PC. Most existing software applications should be able interface with the Virtual Com Port simply by reconfiguring them to use the new ports created by the driver. Using the VCP drivers, an application programmer would communicate with the device in exactly the same way as they would a regular PC COM port - using the Windows VCOMM API calls or a COM port library. The FT2232C driver also incorporates the functions defined for FTDI’s D2XX drivers, allowing applications programmers to interface software directly to the device using a Windows DLL. 3 MMusb2232 Module Simplified Block Diagram Figure 1. MMusb2232 block diagram. Functional Block Descriptions 6MHz Oscillator The 6MHz Oscillator cell generates a 6MHz reference clock input to the x8 Clock multiplier from an external 6MHz ceramic resonator. Multi-Purpose UART / FIFO Controllers The Multi-purpose UART / FIFO controllers handle the transfer of data between the Dual Port RX and TX buffers and the UART / FIFO transmit and receive registers. When configured as a UART it performs asynchronous 7/8 bit parallel to serial and serial to parallel conversion of the data on the RS232 (RS422 and RS485) interface. Control signals supported by UART mode include RTS, CTS, DSR, DTR, DCD and RI. There are also transmitter enable control signal pins (TXDEN) provided to assist with interfacing to RS485 transceivers. RTS/CTS, DSR/DTR and XOn/X-Off handshaking options are also supported. Handshaking, where required, is handled in hardware to ensure fast response times. The UARTs also support the RS232 BREAK setting and detection conditions. EEPROM Interface The on-board 93C56 EEPROM allows each of the MMusb2232 module’s channels to be independently configured as a serial UART (232 mode), or a parallel FIFO (245 mode). The EEPROM is used to enable the CPU-style FIFO interface, and Fast Opto-Isolated Serial interface modes. The EEPROM can also be used to customize the USB VID, PID, Serial Number, Product Description Strings and Power Descriptor value of the MMusb2232 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 is programmable in-circuit via USB using a utility program available from both FTDI’s web site (www.ftdichip.com) and www.propox.com. 4 Module Pin-Out Figure 2. Pin-Out Pin Definitions This section describes the operation of the MMusb2232 pins. Common pins are defined in the first section and the I/O pins are defined by chip mode. Common Pins The operations of the following MMusb2232 pins stay the same, regardless of the operating mode. Pin# 31 2 Signal /on module RESET /RST EXTVCC /EXTV Type Description Input Can be used by an external device to reset the FT2232C. If not required, can be left disconnected. +4.35 to +5.25 volt VCC to the device core, LDO and non-UART / FIFO controller interface pins. Device Analog Power Supply for the internal x8 clock multiplier. +3.0 to +5.25 volt VCC to the UART/FIFO Channel A interface pins. When interfacing with 3.3V external logic connect VCCIO to the 3.3V supply of the external logic, otherwise connect to VCC to drive out at 5V CMOS level. Power from USB port. Connect to EXTVCC if module is to be powered by the USB port (typical configuration). 500mA maximum current available to USB adapter and target electronics if USB device is configured for high power. Output signal 3.3V Input 4 IOVCC /IOV PWR 1 PORTVCC /PORT PWR 3 3V3OUT /3V3O PWR 5 1 9 1 1 X D 1 1 1 IS /D U D 1 2 D B U S 2 D 2 T S # D 2 2 2 D O IA 2 20 1A A D B U S 3///A A D 3R C S # D 3D D 3D D 3 T T M /C S A D 3 4 4 T R 4 4 4 0 4 2 D B U S 5 D 5 D #D 5 D 5 D 5 G P IIO L 1 A D 5 4 6 6 C D 6 6 6 2 6 23 5A A D B U S 7//A A D 7R IS # D 7E D 7# W D 7 G P O L 3 A D 7 6 0 0 T X D N R F C S R ( 6 ) 0 0 2 7 A C B U S 1 A C 1 S L E E P # T X # A 0 R D # G P I O H 1 I / O 1 8S 2S 2 R R D R #U W R 2O R D Y # 2 9 A B U S 3 /A C 3 T X L E D #S W D #(7) G IO H 3 S C 3 0 IC /W A IW A? ? I/R W U AW S ID /R W AR S IP /W U A IO Pin P i n D e f i n i t o n s b y C h i p M o d e ( 2 ) 2 3 2 4 5 n h ac n cre d M P S S EM C U s tt-ed C U P in #P ia n o s tm U A R T2 F Io F O Io F O A s y n h o n o u p ta m eo o d e M d eM IF n tP ed re faceE a n E eu rs atio nF IO sa o o n m d u leM /N M o d eB S y n c h ro n o u ss(4) (H S e rld io a B io td -d B a n g 5n )u M o el M e s / B D 0 T X D D 0 D 0 D 0 A D 8 F S D I B D B U S 0 5 B D B U S 1 //B B D 1 R X D D 1 D 1 D 1 A D 9 F S C L K 6 B D B U S 2 / D 2 R T S # D 2 D 2 D 2 A D 1 0 F S D O 7 B D B U S 3 B D 3 C T S # D 3 D 3 D 3 A D 1 F S C T 8 B D 4 D T R # D 4D D 4D D 4 A D 13 2 (3)S B D B U S 4///B 9 B D B U S 5 D 5 D S R # D 5 5 5 A D 1 1 0 B D B U S 6 B D 6 D C D # D 6 D 6 D 6 A D 1 4 1 B D B U S 7 / B D 7 R I # D 7 D 7 D 7 A D 1 5 1 2 B C B U S 0 B C 0 T X D E N R X F #R C S # W R #(((7 8) A C S # 1 3 B C B U S 1 ////B C 1 S L E E P # T X E A 0 R D # L E 1 4 B C B U S 2 B C 2 R X L E D #W R D ## D # R # D # 1 5 C B U S 3 B C 3 X L E D # W #U R D # (8 7))) R W R # 1 S I/W U B /S IW BT ? ? S I/R W U AS I/R W AW 16 7B Definitions by Chip Mode . Pin# Pin Name /on module 18 ADBUS0/AD0 Pin Definitions by Chip Mode (2) 232 UART Mode 245 FIFO Mode CPU FIFO Interface Mode Enhanced Asynchronous and Synchronous Bit-Bang Modes MPSSE (4) MCU Host Bus Enumeration Mode (5) Fast OptoIsolated Serial Mode TXD D0 D0 D0 TCK/SK AD0 (3) 6 Commentary: (2) - 232 UART, 245 FIFO, CPU FIFO Interface, and Fast Opto-Isolated modes are enabled in the external EEPROM. Enhanced Asynchronous and Synchronous Bit-Bang modes, MPSSE, and MCU Host Bus Emulation modes are enabled using driver commands. (3) - Channel A can be configured in another IO mode if channel B is in Fast Opto-Isolated Serial Mode. If both Channel A and Channel B are in Fast Opto-Isolated Serial Mode all of the IO will be on Channel B. (4) - MPSSE is Channel A only. (5) - MCU Host Bus Emulation requires both Channels. (6) - The Bit-Bang Mode (synchronous and asynchronous) WR# and RD# strobes are on these pins when the main Channel mode is 245 FIFO, CPU FIFO interface, or Fast Opto-Isolated Serial Modes. (7) - The Bit-Bang Mode (synchronous and asynchronous) WR# and RD# strobes are on these pins when the main Channel mode is 232 UART Mode. (8) - The Bit-Bang Mode (synchronous and asynchronous) WR# and RD# strobes are on these pins when the main Channel mode is 245 FIFO, CPU FIFO interface. BitBang mode is not available on Channel B when Fast Opto-Isolated Serial Mode is enabled. Technical Parameters Dimensions Weight Power supply Power dissipation : 46,16 x 31,8 x 19,63 mm : about 70 g : 5V : 500mW Mechanical Dimensions Dimensions are in miles. 1miles – 1/1000 inch 100miles = 2,54mm 7 Standard Device Configuration Examples USB Bus Powered and Self Powered Configuration Figure 3a.USB Bus Powered Configuration Figure 3b.Self Powered Configuration Figure 3a illustrates the MMusb2232 in a typical USB bus powered configuration. 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 High Power USB Bus Powered Device (one that draws more than 100mA) should use the on-board MOSFET to keep the current drawn by external circuitry to below ~70mA on plug-in and ~200uA on USB suspend. d) A device that consumes more than 100mA cannot be plugged into a USB Bus Powered Hub e) No device can draw more that 500mA from the USB Bus. The power descriptor in the EEPROM should be programmed to match the current draw required by 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. Figure 3b illustrates the MMusb2232 in a typical USB self powered configuration. 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 source. c) A Self-Powered device can be used with any USB Host and both Bus and Self Powered USB Hubs. 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 FT2232C 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 8 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 MMusb2232 is in reset, the I/O interface pins all go tri-state. These pins have 200K pull-up resistors to VCCIOx internal to the FT2232C, so they will gently pull high unless driven by some external logic. Interfacing to Microcontrollers USB Bus-Powered, 5V Systems Figure 4a shows how to configure the MMusb2232 to interface with a 5V microcontroller. In this example, the USB port is the power source for VCCIOA and VCCIOB, which in turn will cause the device interface IO pins on both channels to drive out at the 5V level. In this configuration, must be on-board MOSFET power switch controls power to the microcontroller. Care must be taken to ensure all microcontroller circuitry, when combined with the MMusb2232M circuitry, does not exceed the maximum available current from the USB port of 500mA for a high-powered USB device. 9 USB Self-Powered, 5V Systems Figure 4b is an example of a MMusb2232 USB self-powered design with 5V interface. In this case, the VCCIOA and VCCIOB pins are supplied by an external 5V supply in order to make both of the device’s IO channels drive out at 5V logic level, thus allowing them to be connected to a 5V microcontroller 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 it’s power from the USB port. Note that if the SI/WUx pins are not being used they should be pulled up to the same supply as their respective VCCIOx pin. USB Bus-Powered, 3.3V Systems Figure 4c shows how to configure the MMusb2232 to interface with a 3.3V microcontroller. In this example, a discrete 3.3V regulator is used to supply the 3.3V logic from the USB supply. VCCIOA and VCCIOB are connected to the output of the 3.3V regulator, which in turn will cause the device interface IO pins on both channels to drive out at 3.3V level. It is also possible to have one IO interface channel driving out at 5V level, and the other at 3.3V level. In this case one of the VCCIOx pins would be connected to 5V, and the other connected to 3.3V. For USB bus powered circuits, care must be taken when selecting the regulator. 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. An example of a regulator family that meets these requirements is the MicroChip (Telcom) TC55 Series. These devices can supply up to 250mA current. Note: It should be emphasized that the 3.3V supply, for VCCIOx in a bus powered design with a 3.3V logic interface, should come from an LDO that is supplied by the USB bus, not from any other source. Please also note that if the SI/WUx pins are not being used they should be pulled up to the same supply as their respective VCCIOx pin. USB Self-Powered, 3.3V Systems Figure 4d is an example of a MMusb2232 USB self-powered design with 3.3V interface. In this case, the VCCIOA and VCCIOB pins are supplied by an external 3.3V supply in order to make both of the device’s IO channels drive out at 3.3V logic level, thus allowing them to be connected to a 3.3V microcontroller or other external logic. It is also possible to have one IO interface channel driving out at 5V level, and the other at 3.3V level. In this case one of the VCCIOx pins would be connected to 5V, and the other connected to 3.3V. 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 it’s power from the USB port. Note that if the SI/WUx pins are not being used they should be pulled up to the same supply as their respective VCCIOx pin. Technical Support If You have problem with MMusb2232, please contact us at [email protected]. 10 USBVCC IOVCC 2 C1 10nF C3 100nF C5 10uF 2 EXTVCC Schematic FB1 FERRITE BEAD 1 FB2 FERRITE BEAD C6 1 100n C7 ADBUS0 ADBUS1 ADBUS2 ADBUS3 ADBUS4 ADBUS5 ADBUS6 ADBUS7 ACBUS0 ACBUS1 ACBUS2 ACBUS3 SI/WUA RESET PWREN# GND GND 33nF C2 R1 470R 10nF 46 C8 3 33nF R4 27R 8 7 AVCC 3V3OUT 47p 3V3OUT USBDM USBDP 4 43 R? 47k USBVCC X1 44 6MHz C10 47p 48 1 C11 47p 2 RESET# BDBUS0 BDBUS1 BDBUS2 BDBUS3 BDBUS4 BDBUS5 BDBUS6 BDBUS7 XTIN XTOUT EECS EESK EEDATA TEST 45 47 RSTOUT# GND GND GND GND 5 RESET ADBUS0 ADBUS1 ADBUS2 ADBUS3 ADBUS4 ADBUS5 ADBUS6 ADBUS7 ACBUS0 ACBUS1 ACBUS2 ACBUS3 SI/WUA R3 27R R2 1k5 AGND DP VCC VCC VCC-OA VCC-OB DM BCBUS0 BCBUS1 BCBUS2 BCBUS3 SI/WUB PWREN# 24 23 22 21 20 19 17 16 ADBUS0 ADBUS1 ADBUS2 ADBUS3 ADBUS4 ADBUS5 ADBUS6 ADBUS7 15 13 12 11 10 ACBUS0 ACBUS1 ACBUS2 ACBUS3 SI/WUA 40 39 38 37 36 35 33 32 BDBUS0 BDBUS1 BDBUS2 BDBUS3 BDBUS4 BDBUS5 BDBUS6 BDBUS7 30 29 28 27 26 BCBUS0 BCBUS1 BCBUS2 BCBUS3 SI/WUB 41 PWREN# U2 FT2232C 9 18 25 34 J5 USB-B C9 3 42 14 31 C4 100nF PORTVCC 1 2 3 4 JP1 JP2 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 PORTVCC EXTVCC 3V3OUT IOVCC BDBUS0 BDBUS1 BDBUS2 BDBUS3 BDBUS4 BDBUS5 BDBUS6 BDBUS7 BCBUS0 BCBUS1 BCBUS2 BCBUS3 SI/WUB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 HEADER 17 HEADER 17 USBVCC D1 LED ACBUS2 J1 D2 LED D3 LED D4 LED R5 220R RxLEDA# ACBUS3 J2 R6 220R TXLEDA# USBVCC EECS USBVCC EESK EEDATA R9 10k R10 2k2 1 2 3 4 CS SK DIN DOUT BCBUS2 J3 R7 220R RXLEDB# U1 VCC NC NC GND 8 7 6 5 BCBUS3 J4 R8 220R TXLEDB# 93C46 http://www.propox.com email: [email protected] 11 Title: USB - UART/FIFO Interface Module Size: Rev: File: Date: 27-10-2004 Sheet 1 of 1 1.00