USB Smart Card Reader ST7SCR Evaluation Board USER GUIDE
May 2002
1
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.
ST7SCR SMART CARD READER EVALUATION BOARD INTRODUCTION The objective of this evaluation board is to provide the user with a reference design using the USB Smart Card Reader peripheral. This board is based on a ST7SCR MCU from STMicroelectronics that features an embedded USB full speed interface and a dedicated ISO 7816 UART interface. The core of this evaluation board is the USB CCID (Chip Card Interface Device) compliant ST7 firmware that allows the peripheral to be recognized as a CCID class device by the host computer. The USB CCID compliant firmware has to be updated to be used with synchronous Smart Cards. The evaluation board includes ICC (Integrated Circuit Card) reading capabilities, a programmed ST7FSCR part with a beta version of the firmware (including the firmware source files), the ST host computer drivers and this user guide. The latest release of the ST7SCR firmware, the “Developing a USB Smart Card Reader with ST7SCR” application note AN1527 and development tools (C compiler, debugger and programming board) can be obtained by contacting your ST sales office.
Rev. 1.0 May 2002
3/11
Getting Started
1 GETTING STARTED 1.1 SYSTEM REQUIREMENTS ■
In order to run the USB Smart Card Reader evaluation board, the host computer must first run an OS supporting the USB, which excludes Windows 95 and Windows NT. This OS can be Windows 98, Windows 98 SE, Windows Millennium, Windows 2000 or Windows XP.
1.2 HARDWARE INSTALLATION Before connecting the device, select either self-powered or bus-powered power supply using the corresponding jumper (W5): If you select self-powered device, provide a 5-volt supply on the J6 connector. 1.3 SOFTWARE INSTALLATION Before using the USB Smart Card Reader evaluation board, execute the setup.exe program and follow the wizard on screen instructions to install the STCCID driver. To complete the installation, plug the board on the USB bus. It will be detected and the PC will finish the setup. For this evaluation board, the used Vendor ID and Product ID are 0x0483 and 0x2105 respectively.
4/11
Running the Smart Card Reader EVALUATION BOARD
2 RUNNING THE SMART CARD READER EVALUATION BOARD 2.1 INTRODUCTION Once the driver is installed on the host computer, the applet software can be used to communicate with the board. To do this, execute the STCCIDTester.exe file from the start button in the Windows task bar (programs menu). This applet uses the CCID specification to communicate with the USB device and to access the card. 2.2 HARDWARE FEATURES The evaluation board is designed to be a bus-powered USB device although you can select the self-powered hardware option. 4 LEDs and 4 buttons are selectable by jumpers. All the I/Os are available on connectors for adding extensions like keyboards. An HE10 connector is also available for reprogramming the firmware in the Flash memory of the ST7FSCR. To use this feature, an EPB (programming tool) is needed. 2.3 SOFTWARE OVERVIEW The STCCIDTester PC applet is designed to conform to the USB CCID specification with the following conditions: – One slot is supported – The applet can send one CCID command at a time
5/11
Software Description
3 SOFTWARE DESCRIPTION 3.1 INITIALIZATION When the STCCIDTester starts, select “File” menu, item “Command Script”. The following window appears :
There are 2 parts : – The Command script window – The Status scroll box
6/11
Software Description
3.2 DEVICE SELECTION The next step is to select the device to use. The evaluation board must be plugged to the host computer. Then, click the “Choose device” button, the following dialog box appears :
Click the radio button if you want to automaticcaly select the first plugged device. When you click “Choose”, the applet program selects the evaluation board and begins the communication process as described in the CCID specification. It refreshes the Status scroll box and you can enter commands using the command editor. 3.3 STATUS SCROLL BOX This displays the reader status. For example: Connected ; Unconnected (Device selection window appears automatically) ; Slot 0 is filled ; Slot 0 is empty ; And all other error messages described in the CCID spec.
3.4 COMMAND SCRIPT EDITOR This editor allows you to enter any of the BULK OUT messages defined in the CCID specification and get the BULK IN response.
7/11
Software Description
The 10-byte header is made up of all the fields in the upper right part of the dialog box and the Extra data editor allows you to enter the extra bytes of the command (if any).
The “Commands in scripts” list box allows you to save commands as a script in order to execute them sequentially.
8/11
Firmware Description
Create a command: – Fill all the fields in the “Selected Command” panel – Click “Append”. A new command is then added. It can moved up or down in the script to change the execution order by pressing the up-arrow or down-arrow Modify a command: – Select the command in the “commands in scripts” list box – Change the parameters in the “Selected Command” panel – Click “Update” to apply the changes Save a script file on hard disk: – Select the “Save” item in the “Command Script Menu” – Choose the location and the name of the file to save (.cmd file) – Click “Save” Load a command file: – Select the “Load” item in the “Command Script Menu” – Choose the command file and validate the choice – You can now execute, modify and save this command file. Button descriptions: – “Choose Device”: This button has the same function as the “Choose…” item in the “Device” menu. – “Abort”: This displays a dialog box requesting the sequence number of the Abort answer message. Click “Send” to send the Abort Request to endpoint 0. – “Get Clocks” and “Get Datarates” are not implemented.
4 FIRMWARE DESCRIPTION The firmware embedded in the ST7FSCR for this evaluation board is described in a separate document: Application Note AN1527: “ST7 Smart Card Reader evaluation Firmware Description”.
9/11
A
B
C
D
PB0 PB1 PB2 PB3 PB4 PB5 PB6 PB7
PA0 PA1 PA2 PA3 PA4 PA5 PA6
PB0 PB1 PB2 PB3 PB4 PB5 PB6 PB7
PA0 PA1 PA2 PA3 PA4 PA5 PA6
5
CON16
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
J4
J2
2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34
HEADER 17X2
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
CON16
J3
1
1
1
PC0 PC1 PC2 PC3 PC4 PC5 PC6 PC7 PD0 PD1 PD2 PD3 PD4 PD5 PD6 PD7
2
G2
VCC
2
JUMPER
JUMPER W3 2
JUMPER W4 2
4
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
D4
10ÿ
L1
VCC
MURATA LQH3C100K04
U1
CRDRST NC CRDCLK NC C4 CRDIO C8 GND PB0 PB1 PB2 PB3 PB4 PB5 PB6 PB7 ST72FSCR_QFP64
PD1
PD0
PD1
JUMPER
JUMPER W9 1 2
JUMPER W8 1 2
JUMPER W7 1 2
2
1
W6 PD0
VCC
D9
D8
D7
D6
1N4148
1N4148
1N4148
1N4148
3
NC USBDP USBDM LED0 PA6 VPP PC7 PC6 PC5 PC4 PC3 PC2 PC1 PC0 GND VDD
PC0
3
Mini Keypad
SW PUSHBUTTON
SW PUSHBUTTON W13 PC1
SW PUSHBUTTON W12 PC1
1.5K
C5 22pF
VCC
1
TP3
PA1
2
Date:
Size A4
Title
VPP OSCIN
VCC
VCCALIM
TEST POINT
10K
R1
PA0
CRDIO CRDC8
1 TEST POINT
CRDVCC
CRDIO
R4
R3
1
2
3
4
5
6
7
8
0 0
L2
ITT CANNON
SCCon
1 2 BLM41P750S
1
2
3
4
I5
I6
I7
I8
J1
L3
Tuesday, July 03, 2001
Document Number
MB338B-ST72FSCR Evaluation Board
CON.ALIM 2 PLOTS BORNIER @20010V02 CEPELEC
CON2
1 2
J6
Voltage_selection
1 2 3
W5
HEADER 5X2
1 2 3 4 5 6 7 8 9 10
J7
CON10
1 2 3 4 5 6 7 8 9 10
J5
TEST POINT
CRDVCC CRDRST CRDCLK CRDC4
1 TEST POINT
1
CRDC8
TP1
TP6
2
TP4
C3 4.7ÿF
VCCALIM
R2
LED0 PA6 VPP PC7 PC6 PC5 PC4 PC3 PC2 PC1 PC0
C2 10nF
SW PUSHBUTTON W11 PC0
W10
C4 22pF
XT1 4MHZ
1
TP2
TEST POINT
48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33
VCC
GOUTTE
G1 C1 4.7uF
BAT42 SHOTTKY
TEST POINT
1
TP5
PB0 PB1 PB2 PB3 PB4 PB5 PB6 PB7
CRDC4 CRDIO CRDC8
CRDRST
VCC
JUMPER W2 2
GOUTTE
CRDCLK 1
VERTE
ROUGE
JAUNE
PC0 PC1 PC2 PC3 PC4 PC5 PC6 PC7 PD0 PD1 PD2 PD3 PD4 PD5 PD6 PD7
LED
D5 LED
D3 LED
D2 LED
BAR M/M PAS 2.54 1X16
LED0
LED1
LED 10 mA
LED2
W1
CRDVCC CRDDET2
1
SELF1 SELF2 PA5 PA4
VERTE
2 1
D1
LED3 LED2 LED1
64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 CRDVCC GND GND DIODE SELF1 SELF2 PA5 PA4 NC NC LED3 LED2 LED1 VDD AVDD USBVCC
CRDDET VDD PA0 PA1 PA2 PA3 PD0 PD1 PD2 PD3 PD4 PD5 PD6 PD7 OSCIN OSCOUT
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 PA0 PA1 PA2 PA3 PD0 PD1 PD2 PD3 PD4 PD5 PD6 PD7 OSCIN
LED3
4
BLM41P750S
5
2 1
Sheet
L4
2 1 BLM41P750S
10/11
LED 2 mA
1
1 2 3 4 5
1
8
7
6
5
I4
I3
I2
I1
10
9
1
of
USBUP
Vbus DD+ GND SHIELD
18
17
16
J8
1
CRDVCC 14 15
CRDCLK CRDRST
CRDC4
11
13
CRDDET1
10
12
CRDDET2
9
0.1
Rev
A
B
C
D
EVALUATION Board Schematic
5 EVALUATION BOARD SCHEMATIC
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
2001 STMicroelectronics - All Rights Reserved.
Purchase of I2C 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. STMicroelectronics Group of Companies Australia - Brazil - China - Finland - France - Germany - Hong Kong - India - Italy - Japan - Malaysia - Malta - Morocco - Singapore - Spain Sweden - Switzerland - United Kingdom - U.S.A. http://www.st.com
11/11