AT89C5122DS-RDTUM

AT89C5122DS-RDTUM Datasheet


• Memory Controller Internal Program memory<br>•up to 32KB of Flash or CRAM or ROM for AT8xC5122 or ROM for AT83R5122<br>•up to 30KB of ROM for AT83C5123 Internal Data Memory 768 bytes including 256 bytes of data and 512 bytes of XRAM Optional internal data E2PROM 512 bytes

Part Datasheet
AT89C5122DS-RDTUM AT89C5122DS-RDTUM AT89C5122DS-RDTUM (pdf)
Related Parts Information
AT89C5122D-RDRIM AT89C5122D-RDRIM AT89C5122D-RDRIM
AT89C5122D-RDRUM AT89C5122D-RDRUM AT89C5122D-RDRUM
AT89C5122D-PSTUM AT89C5122D-PSTUM AT89C5122D-PSTUM
AT89C5122D-SISUM AT89C5122D-SISUM AT89C5122D-SISUM
AT89C5122D-RDTUM AT89C5122D-RDTUM AT89C5122D-RDTUM
AT89C5122DS-ALTUM AT89C5122DS-ALTUM AT89C5122DS-ALTUM
AT89C5122D-Z1TUM AT89C5122D-Z1TUM AT89C5122D-Z1TUM
AT89C5122D-ALRUM AT89C5122D-ALRUM AT89C5122D-ALRUM
AT89C5122D-ALTUM AT89C5122D-ALTUM AT89C5122D-ALTUM
AT89C5122D-RDVIM AT89C5122D-RDVIM AT89C5122D-RDVIM
PDF Datasheet Preview
• Clock Controller 80C51 core with 6 clocks per instruction 8 MHz On-Chip Oscillator PLL for generating clock to supply CPU core, USB and Smart Card Interfaces Programmable CPU clock from 500 KHz / X1 to 48 MHz / X1
• Reset Controller Power On Reset POR feature avoiding an external reset capacitor Power Fail Detector PFD Watch-Dog Timer
• Power Management Two power saving modes Idle and Power Down Four Power Down Wake-up Sources Smart Card Detection, Keyboard Interrupt, USB Resume, External Interrupt Input Voltage Range 3.0V - 5.5V Core’s Power Consumption Without Smart Card and USB
•30 mA Maximum Operating Current 48 MHz / X1
•200 uA Maximum Power-down Current 5.5V
• Interrupt Controller up to 9 interrupt sources up to 4 Level Priority
• Memory Controller Internal Program memory
•up to 32KB of Flash or CRAM or ROM for AT8xC5122 or ROM for AT83R5122
•up to 30KB of ROM for AT83C5123 Internal Data Memory 768 bytes including 256 bytes of data and 512 bytes of XRAM Optional internal data E2PROM 512 bytes
• Two 16-bit Timer/Counters
• USB Full Speed Interface
48 MHz DPLL On-Chip 3.3V USB voltage regulator and transceivers Software detach feature 7 endpoints programmable with In or out directions and ISO, Bulk or Interrupt Transfers :
•Endpoint 0 32 Bytes Bidirectionnal FIFO for Control transfers
•Endpoints 1,2,3 8 bytes FIFO
•Endpoints 4,5 64 Bytes FIFO
•Endpoint 6 2*64 bytes FIFO with Pin-Pong feature
• ISO 7816 UART Interface Fully Compliant with EMV, GIE-CB and WHQL Standards Programmable ISO clock from 1 MHz to MHz Card insertion/removal detection with automatic deactivation sequence Programmable Baud Rate Generator from 372 to clock pulses Synchronous/Asynchronous Protocols T=0 and T=1 with Direct or Inverse Convention Automatic character repetition on parity errors 32 Bit Waiting Time Counter 16 Bit Guard Time Counter Internal Step Up/Down Converter with Programmable Voltage Output
•VCC = 4.0V to 5.5V, 1.8V-30 mA, 3V-60 mA and 5V-60 mA
•VCC = 3.0V, 1.8V-30 mA, 3V-30 mA and 5V-30 mA Current overload protection 6 kV ESD MIL/STD 833 Class 3 protection on whole Smart Card Interface
• Alternate Smart Card Interface with CLK, IO and RST
• UART Interface with Integrated Baud Rate Generator BRG
• Keyboard interface with up to 20x8 matrix management capability
• Master/Slave SPI Interface
• Four 8 bit Ports, one 6 bit port, one 3-bit port Up to Seven LED outputs with 3 level programmable current source 2, 4 and 10 mA Two General Purpose I/O programmable as external interrupts Up to 8 input lines programmable as interrupts Up to 30 output lines

C51 Microcontroller with USB and Smart Card Reader Interfaces AT83C5122 AT83R5122 AT85C5122 AT89C5122 AT89C5122DS AT83C5123

Reference Documents

The user must get the following additionnal documents which are not included but which complete this product datasheet
• Product Errata Sheet
• Bootloader Datasheet
2 AT83R5122, AT8xC5122/23

AT83R5122, AT8xC5122/23

Product Description

Table Product versions

Packages

Program memory Internal Data E2PROM Embedded bootloader

VQFP32, QFN32 packages

PLCC68,

VQFP64,QFN64 packages

AT8xC5122/23 products are high-performance CMOS derivatives of the 80C51 8-bit microcontrollers designed for USB smart card reader applications.

The AT8xC5122 is proposed in four versions :
- ROM version referenced AT83R5122 is only factory programmable.
- CRAM version without internal data E2PROM. The CRAM device implements a volatile program memory which is programmed by means of an embedded ROMed bootloader which transfers the code from a remote software programming tool called FLIP through UART or USB interfaces.
- Flash version without internal data E2PROM. At power-up, the program located in the flash memory is transferred into the CRAM then executed.

The AT83C5123 is a low pin count of the AT8xC5122 and is proposed in ROM version with or without internal data E2PROM. The ROM device is only factory programmable.

The AT8xC5122DS is a secure version of the AT8xC5122 on which the external program memory access mode is disabled.

AT83C5122 AT83R5122

VQFP64 QFN64 Die Form
32KB ROM

AT85C5122 PLCC68 VQFP64 Die Form
32KB CRAM No Yes

AT89C5122

VQFP64 QFN64
32KB E2PROM No Yes

All features are available

AT89C5122DS VQFP64 QFN64
32KB E2PROM No Yes

All features are available
except External Program Memory

Access
Can store a new byte to be transmitted on the I/O pin when SCTBE is set. Bit ordering on the I/O pin depends on the convention
Provides the byte received from the I/O pin when SCRI is set. Bit ordering on the I/O pin depends on the convention.
36 AT83R5122, AT8xC5122/23

AT83R5122, AT8xC5122/23

Table SCIB SFRs

Mnemonic Add Name

SCICLK

Smart Card Frequency Prescaler Register

XTSCS 1

SCICLK5-0

Table DC/DC SFRs

Note Only for AT8xC5122

Mnemonic Add Name

DCCKPS

DC/DC Converter Reload Register

MODE OVFADJ

BOOST[1-0]

DCCKPS3-0

Table Keyboard SFRs

Mnemonic Add Name

KBF 1
9Eh Keyboard Flag Register

KBE7 - 0

KBE 1

Keyboard Input Enable Register

KBF7 - 0

KBLS 1

Keyboard Level Selector Register

KBLS7 - 0

Table SPI SFRs

Note Only for AT8xC5122

Mnemonic Add Name

SPCON 1 C3h Serial Peripheral Control

SPR2

SPEN

SSDIS

SPSTA 1

Serial Peripheral StatusControl

SPIF

WCOL

SPDAT 1 C5h Serial Peripheral Data

Table USB SFRs
Ordering Information

Lead free/ RoHS Part Number

AT83R5122xxx-RDTUM AT83R5122xxx-RDRUM

AT83R5122xxx-PSTUM

AT83R5122xxx-PSRUM

Lead free/ RoHS Internal Part Number

Memory Size Supply Temperature Max Frequency
bytes Voltage V Range

Package

AT83R5122xxx-ALTUM
32K ROM

Industrial
48 MHz / X1 VQFP64

AT83R5122xxx-ALRUM 32K ROM

Industrial
48 MHz / X1 VQFP64

AT83R5122xxxZ1TUM
32K ROM

Industrial
48 MHz / X1

QFN64

AT83R5122xxx-Z1RUM
32K ROM

Industrial
48 MHz / X1

QFN64

Packing

Tray

Tape & Reel

Tray & Dry Pack

Tape & Reel & Dry Pack

AT85C5122D-RDTUM AT85C5122D-RDRUM

AT85C5122D-ALTUM AT85C5122D-ALRUM
32K CRAM 32K CRAM

Industrial
48 MHz / X1 48 MHz / X1

VQFP64

Tray Tape & Reel

AT89C5122D-RDTUM AT89C5122D-RDRUM AT89C5122D-PSTUM AT89C5122D-PSRUM

AT89C5122D-ALTUM AT89C5122D-ALRUM
32K FLASH - 32K FLASH -
Product AT89C5122DS added EA pin changed to VCC Typical applications section external pull-up shown on CIO pin Ports section Detailed explanations on CIO, CC4, CC8 quasi-bidirectional ports Ordering information section AT89C5122DS part-numbers added

Changes from 4202D to 4202E

Changed input voltage frequency from 3.6V to 3.0V throughout the document. Update of DC parameters of smart card interface to be EMV compliant.

Changes from 4202E to 4202F

Product AT83EC5122 and AT83EC5123 removed. Product AT83R5122 added. Package PLCC28 not supported anymore. Global update.
204 AT83R5122, AT8xC5122/23

AT83R5122, AT8xC5122/23

Table of Contents

Features 1

Reference Documents 2 Product Description 3 AT8xC5122/AT83R5122 Block Diagram 4 AT83C5123 Block Diagram 4

Pinout 5

High Pin Count Package 5 Low Pin Count Package Description 10 Pin 11

Typical Applications 15

Recommended External components 15 USB Keyboard with Smart Card Reader Using AT83R5122, AT8xC5122/AT89C5122DS 16 USB Smart Card Reader Using the AT83C5123 17

Memory Organization 18

Program Memory Managament 18 Data Memory Managament 19 Dual Data Pointer Register DDPTR 20 22 AT8xC5122’s CRAM and E2PROM Versions 24 AT83R5122, AT8xC5122’s ROM Version 28 AT83C5123 Version 30

Special Function Registers SFR’s 31

Introduction 31 AT8xC5122 32 AT83C5123 Version 33 SFR’s Description 34

Clock Controller 39

On-Chip Oscillator 39 Phase Lock Loop PLL 40 Clock Tree Architecture 41 48

I/O Port Definition 51

Port 55 59

Smart Card Interface Block SCIB 62

Block Diagram 63

Definitions 63 Functional Description 65 Additional 72 Alternate 76 Registers 76 DC/DC 86

USB Controller 93
94 Configuration 97 Read/Write Data FIFO 100 Bulk / Interrupt 101 Control 105 Isochronous 106 Miscellaneous 108 Suspend/Resume Management Detach 112 USB Interrupt System 113 115

Serial I/O Port 124

Framing Error Detection 124 Automatic Address 125 Asynchronous Modes 1, 2 and 3 129 Modes 2 and 3 130 133

Serial Port Interface SPI 135
135 Signal 135 Functional Description 137

Timers/Counters 145

Timer/Counter Operations 145 Timer 145 Timer 148 150

Keyboard Interface 153

Introduction 153 154

Interrupt System 157

Introduction 157 Interrupt System Description 157
206 AT83R5122, AT8xC5122/23

AT83R5122, AT8xC5122/23
160 Interrupt Sources and Vectors 169

Microcontroller Reset 170
Ordering 199

Changes from 4202A to 4202B Changes from 4202B to 4202C Changes from 4202C to 4202D Changes from 4202D to 4202E Changes from 4202E to 4202F

Table of Contents 205

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 any intellectual property right is granted by this document or in connection with the sale of Atmel products. EXCEPT AS SET FORTH IN ATMEL’S TERMS AND CONDITIONS OF SALE LOCATED ON ATMEL’S WEB SITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDENTAL DAMAGES INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF PROFITS, BUSINESS INTERRUPTION, OR LOSS OF INFORMATION ARISING OUT OF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF ATMEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Atmel makes no representations or warranties with respect to the accuracy or completeness of the contents of this document and reserves the right to make changes to specifications and 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 use as components in applications intended to support or sustain life.

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: BCM5464SRA1KFBG | EAAY03BLBGGA0 | 13841 | BC214_J35Z | BC214 | AT89C5122D-RDRIM | AT89C5122D-RDRUM | AT89C5122D-PSTUM | AT89C5122D-SISUM | AT89C5122D-RDTUM


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 AT89C5122DS-RDTUM Datasheet file may be downloaded here without warranties.

Datasheet ID: AT89C5122DS-RDTUM 519100