English
Language : 

UM0212 Datasheet, PDF (8/13 Pages) STMicroelectronics – STOTG04 USB OTG full-speed
USB OTG demonstration software
UM0212
1.5
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
Note:
2.1
2.2
Note:
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.
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).
Launching the software
The USB OTG demonstration program does not require any installation.
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.
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