1、INTERNATIONAL STANDARD lSO/IEC 7816-3 Second edition 1997-l 2-15 Information technology - Identification cards - Integrated circuit(s) cards with contacts - Part 3: Electronic signals and transmission protocols Technologies de /information - Cartes didentification - Cartes B circuit(s) intkgrk(s) B
2、contacts - Partie 3: Signaux Blectroniques et protocoles de transmission Reference number ISOAEC 7816-3:1997(E) Adopted by INCITS (InterNational Committee for Information Technology Standards) as an American National Standard.Date of ANSI Approval: 4/14/99Published by American National Standards Ins
3、titute,25 West 43rd Street, New York, New York 10036Copyright 2002 by Information Technology Industry Council (ITI).All rights reserved.These materials are subject to copyright claims of International Standardization Organization (ISO), InternationalElectrotechnical Commission (IEC), American Nation
4、al Standards Institute (ANSI), and Information Technology Industry Council(ITI). Not for resale. No part of this publication may be reproduced in any form, including an electronic retrieval system, withoutthe prior written permission of ITI. All requests pertaining to this standard should be submitt
5、ed to ITI, 1250 Eye Street NW,Washington, DC 20005.Printed in the United States of AmericaISO/IEC 7816-3:1997(E) Contents Page Foreword _. _, _. _. _. _. _. _, _. _. _. _. iii Introduction , ,., , ._. ,. ._ ,. , ., , , .,., ,., ._ ._., , , , ,. _. ._., , ,. ,. ,. iv Scope 1 Normative references 1 Te
6、rms and definitions 1 Electrical characteristics 2 4.1 General 2 42 Operating conditions . 2 4.3 Voltage and current values . 3 Card operating procedure . 6 5.1 General overview 6 52 Actrvatron 6 5.3 lnformatron exchange . 6 5.4 Deactivation 7 Answer-to-Reset . 8 6.1 General configuratron . 8 62 Par
7、ameter T . 8 6.3 Asynchronous character . 9 6.4 Answer-to-Reset structure . 10 6.5 Content of the global Interface bytes 11 6.6 Modes of operation . 13 Protocol and parameters selection 14 7.1 General 14 72 PPS protocol . 14 7.3 Structure and content of PPS request and response . . 14 7.4 Successful
8、 PPS exchange . 15 Protocol T=O, half-duplex transmission of asynchronous characters 15 6.1 scope 15 62 Character level 15 6.3 Structure and processing of commands . 15 Protocol T=l , half-duplex asynchronous transmission of blocks 17 9.1 Scope and pnncrples 17 62 Terms and defrnitrons . 17 9.3 Char
9、acter frame . 18 9.4 Block frame . 18 9.6 Protocol parameters . 20 9.6 Character component operation at data lrnk layer . 21 9.7 Block component operation at data link layer 21 Annex A (informative) Scenarios for T=l , ,. ,. , , ,.,. ._._,.,., , , 24 0 ISO/IEC 1997 All nghts reserved. Unless otherwi
10、se specified, no part of this publicatron may be reproduced or utilized In any form or bv any means, electronic or mechanrcal, rncludrng photocopvrng and mrcrofilm, without permssion In writing from the publrsher. ISO/IEC Copynght Offrce l Case postale 56 l CH-1211 Genkve 20 l Switzerland Punted In
11、Switzerland ii 0 ISO/IEC ISO/IEC 7816-3:1997(E) Foreword IS0 (the International Organrzatron for Standardization) and IEC (the International Electrotechnical Commission) form the specialized system for worldwide standardization. National bodies that are members of IS0 or IEC participate in the devel
12、opment of International Standards through technical committees esta- blished by the respective organization to deal with particular fields of technical activity. IS0 and IEC technical committees collaborate in fields of mutual interest. Other international organrzations, governmental and non-governm
13、ental, in liaison with IS0 and IEC, also take part in the work. In the field of information technology, IS0 and IEC have established a joint technrcal committee, lSO/IEC JTC 1. Draft International Standards adopted by the jornt technrcal committee are circulated to national bodies for voting. Public
14、ation as an International Standard requrres approval by at least 75 % of the national bodies casting a vote. International Standard ISO/IEC 7816-3 was prepared by Joint Technical Committee ISO/IEC JTC 1, Information technology, Subcommittee SC 17, Identification cards and related devices. This secon
15、d edition cancels and replaces the first edition (lSO/IEC 7816-3:1989), whrch has been technically revised. It also incorporates Amendment 1 :I 992 and Amendment 2:1994. ISO/IEC 7816 consists of the following parts, under the general title information technology - Identification cards - Integrated c
16、ircuit(s) cards with contacts: - Part I: Physical characteristics - Parr 2: Dimensions and location of the contacts - Parr 3: Electronic signals and transmission protocols - Part 4: Inrenndustry commands for interchange - Part 5: IVumbenng system and registration procedure for application identifier
17、s - Part 6: Interindustry data elements - Parr 7: Interindustry commands for structured card query language Annex A of this part of ISO/IEC 7816 is for information only. III ISO/IEC 7816-3:1997(E) 0 ISO/IEC Introduction ISO/IEC 7816 is a series of International Standards describing the parameters fo
18、r integrated circuit(s) cards with contacts and the use of such cards for international interchange. The integrated circuit(s) cards with contacts are identification cards intended for information exchange negotiated between the outside and the integrated circuit within the card. During each informa
19、tion exchange, the card delivers information (computation results, stored data) and/or modifies its content (data storage, event memorization). During the preparation of this International Standard, information was gathered concerning relevant patents upon which application of this standard might de
20、pend. Relevant patents were identified in France and USA, the patent holder being Bull S.A. in each case. However, IS0 cannot give authoritative or comprehensive information about the evidence, validity or scope of the patents or similar rights. The patent holder has stated that licenses will be gra
21、nted in appropriate terms to enable the application of this part of ISO/IEC 7816, provided that those who seek licenses agree to reciprocate. Further information is available from BULL S.A. BP45 F 78430 Louveciennes FRANCE iv INTERNATIONAL STANDARD SoiEC ISO/IEC 7816-3:1997(E) Information technology
22、 - Identification cards - Integrated circuit(s) cards with contacts - Part 3: Electronic signals and transmission protocols 1 Scope This part of ISO/IEC 7816 specrfies the power and signal structures, and informatron exchange between an integrated circuit(s) card and an interface device such as a te
23、rminal. It also covers signal rates, voltage levels, current values, panty convention, operating procedure, transmission mechanisms and communication with the card. It does not cover information and Instructron content, such as identification of issuers and users, services and limits, security featu
24、res, journaling and instruction definitions. 2 Normative references The followrng standards contain provisions which, through reference in this text, constitute provisions of this part of ISO/IEC 7816. At the time of publrcation, the editions indicated were valid. All standards are subject to revisi
25、on, and parties to agreements based on this part of ISO/IEC 7816 are encouraged to investigate the possibilrty of applying the most recent editions of the standards listed below. Members of IS0 and IEC maintain registers of currently valid International Standards. IS0 1 177: 1985, information proces
26、sing - Character structure for start/stop and synchronous character oriented transmission. ISO/IEC 3309:1993, Information technology - Tele- communications and information exchange between systems - High-level data link control (HDLC) procedures - Frame structure. jSO/IEC 7810:1995, ldentificarion c
27、ards - Physical characterrst/cs. IS0 7816-1:1987), Identification cards - Integrated circuit(s) cards with contacts - Part 1: Physical characteristics. IS0 7816.2:1988), Identification cards - Integrated circuit(s) cards with contacts - Parr 2: Dimensions and location of the contacts. ISO/IEC 7816-4
28、: 1995, Information technology - Identifi- cation cards - Integrated circuit(s) cards with contacts - Part 4: Interindustry commands for interchange. 3 Terms and definitions The term “identification card” is defined in ISO/IEC 7810. For the purposes of this part of ISO/IEC 7816, the follow- ing defi
29、nitions apply. 3.1 devices 3.1.1 interface device terminal, communication device or machine to which the card is electncally connected during operation 3.1.2 operating card card which can correctly carry out all its functions 3.2 etu (abbreviation for “elementary time unit”) nominal duration of a mo
30、ment on contact I/O 3.3 resets 3.3.1 cold reset first reset occurring after activation 3.3.2 warm reset anv reset which is not a cold reset l1 Currently under revision ISO/IEC 7816-3:1997(E) 0 ISO/IEC For the purposes of this part of ISO/IEC 7816, the follow- ing notations apply. state H high state
31、logic level state L low state logic level state Z mark or high state, as defined in IS0 1177 state A space or low state, as defined in IS0 1177 XY hexadecimal notation, equal to XY to the base 16 4 Electrical characteristics 4.1 General 4.1.1 Electrical circuits Contact assignments are specified in
32、IS0 7816-2, sup- porting at least the following electrical circuits. GND ground, reference voltage vcc power supply input I/O input or output for serial data CLK clock signal input RST reset signal input VPP programming power Input, optional use by the card 4.1.2 Abbreviations For the purposes of th
33、is clause, the following abbrevia- tions apply. Cl, C OUT ICC I IH /IL IOH /OL /PP tF 43 V cc VH YL V OH %L V PP 2 input capacitance output capacitance current at VCC high level input current low level input current high level output current low level output current current at VPP fall time, from 90
34、 % to 10 % of signal amplitude rise time, from 10 % to 90 % of signal amplitude voltage at VCC high level input voltage low level input voltage high level output voltage low level output voltage voltage at VPP 4.2 Operating conditions 4.2.1 Classes of operating conditions This part of lSO/IEC 7816 d
35、efines two classes of operat- ing conditions. Through contact VCC, the Interface device shall provide to the card the following nominal supply voltage: l 5 V under class A, l 3 V under class B. Consequently, cards and interface devices shall work either in class A only, or In class B only, or in cla
36、ss A and in class B, denoted as class AB later on. Class A cards shall operate with class A and class AB interface devices. Class AB cards shall operate with class A, class B and class AB interface devices. Class B cards shall operate with class B and class AB interface devices; they shall be design
37、ed in such a way that they will not be damaged under class A operating conditions (by definition, a damaged card no longer operates as specified or contains corrupt data). 4.2.2 Selection of the operating class Figure 1 shows the decisions to be made by an interface devtce in selecting the class of
38、operating conditions to be applied to a card. Decisions shown are based upon information implicit in the interface device, except where the word “card” is present. When available in the interface device, the first operating conditions to be applied to the card shall be class B. Under class A operati
39、ng conditrons, a class B card shall not provide an Answer-to-Reset (see 6). If the card does not provide an Answer-to-Reset, then the interface device shall deactivate the card; after a delay of at least 10 ms, the interface device shall apply the operating conditions of the next available class. If
40、 the card provides an Answer-to-Reset without a class indicator (see 6.5.61, then the Interface devrce shall apply or maintain class A operating conditrons when available, or deactivate the card. If the card provrdes an Answer-to-Reset with a class indicator, and the Interface device is applying a c
41、lass of operatrng conditions supported by the card, then normal operation may continue. If the Answer-to-Reset does not indicate the current class of operating condrtrons, but another class supported by the interface device, then the interface device shall deactivate the card; after a delay of at le
42、ast 10 ms, the Interface device shall apply the operating conditrons of that class. NOTE -Some cards conformrng to ISO/IEC 781 - state A if thts state is imposed by the transmitter. When the two ends of the line are in reception mode, the line shall be at state Z (high state). When the two ends are
43、in non-matched transmit mode, the logic state of the line may be Indeterminate. During operation, the interface device and the card shall not both be in transmit mode. The interface device shall be able to support the defined range of input currents when the input voltages are in the allowed range.
44、The interface device shall present to the card an impedance such that it will not prevent the card from being able to keep the output voltages in the defined range. Table 3 - Electrical characteristics of I/O under normal operating conditions Symbol Conditions /;H I It- YH YL I IL YL vOH External pu
45、ll-up resistor: 20 kR to V, I OH VOH KJL loL = 1 mA a h tF Cl, = 30 pF; Co, = 30 pF The voltage on I/O shall remain between - 0.3 V and V, + 0,3 V. Minimum 0,70 x v, -300 0 -1000 0,70 x v, 0 Maximum vcc +20 0,15 x v, +20 vcc +20 0,15 x v, 1 Unit V LA V FA V FA V I= la Interface device implementation
46、s should not reoulre the card to sink more than 500 4 i 4.3.4 CLK This contact is used to provide the card with the clock signal. The actual value of the frequency of the clock signal IS designated by f. See 5.2 and 6.5.2 for the ranges of values of f. The duty cycle of the clock signal shall be bet
47、ween 40 % and 60 % of the period during stable operation. When switching the frequency from one value to another, care should be taken to ensure that no pulse is shorter than 40 % of the shortest penod allowed by the card as defined in table 7. No information shall be exchanged when switching the fr
48、equency value. Two different times are recommended for switching the frequency value: - immediately after the answer to reset, or - immediately after a successful PPS exchange (see 7.4) 4 0 ISO/IEC ISO/IEC 7816-3:1997(E) Table 4 - Electrical characteristics of CLK under normal operating conditions S
49、ymbol Conditions YH I IH YH YL I IL /;L h tF Cl, = 30 pF The voltage on CLK shall remarn between - 0,3 V and V, + 0,3 V. Minimum 0,70 x vcc -20 0 -100 Maximum v,c +I00 or5 +20 9 % of period Unit V PA V PA 4.3.5 RST This contact is used to provide the card with the reset signal according to either 5.3.2 (cold reset) or 5.3.3 (warm reset) Table 5 - Electrical characteristics of RST under normal operating conditions Symbol Conditions Minimum Maximum Unit v;H 0,80 x V, kc V I IH qH -20 +I50 PA YL 0 0,12 x v, V 4, 4, -200 +20 PA 63 tF Cl, = 30 pF The voltag