UM0068 STMICROELECTRONICS | Alldatasheet
Document overview
- Manufacturer or author: Provided By ALLDATASHEET.COM(FREE DATASHEET DOWNLOAD SITE)
- PDF pages: 17
Technical content
Datasheet sections
- 1 Getting started
- 1.1 System requirements
- 1.2 Package contents
- 1.3 Software installation
- 1.4 Hardware installation
- 1.4.1 Power supply
- 1.4.2 Jumper settings
- 1.4.3 Device selection
- 2 Running the USB low speed evaluation board
- 2.1 Introduction
- 2.2 HID demonstrator
- 2.2.1 USB enumeration
- 2.2.2 Communication with the evaluation board
- 2.3 Remote wake-up function
- 2.4 Adding circuitry on the wire-wrap area
- 2.5 Enabling board for ICC communication
- 3 Revision history
ST7 USB low-speed evaluation board Introduction The objective of the ST7MDTULS-EVAL evaluation board is to provide a complete USB application package using a Windows-based host software application and one of ST’s range of USB low-speed microcontrollers acting as a peripheral device. The host software and the ST7 source code provide an easily-understood example of how to exchange data using the HID (human interface devices) class protocols. The firmware supplied on the ST7 devices is based on a USB core library that makes the control of all the USB interface hardware transparent to the application developer. This USB library, developed by STMicroelectronics and plug-tested by the USB IF (implementers forum), is intended for you to use as a toolbox. All the documentation you need to do this is supplied with the package. The ST7MDTULS-EVAL evaluation board incorporates basic input sources such as push- buttons, an analog trimmer and output sources (LEDs). It also has a wire-wrap area so that you can easily develop your own application. An external 12 V charge pump is also provided, to allow you to program the ST7 embedded Flash program memory using in- application programming (IAP). The following development tools can be ordered separately: assembler, linker, C compiler, source level debugger, hardware emulator, programming boards and gang programmer. For ordering information, see our website at www.st.com or contact your local sales office.
1 Getting started
1.1 System requirements
In order to use the ST7MDTULS-EVAL with the Windows operating system, a recent version of Windows, such as Windows 98, Windows Millennium, Windows 2000, or Windows XP must be installed on the PC. The version of the Windows OS installed on your PC may be determined by clicking on the “System” icon in the Control Panel. Caution: When running the HID evaluation board applet provided in the package, verify that the correct version of the HID.dll file is installed:
- Windows 98: HID.dll - Version 4.10.1998
- Windows 98 SE: HID.dll - Version 4.10.2222
- Windows Millennium: HID.dll - Version 4.90.300.1
- Windows 2000: HID.dll - Version 5.00.2134.1
- Windows XP: HID.dll - Version 5.1.2600.0
1.2 Package contents
The USB evaluation low-speed board package includes the following items:
- Hardware content – Two ST72 Low-speed USB microcontroller devices: ST7262xxx devices in SDIP42 package ST7263Bxx devices in SDIP32 package Both devices are FLASH devices allowing up to 100 reprogramming cycles. They are delivered already programmed with the demonstration firmware. – One evaluation board
- Software content – PC executable software for demonstrating HID transfers. – ST7 firmware (C source c ode) for the ST7262xxx devices – ST7 firmware (C source code) for the ST7263Bxx devices
- Documentation – USB library 4 x Interface documentation. – ST7262 and ST7263Bxx datasheets – Application note AN1325
1.3 Software installation
Run USBDemonstrator.exe to install the PC HID demonstrator, and follow the on-screen prompts to complete the installation.
1.4 Hardware installation
drawing is given in Figure 6. Figure 1. Evaluation board layout
1.4.1 Power supply
wrap area sink more than 500mA, an external power supply must be used.
1.4.2 Jumper settings
Figure 2. Device selection for analog-to-digital conversion you want to program the Flash.
1.4.3 Device selection
- ST7263Bxx devices in SDIP32 package on the internal socket
- ST7262xxx devices in SDIP42 package on the external socket ST7262xxx ST7263Bxx W6 jumper
2 Running the USB low speed evaluation board
2.1 Introduction
demonstrator running on a PC and the evaluation board itself.
- Control IN and OUT during enumeration with the bi-directional Endpoint 0.
- Interrupt IN from endpoint 1 for data transferred from the ST7 to the PC.
- Interrupt OUT to endpoint 2 for the data transferred from the PC to the ST7. Note that the Windows98 HID driver does not support interrupt OUT transfers, and automatically uses the control OUT pipe to endpoint 0 instead (Set-Output function). First connect the evaluation board to the PC with the USB cable. As a result, the evaluation board is enumerated as an HID device as shown in Figure 3, and is ready to use.
Figure 3. Enumeration result the USB HID class specifications.
2.2 HID demonstrator
2.2.1 USB enumeration
- Available USB HID devices: All the HID devices connected to the PC are displayed in this window.
- Device information This information, obtained during the enumeration phase, refers to the highlighted device in the “Available USB HID device” window: vendor ID, product ID and version numbers (refer to the USB Specification version 1.1 or higher). In addition, as string information is supported, the manufacturer name, product and serial number are displayed.
Figure 4. HID demonstrator window
2.2.2 Communication with the evaluation board
- Click on the ON/OFF button in the application dialog box to switch on the LED LD2 on the board.
- Click again to switch it OFF .
- The slider bar controls the brightness of a LED LD3 (ST7262xxx) or LD1 (ST7263Bxx). Each slider bar value will be converted to a pulse width modulation (PWM) signal by the microcontroller. Displaying the evaluation board state
- Button state: this red LED changes its state when you press the SW1 push button on the evaluation board.
- Trimmer value: this value is the result of the analog-to-digital conversion of the RV1 trimmer output. When you turn the trimmer on the evaluation board to a different position, the new ADC value is transmitted via the USB bus and displayed on the progress bar of the HID demonstrator. HID attached Device informationdevice
Figure 5. HID demonstrator window
2.3 Remote wake-up function
(ST7262xxx) or SW2 (ST7263Bxx) you can wake up the PC from standby mode.
2.4 Adding circuitry on the wire-wrap area
the wire-wrap area. Table 1 gives the definition of these points for each MCU used. Table 1. Description of evaluation board probing points
10 PC6
11 PC5
12 PC4
13 PC3
14 PC2 PC2
15 OSCIN OSCIN
16 OSCOUT OSCOUT
18 V DD VDD
19 PC1 PC1
20 PC0 PC0
21 PB7 PB7
22 PB6 PB6
23 PB5 PB5
24 PB4 PB4
25 PB3 PB3
26 PB2 PB2
27 PB1 PB1
28 PB0 PB0
29 PA7 PA7
30 PA6 PA6
31 PA5 PA5
32 PA4 PA4
33 PA3 PA3
34 PA2 PA2
35 PA1 PA1
36 PA0 PA0
37 RESET RESET
39 USBDM USBDM
40 USBDP USBDP
41 USBVCC USBVCC
Table 1. Description of evaluation board probing points (continued)
Figure 6. Board schematics
4.7 U F
2.5 Enabling board for ICC communication
PP line (mandatory for entry into ICC mode). in IAP mode. See the figure below for the recommended cut and jumper locations. Figure 7. Recommended board modi fications for ICC communication
3 Revision history
Table 2. Document revision history Added evaluation board root part number (ST7MDTULS-EVAL). Removed ST72F61 and SDIP42-DIP20 adaptor. ST7262xxx and ST7263Bxx, respectively. Added Section 2.5: Enabling board for ICC communication.