Datasheet 搜索 > 微控制器 > ST Microelectronics(意法半导体) > STM8S208S6T6C 数据手册 > STM8S208S6T6C 开发手册 4/43 页


¥ 3.009
STM8S208S6T6C 开发手册 - ST Microelectronics(意法半导体)
制造商:
ST Microelectronics(意法半导体)
分类:
微控制器
封装:
LQFP-44
描述:
STM8 系列 8 位 32 kB 闪存 6 kB RAM 24 MHz 微控制器 - LQFP-44
Pictures:
3D模型
符号图
焊盘图
引脚图
产品图
页面导航:
引脚图在P9Hot
应用领域在P43
导航目录
STM8S208S6T6C数据手册
Page:
of 43 Go
若手册格式错乱,请下载阅览PDF原文件

Smartcard interface description AN2646 - Application note
4/43
1 Smartcard interface description
1.1 Introduction
The smartcard interface is developed using the UART1 smartcard mode. For the description
of the UART1 registers, please refer to the STM8S/STM8A reference manual (RM0009).
The UART1 smartcard mode supports asynchronous protocol smartcards as defined in the
ISO 7816-3 (Class A) standard, please refer to the ISO 7816-3 specification for more
details.
With the smartcard mode enabled, the UART1 must be configured as:
● Eight data bits plus parity
● 0.5 or 1.5 stop bits
A 5-bit prescaler and the smartcard clock generator provide the clock to the smartcard.
GPIO pins in conjunction with software are used to provide the rest of the functions required
to interface to the smartcard.
The inverse signalling convention as defined in ISO 7816-3, inverted data and MSB first, is
not handled in the software.
There are three types of card that operate at different voltages:
● 5V (ISO7816-3 Class A)
● 3V (ISO7816-3 Class B)
● 1.8V (ISO7816-3 Class C)
1.2 External interface
The Smartcard_RST (Smartcard reset), Smartcard_3/5V (3 V or 5 V), Smartcard_CMDVCC
(command for V
CC
), and Smartcard_OFF signals (signal for card detection) are provided by
GPIO bits of the I/O ports under software control. Programming the GPIO bits of the port for
alternate function open-drain mode connects the UART1_TX data signal to the
Smartcard_IO pin with the correct driver type and the clock generator to the
Smartcard_CLK pin configured in output push-pull.
1.3 Protocol
The ISO 7816-3 standard defines the bit times for the asynchronous protocol in terms of
time units called ETUs (elementary time units), that are related to the clock frequency input
Table 1. Smartcard pins
STM8S20x pin Smartcard pin Function
UART1_CK CLK Smartcard clock
UART1_TX IO IO serial data: open drain
Any GPIO RST Reset to card
Any GPIO V
CC
Supply voltage
Any GPIO V
PP
Programming voltage
器件 Datasheet 文档搜索
AiEMA 数据库涵盖高达 72,405,303 个元件的数据手册,每天更新 5,000 多个 PDF 文件