ST ST7 Series User manual

ST7 FAMILY
USB LOW-SPEED
EVALUATION BOARD
GETTING STARTED
October 2002
DOC-USB LOW-SPEED Evaluation Board

USE IN LIFE SUPPORT DEVICES OR SYSTEMS MUST BE EXPRESSLY AUTHORIZED.
STMicroelectronics PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL COMPONENTS IN
LIFE SUPPORT DEVICES OR SYSTEMS WITHOUT THE EXPRESS WRITTEN APPROVAL OF
STMicroelectronics. As used herein:
1. Life support devices or systems are those
which (a) are intended for surgical implant into
the body, or (b) support or sustain life, and
whose failure to perform, when properly used in
accordance with instructions for use provided
with the product, can be reasonably expected
to result in significant injury to the user.
2. A critical component is any component of a life
support device or system whose failure to
perform can reasonably be expected to cause
the failure of the life support device or system,
or to affect its safety or effectiveness.
1

October 2002 1/12
Rev. 1.2
ST7 USB LOW-SPEED
MICROCONTROLLERS
USB LOW-SPEED EVALUATION BOARD
INTRODUCTION
The objective of this evaluation board is to provide you with 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 class pro-
tocols. 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.
This 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 de-
velop your own application. An external 12V charge pump is also provided, to allow you to pro-
gram 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 http://www.stmcu.com or contact your local sales of-
fice.
1

2/12
Table of Contents
12
INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1 GETTING STARTED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.1 SYSTEM REQUIREMENTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2 PACKAGE CONTENTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.3 SOFTWARE INSTALLATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.4 HARDWARE INSTALLATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.4.1 Power Supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.4.2 Jumper Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.4.3 Device Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2 RUNNING THE USB LOW SPEED EVALUATION BOARD . . . . . . . . . . . . . . . . . . . . 6
2.1 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.2 HID DEMONSTRATOR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.2.1 USB ENUMERATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.2.2 COMMUNICATION WITH THE EVALUATION BOARD . . . . . . . . . . . . . . . 8
2.2.2.1 Controlling the evaluation board from a host PC . . . . . . . . . . . . . . 8
2.2.2.2 Displaying the evaluation board state . . . . . . . . . . . . . . . . . . . . . . 8
2.3 REMOTE WAKE UP FUNCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.4 ADDING CIRCUITRY ON THE WIRE-WRAP AREA . . . . . . . . . . . . . . . . . . . . . . 9
2.5 PROPOSAL FOR SDIP42/DIP20 ADAPTOR . . . . . . . . . . . . . . . . . . . . . . . . . . 11
1

3/12
ST7 USB Low-Speed Evaluation Board
1 GETTING STARTED
1.1 SYSTEM REQUIREMENTS
In order to use the USB evaluation board with the Windows operating system, a recent version
of Windows, such as Windows 98, Windows Millennium or Windows 2000 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.
IMPORTANT: 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 Board package includes the following items:
■
Hardware content:
–Two ST72 Low-speed USB microcontroller devices:
–ST72F62 in SDIP42 package
–ST72F63B in SDIP32 package
Both devices are FLASH devices allowing up to 100 reprogramming cycles. They are deliv-
ered already programmed with the demonstration firmware.
–One evaluation board
■
Software content:
–PC executable software (C source joined as example) for demonstrating HID transfers.
–ST7 firmware (C source code) for the ST72F62
–ST7 firmware (C source code) for the ST72F63B
■
Documentation:
–USB library 4 x Interface documentation.
–ST7262 and ST7263B 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.

4/12
ST7 USB Low-Speed Evaluation Board
1.4 HARDWARE INSTALLATION
Figure 1 shows the location of the main components of the evaluation board. The schematic
drawing is given in Figure 6.
Figure 1. Evaluation Board Layout
1.4.1 Power Supply
The evaluation board is directly supplied by the USB Connector (Bus powered) and therefore
does not require any external supply. In case the components added on the wire-wrap area
sink more than 500mA, an external power supply must be used.
1.4.2 Jumper Settings
The W1 jumper selects the analog trimmer. When the jumper is removed, the analog trimmer
is disconnected from Ground in order to stop power consumption and to meet the power spec-
ifications of USB suspend state. If A/D conversion is needed for application development, you
can replace this jumper by a switch transistor controlled by an I/O pin.
SW4=Reset
USB Connector
Trimmer
SDIP32 Socket
SDIP42 Socket
& Supply
Jumper W1 Jumper W6 Jumper W7

5/12
ST7 USB Low-Speed Evaluation Board
Figure 2. Device selection for A/D conversion
If you are using the analog trimmer, select the installed ST7 device using jumper W6 as shown
in Figure 2. This ties the analog trimmer to the PA0 I/O port of the ST72F62 and to the PB0
port of the ST72F63B. Any other analog input pin on the microcontroller can be used by re-
moving the W6 jumper and wiring the center pin of W6 to the analog input.
The W7 jumper can be used to connect or disconnect an external 12V charge pump in case
you want to program the Flash.
1.4.3 Device Selection
■
Three devices can be used with this board:
–ST72F63B devices in SDIP32 package on the internal socket
–ST72F62 devices in SDIP42 package on the external socket
–ST72F61 devices in DIP20 by using a user-supplied SDIP42-DIP20 adaptor (Figure 7).
ST72F62 ST72F63B
W6 JUMPER

6/12
ST7 USB Low-Speed Evaluation Board
2 RUNNING THE USB LOW SPEED EVALUATION BOARD
2.1 INTRODUCTION
The USB Low-Speed Evaluation Board application consists of two main parts: a HID demon-
strator running on a PC and the evaluation board itself.
Communications between the PC and the ST7 board are done through different USB pipes:
–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 Figure 3, and is ready to use.
Figure 3. Enumeration result
When you start the HID demonstrator on the PC, a graphical interface is displayed (Figure 5)
for controlling the evaluation board. This PC software is used to demonstrate the enumeration
process and data transfer between the PC and the ST7 peripheral according to the USB HID
class specifications.

7/12
ST7 USB Low-Speed Evaluation Board
2.2 HID DEMONSTRATOR
2.2.1 USB ENUMERATION
The Devices selection tabsheet, shown in Figure 4, displays the following information:
–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). Additionally, as
string information is supported, the Manufacturer name, Product and Serial Number are
displayed.
Figure 4. HID Demonstrator window
–
–
HID attached Device
informationdevice

8/12
ST7 USB Low-Speed Evaluation Board
2.2.2 COMMUNICATION WITH THE EVALUATION BOARD
2.2.2.1 Controlling the evaluation board from a host PC
The HID demonstration tabsheet, shown in Figure 5, displays the following information:
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
(ST72F62 or ST72F61) or LD1 (ST72F63B). Each slider bar value will be converted to a pulse
width modulation (PWM) signal by the microcontroller.
2.2.2.2 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 trim-
mer 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.
Figure 5. HID Demonstrator window
2.3 REMOTE WAKE UP FUNCTION
The remote wake-up function is also supported by the evaluation board. By pressing SW3
(ST72F62 or ST72F61) or SW2 (ST72F63B) you can wake-up the PC from Stand-By mode.
Under Windows XP, the remote wake-up capability should be enabled. For that you should go
to the “Device Manager”then “Human Interface Device”and “HID-compliant device”. On the
tabsheet “Power Management”, select “Allow this device to bring the computer out of
standby”.
“LED Control”
Red LED
Slider Bar
Progress Bar
(LED brightness)
Button

9/12
ST7 USB Low-Speed Evaluation Board
2.4 ADDING CIRCUITRY ON THE WIRE-WRAP AREA
The evaluation board features a 43-hole row with all the microcontroller pins plus one side of
the analog trimmer. These connection points can be used for signal probing or rewiring to the
wire-wrap area. The table below gives the definition of these points for each MCU used.
–USB LOW-SPEED Evaluation Board Di-
agram
Probing
Point ST72F62 ST72F61 ST72F63B
1PD6
2PD5
3PD4
4PD3
5PD2
6V
PP
V
PP
V
PP
7PD1
8PD0
9PC7
10 PC6
11 PC5
12 PC4
13 PC3
14 PC2 PC2
15 OSCIN OSCIN OSCIN
16 OSCOUT OSCOUT OSCOUT
17 V
SS
V
SS
V
SS
18 V
DD
V
DD
V
DD
19 PC1 PC1
20 PC0 PC0
21 PB7 PB7 PB7
Probing
Point ST72F62 ST72F61 ST72F63B
22 PB6 PB6 PB6
23 PB5 PB5 PB5
24 PB4 PB4 PB4
25 PB3 PB3 PB3
26 PB2 PB2 PB2
27 PB1 PB1 PB1
28 PB0 PB0 PB0
29 PA7 PA7
30 PA6 PA6
31 PA5 PA5
32 PA4 PA4
33 PA3 PA3
34 PA2 PA2 PA2
35 PA1 PA1 PA1
36 PA0 PA0 PA0
37 RESET RESET RESET
38 V
SSA
39 USBDM USBDM USBDM
40 USBDP USBDP USBDP
41 USBVCC USBVCC USBVCC
42 V
DDA
V
DDA
43 An.Trim. An.Trim. An.Trim.

10/12
ST7 USB Low-Speed Evaluation Board
Figure 6. Board Schematics
PA5
PB7
PB6
PA7
PC0
PB1
USB V
C
C
U
SB
DM
VS S
A
V
PP
P
C
2
PB5
PB4
PB3
PB2
PA2
PA1
VDDA
USBVCC
USBDP
USBDM
VS SA
R
E
SET
PA 0
PA 1
PA 2
PA 3
PA 4
PA 5
PA 6
PA
7
PB
0
PB 1
PB
2
PB 3
PB 4
PB5
PB
6
PB
7
PC
0
PC1
VDD
VS S
O
S
C
IN
VP P
VDD
VSS
PC1
PC2
O
S
COU T
PB0
PA4
PA4
RES ET
PA0
VDDA
PA1
PA6
OSCI N
PA3
OS
C
OU T
VSSA
PB2
VSS
PD4
PD2
PC3
PC6
PC7
PD3
PC3
PC4
PC5
PC6
PC7
PD0
PD
2
PD3
PD4
P
D
5
PD6
PD1
U
SB
DP
VDDA
USBVCC
PA2
PA5
PA6
PB0
PB3
PB7
OSCOUT
PC2
PC4
PD0
PD6
USBDP
USBDM
RESET
PA0
PA3
PA7
PB1
PB4
PB5
PB6
PC0
PC1
VDD
OSCIN
PC5
PD1
VPP
PD5
VCC_ARROW
R4
1K5
R6
2K2
C
3
33P
F
1
2
3
4
5
6
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
PD6
PD5
PD4
PD3
PD2
VPP
PD1
PD0
PC7
PC6
PC5
PC4
PC3
PC2
OSCIN
OSCOUT
VSS
VDD
PC1
PC0
PB7
PB6
PB5
PB4
PB3
PB2
PB1
PB0
PA7
PA6
PA5
PA4
PA3
PA2
PA1
PA0
RESET
VSSA
USBDM
USBDP
USBVCC
VDDA
W1B1
C4
33PF
C5
220N
F
LD4
L
ED
red
LD3
LED
red
LD2
LE
D
red
W1
1 2
LD1
LED
red
R8
470
R7
470
R6
470
ST7263
U2
11
5
3
2
4
1
6
7
9
10
12
13
14
15
16
17
18
19
20
21
22
23
26
27
8
28
30
29
31
32
V
PP
PC2
O
SCI N
O
SCOU
T
VSS
VDD
P
C1
P
C0
PB7
PB6
P
B5
PB4
P
B3
P
B
2
PB1
PB0
PA7
PA6
P
A5
PA4
P
A
3
PA2
PA
1
P
A0
R
ESE
T
V
SSA
U
SBDM
U
SBDP
U
SBVCC
V
DDA
R5
470
C2
10N
F
4
7K
S
T
7262
ST7 26
2
U
1
1
2
3
4
5
6
0
7
0
8
09
1
0
1
1
12
13
1
4
1
5
1
6
1
7
18
19
2
0
21
2
2
2
3
24
2
5
26
27
2
8
2
9
3
0
3
1
3
2
3
3
34
35
3
6
3
7
38
3
9
40
41
4
2
P
D6
P
D
5
P
D
4
PD3
P
D2
VPP
P
D
1
PD
0
P
C
7
P
C6
PC5
P
C
4
P
C
3
P
C
2
OSC
I
N
OSCOUT
VSS
VDD
PC1
P
C
0
PB7
PB6
PB5
PB4
PB3
PB2
PB1
PB0
PA7
PA6
PA5
PA4
PA3
PA2
PA1
PA0
RESET
VSSA
USB DM
U
SB
D
P
USB VCC
VDDA
X
T1
12MHz
RESET
SW4
+
C
1
5
0
V
4. 7UF
1 2
+
C9
5
0V
4
.7
U
F
1
2
+
C
6
5
0
V
4
.
7UF
1
2
SW3
SW3
SW2
SW2
CW
RV1
10K
C8
220N
F
W6
1
2
3
SW1
SW1
47K
2.
5
V
U3 ST6 62 A
2
3
4
1
5
6
7
8
C1 +
C2 -
C
2
+
C1 -
VCC
VOUT
GND
SHDN
USB
J1
1
2
3
4
C
7
10
0
NF
BC5
57
B
T
1
R1
47K
W7
1 2
W2
1 2
W3
1 2
W4
1 2
W5
1 2
VCC_ARROW
VCC_ARROW
VCC_ARROW
VCC_ARROW
VCC_ARROW
R2
R3

11/12
ST7 USB Low-Speed Evaluation Board
2.5 PROPOSAL FOR SDIP42/DIP20 ADAPTOR
Figure 7. Adaptor Layout

12/12
ST7 USB Low-Speed Evaluation Board
NOTES:
Information furnished is believed to be accurate and reliable. However, STMicroelectronics assumes no responsibility for the consequences
of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. No license is granted
by implication or otherwise under any patent or patent rights of STMicroelectronics. Specifications mentioned in this publication are subject
to change without notice. This publication supersedes and replaces all information previously supplied. STMicroelectronics products are not
authorized for use as critical components in life support devices or systems without the express written approval of STMicroelectronics.
The ST logo is a registered trademark of STMicroelectronics
2002 STMicroelectronics - All Rights Reserved.
Purchase of I
2
C Components by STMicroelectronics conveys a license under the Philips I
2
C Patent. Rights to use these components in an
I
2
C system is granted provided that the system conforms to the I
2
C Standard Specification as defined by Philips.
STMicroelectronics Group of Companies
Australia - Brazil - Canada - China - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan
Malaysia - Malta - Morocco - Singapore - Spain - Sweden - Switzerland - United Kingdom - U.S.A.
http://www.st.com
Other manuals for ST7 Series
1
This manual suits for next models
3
Table of contents
Other ST Motherboard manuals

ST
ST STEVAL-IPC002V1 User manual

ST
ST STM32429I-EVAL User manual

ST
ST STM32MP157 Series User manual

ST
ST STEVAL-BLUEMIC-1 User manual

ST
ST STEVAL-SP1ML915 User manual

ST
ST EVB-LIV4F User manual

ST
ST P-NUCLEO-IOD01A1 User manual

ST
ST EVAL-TDA7803A User manual

ST
ST SPC58XXADPT176S User manual

ST
ST UM1509 User manual