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.
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.
| USART smart‑card mode settings | 8 data bits with parity, 0.5 or 1.5 stop bits |
|---|---|
| Smart‑card clock generator | 5‑bit prescaler and clock generator provide card clock |
| Supported ISO standards | ISO 7816‑3 and ISO 7816‑4 |
| ST8024 interface chip | Low‑cost analog interface between smart card and 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.
It provides a low‑cost analog interface between the smart card and the STM32F10xxx, handling power protection and control with few external components.
The firmware package and example source files are available from the ST website at www.st.com.