Part # Application Notes Access Control Accessories Adapters Audio Broadcast Computer And Peripherals Computer Power Supply Corded Term datasheet

Part Manufacturer: ST Microelectronics

ST Microelectronics

Part Description: Smartcard interface with the STM32F101xx and STM32F103xx


Part Details:

AN2598 Application note Smartcard interface with the STM32F101xx and STM32F103xx Introduction This document describes a firmware and hardware Smartcard interface solution based on the STM32F10xxx USART peripheral. The main purpose of this firmware and hardware package is to provide resources that facilitate the development of an application using the USART peripheral in Smartcard mode. The firmware interface consists of library source files developed so as to support the ISO 7816-3/4 specification. An application example based on STMicroelectronics STM3210B-EVAL and STM3210E-EVAL evaluation boards is also provided. This document and its associated firmware are available for download from the STMicroelectronics website: www.st.com. Glossary Medium-density devices are STM32F101xx and STM32F103xx microcontrollers where the Flash memory density ranges between 32 and 128 Kbytes. Medium-density devices are implemented in the STMicroelectronics STM3210B-EVAL evaluation board. High-density devices are STM32F101xx and STM32F103xx microcontrollers where the Flash memory density ranges between 256 and 512 Kbytes. High-density devices are implemented in the STMicroelectronics STM3210E-EVAL evaluation board. May 2008 Rev 2 1/40 www.st.com Contents AN2598 Contents 1 Smartcard interface description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.2 External interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.3 Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.4 Smartcard clock generator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2 Smartcard reader hardware connection . . . . . . . . . . . . . . . . . . . . . . . . . 8 3 ISO 7816: protocol overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3.2 ISO 7816-2 ­ pin location . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 4 ISO 7816-3 ­ Electronic signal and transmission protocol . . . . . . . . . 12 4.1 Card power-up and reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4.2 Data transfer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 4.3 Answer to reset (ATR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 5 ISO 7816-4 ­ Smartcard commands . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 5.1 T0 protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 5.2 Application-level protocols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 5.2.1 The ISO 7816-4 APDU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 5.2.2 File system API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21


Please click the following link to download the datasheet:

Application Notes Access Control Accessories Adapters Audio Broadcast Computer And Peripherals Computer Power Supply Corded Term.pdf Datasheet