Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
UM0212 User manual STOTG04 USB OTG full-speed transceiver demonstration board Introduction This manual explains how to use and take full advantage of the STOTG04 universal serial bus (USB) on-the-go (OTG) full-speed transceiver demonstration board, which is designed to help users evaluate their USB OTG applications. The PC board (PCB) connections make it possible to test the STOTG04 transceiver while it is connected to the USB OTG controller. Without the controller, the STOTG04 is configurable through the I2C interface. The STOTG04 is fully compliant with the USB v2.0 specification and the on-the-go supplement to this specification (see http://www.usb.org for details). It provides a complete physical layer (PHY) solution for any USB OTG device. When the STOTG04 is connected to a USB OTG controller, it is ideal for use with several mobile applications (such as cell phones, digital cameras, printers and PDAs). The STOTG04 transceiver is controlled by the "USB OTG Demo" software that runs on Microsoft Windows operating systems. This software enables designers to configure and monitor the transceiver’s internal registers. Figure 1. November 2008 STOTG04 demonstration board Rev 2 1/13 www.st.com www.BDTIC.com/ST Contents UM0212 Contents 1 STOTG04 demonstration board hardware . . . . . . . . . . . . . . . . . . . . . . . 3 1.1 STOTG04 power requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.2 Connecting to a PC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.3 Jumper assignments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.4 Connector assignments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.4.1 1.5 2 CON3 pin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Reset switch (SW1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 USB OTG demonstration software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1 Launching the software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.2 PC-to-demonstration board communication . . . . . . . . . . . . . . . . . . . . . . . . 8 2.3 STOTG04 registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Appendix A STOTG04 demonstration board schematics . . . . . . . . . . . . . . . . . . 10 Appendix B STOTG04 demonstration board bill of materials. . . . . . . . . . . . . . . 11 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 2/13 www.BDTIC.com/ST UM0212 1 STOTG04 demonstration board hardware STOTG04 demonstration board hardware The demonstration board consists of six main parts (see Figure 2 and Figure 3). ● Power supply pins (VBAT and VIF) ● Level shifters ● The STOTG04 full-speed transceiver ● Configuration jumpers ● A USB OTG controller connector ● A reset switch (see Section 1.5). The STOTG04 needs two types of power supply voltages to function (see Section 1.1). The battery supply voltage (VBAT) supplies power to the analog functions, and the digital interface voltage (VIF) supplies power to the digital interface. These supply voltages are connected to the demonstration board through the power pins. The board can also be controlled by a PC serial port (see Section 1.2). The RS-232C PC signal levels are converted to I2C levels by the level shifter block. The jumpers allow users to test and measure the STOTG04 characteristics without a USB OTG controller (see Section 1.3). The USB OTG controller header connector enables the user to connect a USB OTG controller (see CON3 pin) or any digital control system to the demonstration board. USB or USB OTG devices can be connected via the mini-AB connector (see Appendix A: STOTG04 demonstration board schematics). Figure 2. STOTG04 demonstration board block diagram Power Pins (VBAT, VIF) DB-9 Serial Port Connector RS232C ↔ I2C Level Shifters I2C signals USB OTG Controller Header Connector STOTG04 USB OTG Full-speed Transceiver VBUS, DP, DM, ID Mini-AB Connector INT, SUSPEND, DAT_VP, SE0_VM, RCV, VM, VP, RESET, SPEED, OE_TP_INT Jumpers RESET AI11879 3/13 www.BDTIC.com/ST Reset Test points Jumpers 4/13 www.BDTIC.com/ST Jumpers STOTG04 Transciver Test points RS-232 I2C Level Shifter Figure 3. USB OTG controller header connector Jumpers Power pins STOTG04 demonstration board hardware UM0212 Assembled demonstration board PCB UM0212 STOTG04 demonstration board hardware Figure 4. 1.1 Demonstration board layout STOTG04 power requirements The recommended supply voltages of the transceiver are: ● VIF = 1.6 V to 3.6 V (VIF = 1.8 V, typ) ● VBAT = 2.7 V to 5.5 V (VBAT = 3.3 V, typ). The demonstration board was designed for these same voltage ranges. However, the board does not contain any voltage regulators, so if only one common supply voltage is used, the following range is recommended: VCOMMON = 2.7 V to 3.6 V Note: Jumper J7 connecting the VBAT and VIF power supply pins has to be shorted (see Table 1). 1.2 Connecting to a PC The STOTG04 demonstration board must be connected to the PC serial port via a non-crossed serial cable. The PC serial port can be selected in the USB OTG demonstration board software (see Chapter 2). 5/13 www.BDTIC.com/ST STOTG04 demonstration board hardware 1.3 UM0212 Jumper assignments Table 1. Demonstration board jumper assignments(1) Jumper Related pin (s) J1 J2 J3 Enables the differential driver or I2C mode (when TRANSP_EN Bit = 1) Open Interrupt output when SUSPEND = 0 (J2) and SUSPEND Bit = 1 Short Disables power-down mode when SUSPEND Bit = 1 Open Enables power-down mode when SUSPEND Bit = 1 Short Enables low-speed mode operation Open Enables full-speed mode operation Short Provides power to the VIF pin. Can be used for current consumption measurement Open VIF pin is left floating Short Provides power to the VBAT pin. Can be used for current consumption measurement Open VBAT pin is left floating Short The lsb of the I2C address is '0' Open The lsb of the I2C address is '1' Short VBAT = VIF (VCOMMON must be 3.0 V - 3.6 V) Open VBAT ≠ VIF (use recommended VBAT and VIF) Short Internal LDO regulator bypassed (usable only when the VBAT supply voltage is between 3.0 V and 3.6 V) Open Internal LDO regulator operational SUSPEND SPEED VIF J5 VBAT J6 J8 Short OE_TP_INT J4 J7 Function ADR VBAT, VIF VTRM, VBAT 1. See Figure 4. 6/13 www.BDTIC.com/ST UM0212 1.4 STOTG04 demonstration board hardware Connector assignments Table 2. Demonstration board connectors(1) Connector Descriptions CON1 Power supply pins (P7-P14): VBAT, VIF, and GND CON2 USB Mini-AB connector for USB/USB OTG devices CON3 Header connector for the USB OTG controller via the serial interface engine (SIE) signals (see Section 1.4.1) CON4 DSUB-9 connector for the PC serial port used to control the transceiver through the I2C bus 1. See Figure 4. 1.4.1 CON3 pin The USB OTG controller accesses the USBOTG04’s SIE through the CON3 connector and controls the following signals (see Table 3): ● DAT_VP ● SE0_VM ● RCV ● OE_TP_INT ● I2C bus, and ● other main signals used by most types of OTG controllers. Warning: Table 3. The Q1 and Q3 transistor bases MUST be connected to GND BEFORE the demonstration board is connected to the USB OTG controller. The Q1 and Q3 bases are connected to the R1 and R3 resistors (see Appendix A: STOTG04 demonstration board schematics). CON3 pin assignments Pin No. Description Pin no. Description 1 GND 8 SPEED 2 Not connected 9 VM 3 SCL (I2C clock signal) 10 OE_TP_INT 4 SDA (I2C data signal) 11 RVC 5 INT 12 VP 6 RESET 13 DAT_VP 7 SUSPEND 14 SE0_VM 7/13 www.BDTIC.com/ST USB OTG demonstration software 1.5 UM0212 Reset switch (SW1) The Reset switch (see Figure 3 and Figure 4) can be used to manually reset the STOTG04 hardware. The reset pulse can also be generated by the USB OTG controller via the CON3 RESET pin (see Table 3). 2 USB OTG demonstration software The "USB OTG Demo" software controls the STOTG04 full-speed transceiver. The application requires a PC with at least one serial port, and any Windows® operating system. Note: This software has been tested on Windows XP. The software configures and monitors the STOTG04’s internal registers. It sends and receives I2C signals with RS-232C voltage levels via the serial port. The RS-232C PC signal levels are converted to the proper I2C signal levels by the demonstration board’s level shifter (see Chapter 1). 2.1 Launching the software The USB OTG demonstration program does not require any installation. 2.2 1. Copy the "demo.exe" file to a destination folder or C:\temp directory 2. Double-click on the "demo.exe" file to launch the PC-to-demonstration board interface window 3. Use the RS-232C cable to connect the board to the PC (or confirm this connection if it is already set-up) 4. Select the correct PC serial port in the interface window (for example COM1, COM2, COM3 or COM4) 5. Select the STOTG04 address in the interface window (for example 2Ch or 2Dh). The default address is "2Dh", which is equivalent to open jumper J6 (see Section 1.3: Jumper assignments) 6. Select the correct device version (STOTG04E or STOTG04ES) 7. Connect the correct supply voltage to the demonstration board. PC-to-demonstration board communication Communication is controlled by two programming buttons (see Figure 5, bottom-right): ● Read all ● Write all. These buttons enable READs or WRITEs to all of the STOTG04 registers, otherwise the program cannot communicate with the STOTG04. Note: For correct use of the application and to prevent any anomalous behavior, it is important to understand the STOTG04 registers as well as the READ/WRITE sequence of the USB OTG demonstration program when multiple registers are changing at the same time. 8/13 www.BDTIC.com/ST UM0212 2.3 USB OTG demonstration software STOTG04 registers The STOTG04 has four types of registers (see Figure 5). ● Control registers ● Interrupt registers (source, latch, and falling/rising edges) ● Information registers (vendor ID and product ID) ● STOTG04 device address (2Ch or 2Dh) registers. Having a general knowledge of the registers may prevent certain anomalies. For example, if the J1 jumper is shorted and the "TRANSP_EN" bit has been set by mistake, the STOTG04 stops I2C communication with the board because it is now in "Transparent I2C" mode. The communication can be reinstated by opening J1. Knowing the READ and WRITE sequence is important for using the interrupt registers, especially when multiple registers are changing at the same time. In these cases, the interrupt’s "falling edge" and "rising edge" registers have the highest priority. For example, to monitor the VBUS_VLD interrupt (this is usually done when the charge pump is switched ON): 1. set the VBUS_VLD bit in the "rising edge" register and the VBUS_DRV bit in "Control Register2" 2. Click on the "Write All" button The register WRITE order (priority) is: – "Write [Rising Edge (VBUS_VLD)]" THEN – "Write [Control Register 2 (VBUS_DRV)]". The user should always monitor the "Status" field to see if READ or WRITE operations are successful. Note that the TRANSP_EN bit in the control register 1 and the 2V7_EN bit in the control register 3 are enabled only when the STOTG04E device version is selected. The "VendorID" and "ProductID" registers are read-only and provide the STOTG04’s identity. Note: See the STOTG04 USB OTG full-speed transceiver datasheet for details. Figure 5. USB OTG demonstration user interface registers Interrupt source, latch, and falling/rising edges Control STOTG04 information (read-only) Note: STOTG04 device version STOTG04 device address Serial port address field Control buttons These are STOTG04 register settings after the first "Read All" instruction. 9/13 www.BDTIC.com/ST scl int/ suspend VM RCV DAT_VP DB9 R10 10k VBAT P4 CON1 1 1 6 2 7 3 8 4 9 5 2 4 6 8 10 12 14 100nF P6 CON1 1 P5 15 12 9 14 7 1 GND R1OUT R2OUT T1OUT T2OUT CON1 USB OTG Controller 1 3 5 7 9 11 13 CON3 VIF U1 ST3232 V+ V- C2+ C2- C1+ C1- R1IN R2IN T1IN T2IN C13 1 C12 100nF 2 6 4 5 1 3 13 8 11 10 VBAT CON1 P2 100nF 100nF C11 100nF C10 C9 J2 JUMPER R12 10k DTR RTS DSR 16 VCC CON1 1 P1 J1 JUMPER R11 47k CON1 1 P3 J3 JUMPER R13 10k sda reset/ speed oe_tp_int/ VP SE0_VM 47k R3 R5 470 VBAT Q2 2STR1215 47k R1 J6 JUMPER adr R14 10k Q3 2STR1215 R6 470 VIF 47k R2 Q1 2STR1215 R4 470 VIF 2 CON4 2 1 2 1 www.BDTIC.com/ST 2 1 10/13 1 scl VIF sda 2 JUMPER J4 CON1 1 P9 CON1 1 P8 1 1 1 adr oe_tp_int/ SE0_VM DAT_VP VM VP RCV reset/ int/ speed suspend 2 17 9 13 14 10 11 12 4 5 6 8 1 2 3 24 SW1 RESET JUMPER J7 sda C8 100nF scl VIF-U2 C7 1µF R9 10k VIF P10 CON1 1 VBAT 1 2 1 2 1 1 P14 CON1 STOTG04E GND OE_TP_INT/ SE0_VM DAT_VP VM VP RCV RESET/ INT/ SPEED SUSPEND CGND VTRM ID DD+ VBUS CAP2 CAP1 VBAT CON1 1 P13 CON1 1 P12 23 7 18 15 D16 D+ 19 22 21 20 R8 R7 22 22 C1 220nF VBUS DM DP ID 1 VTRM C3 100nF 1 ID DM DP VBAT-U2 1 J5 1 2 3 4 5 C2 1µF C5 100nF VBUS 1 VBUS DD+ ID GND C6 4.7µF C4 JUMPER 4.7µF 2 P15 P16 P17 P18 CON1 CON1 CON1 CON1 1 P11 CON1 ADR SDA SCL VIF U2 reset/ VIF 6 7 S0 S1 S2 S3 8 9 J J VBAT CO USB Figure 6. 2 Appendix A 1 P7 CON1 STOTG04 demonstration board schematics UM0212 STOTG04 demonstration board schematics STOTG04 demonstration board schematics UM0212 STOTG04 demonstration board bill of materials Appendix B Table 4. STOTG04 demonstration board bill of materials STOTG04 bill of materials Part type Qty Designator Footprint ST3232 1 U1 SO-16 STOTG04 1 U2 QFN-24 100 nF ±10% 8 C3, C5, C8, C9, C10, C11, C12, C13 0805 1 µF ±10%/16 V/X7R (high cap ceramic) 2 C2, C7 0805 220 nF ±10%/25 V/X7R 1 C1 0805 4,7 µF ±10%/6.3 V/X5R (high cap ceramic) 2 C4, C6 0805 47 kΩ ±5% 4 R1, R2, R3, R11 0805 470 Ω ±5% 3 R4, R5, R6 0805 22 Ω ±5% 2 R7, R8 0805 10 kΩ ±5% 5 R9, R10, R12, R13, R14 0805 Jumper 6 J1, J2, J3, J6, J7, J8 Thru-hole Header 1 18 P1-P18 Thru-hole Header 7x2 1 CON3 Thru-hole DSUB-9 (male) 1 CON4 Thru-hole Switch 1 SW1 Thru-hole MINI USB-AB receptacle 1 CON2 USB mini A-B 2STR1215 3 Q1, Q2, Q3 SOT-23 11/13 www.BDTIC.com/ST Revision history UM0212 Revision history Table 5. Document revision history Date Revision Changes 22-Jun-2006 1 Initial release 19-Nov-2008 2 Modified: Figure 5 12/13 www.BDTIC.com/ST UM0212 Please Read Carefully: Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any time, without notice. All ST products are sold pursuant to ST’s terms and conditions of sale. Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no liability whatsoever relating to the choice, selection or use of the ST products and services described herein. No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such third party products or services or any intellectual property contained therein. UNLESS OTHERWISE SET FORTH IN ST’S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT. UNLESS EXPRESSLY APPROVED IN WRITING BY AN AUTHORIZE REPRESENTATIVE OF ST, ST PRODUCTS ARE NOT DESIGNED, AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, SPACE, LIFE SAVING, OR LIFE SUSTAINING APPLICATIONS, NOR IN PRODUCTS OR SYSTEMS, WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY, DEATH, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE. Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any liability of ST. ST and the ST logo are trademarks or registered trademarks of ST in various countries. Information in this document supersedes and replaces all information previously supplied. The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners. © 2008 STMicroelectronics - All rights reserved STMicroelectronics group of companies Australia - Belgium - Brazil - Canada - China - Czech Republic - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan Malaysia - Malta - Morocco - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States of America www.st.com 13/13 www.BDTIC.com/ST