ST STM32F101xx/STM32F103xx Smart Card Interface Application Note

This document describes how to use the USART module of STM32F10xxx to implement the smart card interface solution, including the implementation of firmware and hardware interface. The purpose of this firmware and hardware package is to provide the corresponding resources for users to develop applications more conveniently using the smart card mode of the USART module.


ST STM32F101xx/STM32F103xx Smart Card Interface Application Note - cover page
Brand
STM32F101xx
Category
Other device
Document type
Application Note
Language
Chinese
Pages
30
File format
PDF
File size
650 KB
Published
16 October, 2011
Updated
30 September, 2023
MD5 checksum
1B32AED05D0007A881476133F06538CA

About this manual

This application note explains the implementation of a smart‑card interface using the USART peripheral of STM32F101xx and STM32F103xx microcontrollers. It provides both firmware libraries and hardware reference designs, including example projects for the STM3210B‑EVAL and STM3210E‑EVAL evaluation boards.

The document covers external pin connections, ISO 7816 protocol details, smart‑card clock generation, and a set of library functions for handling APDU commands, power control, reset, and error handling. An example application demonstrates file system navigation, PIN management, and data read/write on a GSM‑compatible smart card. This manual is written in Chinese.

What's inside

  • Smart Card Interface Overview
  • External Pin Connections
  • ISO7816 Protocol Introduction
  • Smart Card Clock Generator
  • Hardware Connection (ST8024)
  • USART Smart Card Mode Configuration
  • Smart Card Interface Library Functions
  • Example Application on Evaluation Boards
  • Reference Firmware Package

Specifications

USART smart‑card mode settings8 data bits with parity, 0.5 or 1.5 stop bits
Smart‑card clock generator5‑bit prescaler and clock generator provide card clock
Supported ISO standardsISO 7816‑3 and ISO 7816‑4
ST8024 interface chipLow‑cost analog interface between smart card and STM32F10xxx

Frequently asked questions

How do I enable USART smart‑card mode on the STM32F10xxx?

Configure the USART peripheral with 8 data bits plus parity and either 0.5 or 1.5 stop bits, and enable the smart‑card mode.

What does the ST8024 chip do in the smart‑card interface?

It provides a low‑cost analog interface between the smart card and the STM32F10xxx, handling power protection and control with few external components.

Where can I download the firmware and example code?

The firmware package and example source files are available from the ST website at www.st.com.

Download PDF (650 KB)