ST ST7 Series, ST72F62, ST72F61, ST72F63B Getting Started

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.
1
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.
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.
Rev. 1.2
October 2002 1/12
1
Table of Contents
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
2/12
1
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.1998Windows 98 SE: HID.dll - Version 4.10.2222Windows Millennium: HID.dll - Version 4.90.300.1Windows 2000: HID.dll - Version 5.00.2134.1Windows 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 packageST72F63B 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 ST72F62ST7 firmware (C source code) for the ST72F63B
Documentation:
USB library 4 x Interface documentation.ST7262 and ST7263B DatasheetsApplication 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.
3/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

Trimmer
SW4=Reset
SDIP32 Socket
Jumper W1
Jumper W6
Jumper W7
USB Connector
& Supply
SDIP42 Socket

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.
4/12
Figure 2. Device selection for A/D conversion
W6 JUMPER
ST7 USB Low-Speed Evaluation Board
ST72F62
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).
ST72F63B
5/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.
6/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
7/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
LED Control
Button
Red LED
Progress Bar
Slider Bar (LED brightness)

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”.
8/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.
Probing
Point
1PD6
2PD5
3PD4
4PD3
5PD2
6VPPV
7PD1
8PD0
9PC7
10 PC6
11 PC5
12 PC4
13 PC3
14 PC2 PC2
15 OSCIN OSCIN OSCIN
16 OSCOUT OSCOUT OSCOUT
17 V
18 V
19 PC1 PC1
20 PC0 PC0
21 PB7 PB7 PB7
ST72F62 ST72F61 ST72F63B
V
PP
V
SS
V
DD
SS
DD
PP
V
SS
V
DD
Probing
Point
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
39 USBDM USBDM USBDM
40 USBDP USBDP USBDP
41 USBVCC USBVCC USBVCC
42 V
43 An.Trim. An.Trim. An.Trim.
ST72F62 ST72F61 ST72F63B
SSA
DDA
V
DDA
– USB LOW-SPEED Evaluation Board Di-
agram
9/12
ST7 USB Low-Speed Evaluation Board

Figure 6. Board Schematics

ST72 6
U 1
2
VCC_ARROW
1 2
+
4. 7UF
5 0 V
USBV CC
VDD
A
4
41
2
USBV
VDDA
C C
C 1
1K
R4
5
123
USB
J 1
RESET
USBDM
U SB
VSSA
D P
7383940
U
RESE T
U
VSS
SB
SB
DM
DP
A
4
10N
C2
F
RESET
SW4
SW3
SW3
PA3
PA2
PA1
PA0
PA2
PA1
PA0
PA3
4 7K
PA7
PA6
PA5
PA4
PA5
PA7
PA4
PA6
R3
PB3
PB2
PB1
PB0
26272829303132333435363
PB1
PB0
PB2
SW2
SW2
SW1
SW1
220N
220N
C8
F
F
234
1
C1-
C1+
C2-
C 2 +
2. 5
SHD
VOUT
V
GND
VCC
N
567
8
1
2
+
C65
4
0
.
V
7UF
2
50V4
.7 U
F
U 2
C9
+
10 0
NF
1
C 7
1 2
VPP
1 1
V PP
47K
R2
R1
47 K
C5
U3 ST 66 2A
2K2
R6
VCC_ARROW
BC5
T 1
W7
57 B
10K
VCC_ARROW
O
O
S
S
VSS
COU T
PC2
C IN
5324167
O
VSS
SCI NOSCOU
VDD
T
PC2
2 5
PB3
VDD
CW
PB4
1 2 3
PC1P
24
PB4
RV1
OSCOU T
OSC
VDD
VSS
PC1
P
PB7
PB6
PB5
C 0
192
0212223
PB7
PB6
PC0
VDD
VSS
PB5
W6
1 2
PC0PC1
C0
PC1
VCC_ARROW
33P
F
1 2
L
W5
ED
red
1 2
LED
VCC_ARROW
W4
1 2
W3
1 2
W2
PB5
PB4
P
PB4
B5
PB3P
red
LE D red
LED
red
PB2PB3
B 2
W1
PB 6PB7
1
9
01213141516171819202122232627
PB7
PB6
P
P
I
C
C
N
3
2
OSC I N
OS
PC3
P C 2
C OU T
12MHz
X T1
33P
C4
C 3
F
47
LD4
0
470
LD3
470
LD2
470
LD1
PA6
PA7PB0PB1
PB1
PB0
PA7
PA6
S T 7262
VPP
P
PD3
8091011
PD0
PA1
PA 1
P D 1PD0
PD1
PA0
P A0RESE
V PP
R E SET
8
T
P
D
D2
5
4
PD2PD3
PD4
P D 5
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
USBVCC
USBDM
USBDP
VSS A
28
30293132
V SSAUSBDMUSBDPUSBVCCVDDA
P D6PD
123456070
PD6
1
PD6
2
PD5
3
PD4
4
PD3
5
PD2
6
VPP
07
PD1
08
PD0
09
PC7
10
PC6
11
PC5
12
PC4
13
PC3
14
PC2
15
OSCIN
16
OSCOUT
17
VSS
18
VDD
19
PC1
20
PC0
21
PB7
22
PB6
23
PB5
24
PB4
25
PB3
26
PB2
27
PB1
28
PB0
29
PA7
30
PA6
31
PA5
32
PA4
33
PA3
34
PA2
35
PA1
36
PA0
37
RESET
38
VSSA
39
USBDM
40
USBDP
41
USBVCC
42
VDDA
43
W1B1
VDDA
ST7263
P
P
PC5
P
C
C6
C
7
4
12131415161718
PC4
PC5
PC6
PC7
R8
R7
VCC_ARROW
R6
R5
PA2
PA3
PA4
PA5
P
P
PA2
PA4
A5
A 3
10/12

2.5 PROPOSAL FOR SDIP42/DIP20 ADAPTOR

Figure 7. Adaptor Layout

ST7 USB Low-Speed Evaluation Board
11/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.
STMicroelectronics Group of Companies
http://www.st.com
Purchase of I
2
C Components by STMicroelectronics conveys a license under the Philips I2C Patent. Rights to use these components in an
I2C system is granted provided that the system conforms to the I2C Standard Specification as defined by Philips.
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.
12/12
Loading...