AT89C5121-SK1

AT89C5121-SK1 Datasheet


8-bit Microcontroller with Multiprotocol Smart Card Interface T83C5121 T85C5121 T89C5121 AT83C5121 AT85C5121 AT89C5121

Part Datasheet
AT89C5121-SK1 AT89C5121-SK1 AT89C5121-SK1 (pdf)
Related Parts Information
T89C5121-ICUIL T89C5121-ICUIL T89C5121-ICUIL
AT89C5121-YSUL AT89C5121-YSUL AT89C5121-YSUL
AT89C5121-ICSUL AT89C5121-ICSUL AT89C5121-ICSUL
89C5121-SK1 89C5121-SK1 89C5121-SK1
T85C5121-S3SIL T85C5121-S3SIL T85C5121-S3SIL
T85C5121-ICSIL T85C5121-ICSIL T85C5121-ICSIL
PDF Datasheet Preview
• 80C51 Core 12 or 6 Clocks per Instruction X1 and X2 Modes 256 Bytes Scratchpad RAM Dual Data Pointer Two 16-bit Timer/Counters T0 and T1
• T83C5121 with 16 Kbytes Mask ROM
• T85C5121 with 16 Kbytes Code RAM
• T89C5121 with 16 Kbytes Code RAM and 16 Kbytes EEPROM
• On-chip Expanded RAM XRAM 256 Bytes
• Versatile Host Serial Interface

Full-duplex Enhanced UART EUART with Dedicated Baud Rate Generator BRG Most Standard Speeds up to 230K bits/s at MHz

Output Enable Input Multiple Logic Level Shifters Options 1.8V to VCC Automatic Level Shifter Option
• Multi-protocol Smart Card Interface Certified with Dedicated Firmware According to ISO 7816, EMV2000, GIE-CB, GSM
11.12V and WHQL Standards Asynchronous Protocols T = 0 and T = 1 with Direct and Inverse Modes Baud Rate Generator Supporting All ISO7816 Speeds up to D = 32/F = 372 Parity Error Detection and Indication Automatic Character Repetition on Parity Errors Programmable Timeout Detection Card Clock Stop High or Low for Card Power-down Mode Support Synchronous Card with C4 and C8 Programmable Outputs Card Detection and Automatic De-activation Sequence Step-up/down Converter with Programmable Voltage Output 5V, 3V ± 8% at
60 mA and 1.8V ±8% at 20 mA Direct Connection to Smart Card Terminals:

Short Circuit Current Limitation

Logic Level Shifters
4 kV ESD Protection MIL/STD 833 Class 3
• Alternate Card Support with CLK, I/O and RST According to GSM 11.12V Standard
• 2x I/O Ports 6 I/O Port1 and 8 I/O Port3
• 2x LED Outputs with Programmable Current Sources 2, 4, or 10 mA
• Hardware Watchdog
• Reset Output Includes

Hardware Watchdog Reset Power-on Reset POR Power-fail Detector PFD
• 4-level Priority Interrupt System with 7 Sources
• to 16 MHz On-chip Oscillator with Clock Prescaler
• Absolute CPU Maximal Frequency 16 MHz in X1 mode, 8MHz in X2 mode
• Idle and Power-down Modes
• Voltage Operation 2.85V to 5.4V
• Low Power Consumption 8 mA Operating Current at 5.4V and MHz 150 mA Maximum Current with Smart Card Power-on at 16 MHz X1 Mode 30 uA Maximum Power-down Current at 3.0V without Smart Card 100 uA Maximum Power-down Current at 5.4V without Smart Card
• Temperature Range Commercial 0 to +70°C Operating Temperature Industrial -40 to +85°C Operating Temperature
• Packages SSOP24 QFN32 PLCC52
8-bit Microcontroller with Multiprotocol Smart Card Interface T83C5121 T85C5121 T89C5121 AT83C5121 AT85C5121 AT89C5121

Block Diagram

Figure Block Diagram

T8xC5121 is a high performance CMOS ROM/CRAM derivative of the 80C51 CMOS single chip 8-bit microcontrollers.

T8xC5121 retains the features of the Atmel 80C51 with extended ROM capacity 16 Kbytes , 512 bytes of internal RAM, a 4-level interrupt system, two 16-bit timer/counters T0/T1 , a full duplex enhanced UART EUART with baud rate generator BRG and an on-chip oscillator.

In addition, the T8xC5121 have, a Multi protocol Smart Card Interface, a dual data pointer, 2 programmable LED current sources 2-4-10 mA and a hardware Watchdog.

T89C5121 Flash RAM version and T85C5121 Code RAM version can be loaded by InSystem Programming ISP software residing in the on-chip ROM from a low-cost external serial EEPROM or from R232 interface.

T8xC5121 have 2 software-selectable modes of reduced activity for further reduction in power consumption.

RxD TxD EVCC DVCC VCC VSS LI CVSS

XTAL1 XTAL2

EA PSEN

Xtal Osc
:1-16 Clock Prescaler

RAM EUART 256 x8

ROM 16K x8

CRAM 16K x8

XRAM 256 x8

C51 CORE

IB-bus

Voltage Reg.

Timer 0 INT Timer 1 Ctrl

Watchdog POR PFD
6 I/Os 8 I/Os Parallel I/O Ports

Direct Drive LED

Output

DC/DC Converter

Level Shifters

SCIB

Alternate Card

CVCC
1 111 CCRCCCSCIOT84 1 CCLK 1 CPRES
Bit ordering on the I/O pin depends on the Convention see SCICR

Register .

Reset Value = 0000 0000b

Table SCRBUF Register

SCRBUF S:AA read-only, SCRS = 1 Smart Card Receive Buffer Register

Bit Number

Bit Mnemonic Description
Provides the byte received from the I/O pin when SCRI is set. Bit ordering on the I/O pin depends on the Convention see SCICR Register .

Reset Value = 0000 0000b

Table SCETU1 Register

SCETU1 S:ADh, SCRS = 1 Smart Card ETU Register 1

COMP

ETU10

ETU9

ETU8

Number Mnemonic Description

Compensation

Clear this bit when no time compensation is needed i.e. when the ETU to Card

COMP

CLK period ratio is close to an integer with an error less than 1/4 of Card CLK period .

Set this bit otherwise and reduce the ETU period by 1 Card CLK cycle for even
bits.

Reserved The value read from these bits is indeterminate. Do not change these bits

ETU[10:8]

ETU MSB Used together with the ETU LSB see SCETU0 Register .

Reset Value = 0XXX X001b
44 A/T8xC5121

A/T8xC5121

Table SCETU0 Register

SCETU0 S:ACh, SCRS = 1 Smart Card ETU Register 0

ETU7

ETU6

ETU5
4 ETU4
3 ETU3
2 ETU2
1 ETU1
0 ETU0

Bit Number

Bit Mnemonic Description

ETU[7:0]

ETU LSB The Elementary Time Unit is ETU[10:0] - 0.5*COMP /f, where f is the Card CLK frequency. According to ISO7816, ETU[10:0] can be set between 11 and The default reset value of ETU[10:0] is 372 F = 372, D =

Reset Value = 0111 0100b

Table SCGT1 Register

SCGT1 S:B5h, SCRS = 1 Smart Card Transmit Guard Time Register 1

Bit Number

Bit Mnemonic Description

Reserved The value read from these bits is indeterminate. Do not change these bits
Ordering Information

T83C5121xxxICSIL

T83C5121xxxICRIL

T83C5121xxxS3SIL

T83C5121xxxS3RIL

T85C5121-ICSIL

T85C5121-ICRIL

T85C5121-S3SIL

T85C5121-S3RIL

T89C5121-ICSIL

T89C5121-ICRIL

Code Memory Size Bytes Supply Voltage
16K ROM
- 5.4V
16K ROM
- 5.4V
16K ROM
- 5.4V
16K ROM
16K RAM 16K RAM 16K RAM 16K RAM 16K Flash RAM 16K Flash RAM
- 5.4V
- 5.4V - 5.4V - 5.4V - 5.4V - 5.4V - 5.4V

Temperature Range Industrial

Industrial

Industrial

Industrial

Max Frequency 16 MHz
16 MHz
16 MHz
16 MHz 16 MHz 16 MHz 16 MHz 16 MHz 16 MHz 16 MHz

Package SSOP24

SSOP24

PLCC52 1

PLCC52 1 SSOP24 PLCC52 SSOP24

Packing Stick

Tape & Reel

Stick

Tape & Reel Stick

Tape & Reel Stick

Tape & Reel Stick

Tape & Reel
Added green product ordering information.

Changes from 4164F 11/05 to 4164F 07/06
Added QFN32 package to ordering information.

Table of Contents

Features 1

Description 2

Block Diagram 2

Pin Description 3

Signals Port Structure

SFR Mapping 12

PowerMonitor 14
14 PowerMonitor Diagram 14

Power Monitoring and Clock Management 16

Idle Mode 16 Power-down 16

Clock 22

Functional Block 22 X2 Feature 23 Clock 24 Clock Control Registers 24

DC/DC Clock 27

Clock Control 27 Clock 27

Smart Card Interface Block SCIB 29

Introduction 29 Main 29 Block Diagram Functional Description 30 Other DC/DC Registers

Interrupt System 47

INT1 Interrupt Vector 48

LED Ports Configuration 57

Registers 57

Dual Data Pointer 58
i A/T8xC5121

A/T8xC5121

Memory Management 60

Program Memory 60 In-System Programming 63 Protection Mechanisms 66 Autobaud 71 Protection Mechanisms 71

Timers/Counters 73

Introduction 73 Timer 0/Counter Operations 73 Timer 78

Serial I/O Port 81

Framing Error Detection 81 Automatic Address 82 UART Output 84 UART Control Registers 85

UART Timings 86

Mode Selection 86 Baud Rate 86 Asynchronous Modes 1, 2 and 3

Hardware Watchdog Timer 96

Using the WDT 96 WDT during Power-down and 97

Electrical Characteristics 98

Absolute Maximum Ratings 98 DC Parameters 98

Typical Application 105
Ordering 107

Package 108
108 PLCC52 QFN32

Changes from 4164B -06/02 to 4164C - 111 Changes from 4164C - 07/03 to 4164D - 111 Changes from 4164D - 12/03 to 4164E - 111

Changes from 4164E - 01/04 to 4164F 11/05 111 Changes from 4164F 11/05 to 4164F 111

Table of Contents i
iii A/T8xC5121

Atmel Corporation
2325 Orchard Parkway San Jose, CA 95131, USA Tel 1 408 441-0311 Fax 1 408 487-2600

Regional Headquarters

Europe Atmel Sarl Route des Arsenaux 41 Case Postale 80 CH-1705 Fribourg Switzerland Tel 41 26-426-5555 Fax 41 26-426-5500

Asia Room 1219 Chinachem Golden Plaza 77 Mody Road Tsimshatsui East Kowloon Hong Kong Tel 852 2721-9778 Fax 852 2722-1369

Japan 9F, Tonetsu Shinkawa Bldg. 1-24-8 Shinkawa Chuo-ku, Tokyo 104-0033 Japan Tel 81 3-3523-3551 Fax 81 3-3523-7581

Atmel Operations

Memory 2325 Orchard Parkway San Jose, CA 95131, USA Tel 1 408 441-0311 Fax 1 408 436-4314

Microcontrollers 2325 Orchard Parkway San Jose, CA 95131, USA Tel 1 408 441-0311 Fax 1 408 436-4314

La Chantrerie BP 70602 44306 Nantes Cedex 3, France Tel 33 2-40-18-18-18 Fax 33 2-40-18-19-60

ASIC/ASSP/Smart Cards Zone Industrielle 13106 Rousset Cedex, France Tel 33 4-42-53-60-00 Fax 33 4-42-53-60-01
1150 East Cheyenne Mtn. Blvd. Colorado Springs, CO 80906, USA Tel 1 719 576-3300 Fax 1 719 540-1759

Scottish Enterprise Technology Park Maxwell Building East Kilbride G75 0QR, Scotland Tel 44 1355-803-000 Fax 44 1355-242-743

RF/Automotive Theresienstrasse 2 Postfach 3535 74025 Heilbronn, Germany Tel 49 71-31-67-0 Fax 49 71-31-67-2340 1150 East Cheyenne Mtn. Blvd. Colorado Springs, CO 80906, USA Tel 1 719 576-3300 Fax 1 719 540-1759

Biometrics/Imaging/Hi-Rel MPU/ High Speed Converters/RF Datacom

Avenue de Rochepleine BP 123 38521 Saint-Egreve Cedex, France Tel 33 4-76-58-30-00 Fax 33 4-76-58-34-80

Literature Requests

Disclaimer The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise,to anyintellectualproperty right is granted by this document or in connection with the sale of Atmel products. EXCEPT AS SET FORTH IN ATMEL’S TERMS AND CONDI-TIONS OF SALE LOCATED ON ATMEL’S WEB SITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORYWARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULARPURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDEN-TAL DAMAGES INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF PROFITS, BUSINESS INTERRUPTION, OR LOSS OF INFORMATION ARISING OUTOF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF ATMEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Atmel makes norepresentationsor warranties with respect to the accuracy or completeness of the contents of this document and reserves the right to make changes to specificationsand product descriptions at any time without notice. Atmel does not make any commitment to update the information contained herein. Unless specifically provided otherwise, Atmel products are not suitable for, and shall not be used in, automotive applications. Atmel’s products are not intended, authorized, or warranted for useas components in applications intended to support or sustainlife.

Atmel Corporation All rights reserved. logo and combinations thereof, are registered trademarks, and Everywhere You are the trademarks of Atmel Corporation or its subsidiaries. Other terms and product names may be trademarks of others.

Printed on recycled paper.
More datasheets: FGA90N33ATDTU | CS4382-KQZR | CS4382-KQZR/E | CS4382-KQZ/E | CS4382-KQZ | 1H0568-3 | T89C5121-ICUIL | AT89C5121-YSUL | AT89C5121-ICSUL | 89C5121-SK1


Notice: we do not provide any warranties that information, datasheets, application notes, circuit diagrams, or software stored on this website are up-to-date or error free. The archived AT89C5121-SK1 Datasheet file may be downloaded here without warranties.

Datasheet ID: AT89C5121-SK1 519099