AN2646 Smartcard Interface with STM8S Microcontroller Application Note

This document describes a firmware and hardware smartcard interface solution based on the STM8 UART1 peripheral.


AN2646 Smartcard Interface with STM8S Microcontroller Application Note - cover page
Brand
STMicroelectronics
Document type
Application Note
Language
English
Pages
43
File format
PDF
File size
441 KB
Published
07 August, 2012
Updated
30 September, 2023
Model
STM8S
MD5 checksum
1DC7D2717A8C8E1B5887E39248481E43

About this manual

This document details a complete solution for interfacing with smartcards using the STM8S microcontroller's UART1 peripheral in smartcard mode. It covers the necessary firmware library functions and hardware configuration required to support asynchronous protocol smartcards defined in the ISO 7816-3 standard.

The guide provides an overview of the ISO 7816 protocol, including pin locations and signal transmission details. It also includes specific instructions for connecting a smartcard reader (such as the ST8024 device) to the STM8S microcontroller via GPIO pins and explains how to manage card power-up, reset, data transfer, and security commands.

What's inside

  • Smartcard interface description
  • External interface
  • Protocol overview
  • ISO 7816-2 pin location
  • ISO 7816-3 electronic signal protocol
  • Smartcard reader hardware connection
  • ISO 7816-4 smartcard commands
  • Smartcard interface library description

Specifications

Supported StandardISO 7816-3 (Class A)
Data BitsEight data bits plus parity
Stop Bits0.5 or 1.5 stop bits

Frequently asked questions

What peripheral is used for the smartcard interface?

The solution is based on the STM8 UART1 peripheral.

Which ISO standard does this application note cover?

It covers the ISO 7816-3/4 specification for smartcards.

What device is used as an example for hardware connection?

The ST8024 device is used as a complete low-cost analog interface.

Download PDF (441 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →