ChipFind - документация

Электронный компонент: S3C89V5

Скачать:  PDF   ZIP
S3C89V5
8-BIT MICROCONTROLLER
for SMART CARD
Data sheet
Revision 2
S3C89V5
DATA SHEET REVISION 2
2 / 2
SAMSUNG CONFIDENTIAL
Important Notice
The information in this publication has been carefully
checked and is believed to be entirely accurate at the
time of publication. Samsung assumes no
responsibility, however, for possible errors or
omissions, or for any consequences resulting from the
use of the information contained herein.
Samsung reserves the right to make changes in its
products or product specifications with the intent to
improve function or design at any time and without
notice and is not required to update this
documentation to reflect such changes.
This publication does not convey to a purchaser of
semiconductor devices described herein any license
under the patent rights of Samsung or others.
Samsung makes no warranty, representation, or
guarantee regarding the suitability of its products for
any particular purpose, nor does Samsung assume
any liability arising out of the application or use of any
product or circuit and specifically disclaims any and all
liability, including without limitation any consequential
or incidental damages.
"Typical" parameters can and do vary in different
applications. All operating parameters, including
"Typicals" must be validated for each customer
application by the customer's technical experts.
Samsung products are not designed, intended, or
authorized for use as components in systems intended
for surgical implant into the body, for other applications
intended to support or sustain life, or for any other
application in which the failure of the Samsung
product could create a situation where personal injury
or death may occur.
Should the Buyer purchase or use a Samsung product
for any such unintended or unauthorized application,
the Buyer shall indemnify and hold Samsung and its
officers, employees, subsidiaries, affiliates, and
distributors harmless against all claims, costs,
damages, expenses, and reasonable attorney fees
arising out of, either directly or indirectly, any claim of
personal injury or death that may be associated with
such unintended or unauthorized use, even if such
claim alleges that Samsung was negligent regarding
the design or manufacture of said product.
S3C89V5 8-Bit CMOS Microcontrollers
Data Sheet, Revision 2
Publication Number: 10-S3-C89V5-11-2002
2002 Samsung Electronics
All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted in
any form or by any means, electric or mechanical, by photocopying, recording, or otherwise, without the prior
written consent of Samsung Electronics.
Samsung Electronics' microcontroller business has been awarded full ISO-14001
certification (BSI Certificate No. FM24653). All semiconductor products are designed
and manufactured in accordance with the highest quality standards and objectives.
Samsung Electronics Co., Ltd.
San #24 Nongseo-Ri, Giheung-Eup
Yongin-City, Gyeonggi-Do, Korea
C.P.O. Box #37, Suwon 440-900
Home Page:
http://www.samsungsemi.com
E-mail :
chipcard@samsung.co.kr
Fax : +82-31-209-6494
Printed in the Republic of Korea
S3C89V5
DATA SHEET REVISION 2
3 / 3
SAMSUNG CONFIDENTIAL
OVERVIEW
The S3C89V5 single-chip CMOS microcontroller is specially designed and packaged for "smart card" applications.
The SAM88RC CPU architecture supports Stop and Idle power-down modes for reduced power consumption. To
increase the general-purpose register space, the physical internal register file is logically expanded.
The S3C89V5 has 47K-byte of program memory (ROM), 16K-byte of data memory (EEPROM), 272-byte general-
purpose register file and 1024-byte data buffer (SRAM). The following peripherals are integrated on-chip:

-- Contact or Contactless mode detection automatically
-- ISO 7816 compatible asynchronous serial interface for contact operation
-- Energy extraction and supply regulation circuits, clock extraction from 13.56 MHz carrier
-- ISO 14443-2 compatible (Type B)
-- One 16-bit Random number generator
-- Hardware-level EEPROM write inhibit features for data security
-- Frequency/Voltage/Temperature/Light exposure/Decapsulation various detectors with flag/reset action
-- ROM,RAM,EEPROM BUS Scramble
-- Contact UART(T=0, and T=1)
-- Contactless UART(Type B)
-- 16bit timer
-- Hardware CRC logic for Type B
-- Hardware DES logic
Data can be loaded into the EEPROM in units ranging from one byte to 32-byte. A typical EEPROM erase or write
operation takes 1.5 milliseconds.
A simple yet effective hardware-level security feature based on abnormal voltage, frequency, decapsulation
temperature and light exposure detection circuits keeps data stored in PROM/EEPROM.
The S3C89V5's 8-pin COB package and its serial I/O interface are fully compliant with ISO standards 7816,
respectively
.
.
S3C89V5 (REVISION 1)
PRODUCT OVERVIEW
1-4
SAMSUNG CONFIDENTIAL
FEATURES
CPU
SAM88RC 8-bit CPU core
78 instructions, including multiply and divide
STOP and IDLE instructions added to reduce
power consumption
Memory
47K-byte of ROM for program memory
16K-byte of EEPROM for program/data memory
1K-byte static RAM for program /data memory
272 bytes for general-purpose register file
EEPROM Write Operations
Programmable EEPROM erase/write time
Byte-wise to page-wise (32 bytes) EEPROM
Min. 500,000 erase/write cycles
Min. 10 years data retention
Data Security
Invisible ROM code due to implantation
32-byte security PROM, hardware protected
32-byte non erasable EEPROM
Unipue serial number for each chip
Reset operations are selective if abnormal
voltage/frequency/temperature/light/power-glitch
exposure/decasulation is detected.
Interrupt
9 interrupt sources and vectors
Reset
Power-on reset circuit
External reset circuit
DES (Data Encryption Standard)
Built-in triple DES
CRC Calculator
Built-in triple CRC
UART
T = 0 and 1 (ISO 7816 compliant)
Type B (ISO 14443 compliant)
16-bit Random Number Generator
One 16-bit random number generator with
internal ring oscillator
Automatic Operating Mode Detect
Contact/Contactless
Contactless Specific Features
13.56 MHz operation
106 Kbps, 212 Kbps or higher data transfer rate
10% ASK demodulation
Load modulation
Programmable contactless interface parameters
Contact Specific Feature
Single power supply: 2.7 5.5 V
ISO 7816-3 compatible
Operating frequency: 1 5 MHz
Operating Temperature
25
C to + 85
C
Package
8-pin COB (conforms to ISO standard 7816)
S3C89V5 (REVISION 1)
PRODUCT OVERVIEW
1-5
SAMSUNG CONFIDENTIAL
BLOCK DIAGRAM
L2
L1
Security Control
SAM87RC
8-Bit CPU
EEPROM
16-Kbyte
ROM
User: 47-Kbyte
Register File
(272-byte)
High Voltage
Generator
SAM88RC Address/Data Bus
RAM
(1-Kbyte)
Contactless
Interface
UART
Power-on
Reset
I/O1
I/O2
RST
V
CC
GND
CLK
Triple DES
Random
Number
Generator
H/W CRC
16-bit timer
Decapsulation
Detector
Light Exposure
Detector
Temperature
Detector
Voltage/
Frequency
Detector
Power-Glitch
Detector
Figure 1. S3C89V5 Block Diagram
S3C89V5 (REVISION 1)
PRODUCT OVERVIEW
1-6
SAMSUNG CONFIDENTIAL
SAM88RC OVERVIEW
The SAM88RC instruction set is designed to support large register files. It features a full complement of 8-bit
arithmetic and logic operations, including multiply and divide. There are 78 instructions. No special I/O
instructions are necessary because I/O control and data registers are mapped directly into the register file.
Decimal adjustment is included in binary-coded decimal (BCD) operations. 16-bit word data can be incremented
and decremented. Flexible instructions for bit addressing, rotate, and shift operations complete the powerful data
manipulation capabilities of the SAM88RC instruction set.
DATA TYPES
The SAM88RC CPU performs operations on bits, bytes, BCD digits, and two-byte words. Bits in the register file
can be set, cleared, complemented, and tested. Bits within a byte are numbered from 7 to 0, where bit 0 is the
least significant (right-most) bit.
REGISTER ADDRESSING
To access an individual register, an 8-bit address in the range 0-255 or the 4-bit address of a working register
should be specified. Paired registers can be used to construct 16-bit data or 16-bit program memory or data
memory addresses. For detailed information about register addressing, please refer to Section 2, "Address
Spaces."
ADDRESSING MODES
There are seven addressing modes: Register (R), Indirect Register (IR), Indexed (X), Direct (DA), Relative (RA),
Immediate (IM), and Indirect (IA). For detailed descriptions of these addressing modes, please refer to Section 3,
"Addressing Modes."
S3C89V5 (REVISION 1)
PRODUCT OVERVIEW
1-7
SAMSUNG CONFIDENTIAL
MEMORY OVERVIEW
The S3C89V5 has four kinds of memory space:
-- Internal program memory (ROM)
-- Internal data memory (EEPROM)
-- Internal data buffer (RAM)
-- Internal register files (RAM)
A 16-bit address bus and an 8-bit data bus support program memory and data memory operations. A separate
8-bit address bus and the 8-bit data bus carry addresses and data between the CPU and the register files.
PROGRAM MEMORY (ROM)
The S3C89V5 has an internal 47K-byte mask-programmable, read-only program memory (ROM). The addresses
0EEH0FFH of the ROM are reserved as an interrupt vector area.
DATA MEMORY (EEPROM)
The S3C89V5 has a 16K -byte electrically erasable, programmable read-only memory (EEPROM). A flexible and
fast programming mode is provided to the user, and 1 to 32 bytes can be written at a time. The time is also
programmable.
The first page of EEPROM (C000H-C01FH) is security area for unique serial number (read only) and the second
page of EEPROM (C020H-C03FH) is non erasable area for writing only (cannot be erased).
An additional application program can be downloaded in the EEPROM and it can be executed like program
memory.
INTERNAL DATA BUFFER (RAM)
The S3C89V5 has a 1K-byte internal data buffer (extended data memory) as static RAM. This memory can be
used for I/O communication buffer or internal RAM like internal registers. An external data memory instruction
such as LDE, LDED, or LDEI accesses these EEPROM and RAM.
An additional application program can be downloaded in the RAM and it can be executed like program memory.
S3C89V5 (REVISION 1)
PRODUCT OVERVIEW
1-8
SAMSUNG CONFIDENTIAL
User Program
Area
Interrupt
Vector Area
47K-byte
Program Memory
(ROM)
Security Area
Non Erasable Area
16K-byte
Data Memory
(EEPROM)
1K-byte
Extended Data
Memory (RAM)
0000H
00FFH
0100H
BBFFH
C000H
C020H
FFFFH
BC00H
BFFFH
C03FH
Figure 2. Memory Address Spaces
S3C89V5 (REVISION 1)
PRODUCT OVERVIEW
1-9
SAMSUNG CONFIDENTIAL
16-BIT TIMER
The S3C89V5 has one 16-bit timer. It consists of a timer control register(TCON), 16-bit up counter(TCH,TCL)
and timer data(TDH,TDL).
The clock source for the timer can be an external clock for contact mode or cpu clock for contactless mode
depend on the CFG.4.
The timer generates an interrupt whenever the TDH,TDL value are identical to TCH,TCL respectively.
S3C89V5 (REVISION 1)
PRODUCT OVERVIEW
1-10
SAMSUNG CONFIDENTIAL
DES (DATA ENCRYPTION STANDARD)
S3C89V5 has the hardware DES which consists of key register block, data register block, DES rounding block
with s-box and p-box permutation, and its control registers as Figure 16-1.
Because each 64-bit DES key, K1 and K2 are write-only register, the key values are read-protected. On the other
hand, To be encrypted or decrypted 64-bit message should be loaded into 64-bit DESDATA registers, from
DESDATA0(MSB) to DESDATA7(LSB). The DESDATA registers are read/write registers.
DES OPERATION
To execute Single DES, the control sequence is as follows:
-- Select bank1 by SB1 instruction
-- Loading a 64-bit message into DESDATA0 (MSB) to DESDATA7 (LSB) registers
-- Writing DES keys, K1 and/or K2: into Key10 (MSB) to Key17 (LSB) registers for K1, Key20 (MSB)
to Key27 (LSB) for K2.
-- Select K1 or K2 by DESCON.5
-- Select Encryption or Decryption by DESCON.0
-- Start to DES operation by DESCON.4
TRIPLE DES OPERATION
Encryption-Decryption-Encryption operation should be executed consecutively for encryption. There are two
encryption steps with same key and one decryption step with the other key.
If key1 is used for encryption key, then Key 2 must be used for decryption key.
On the other hand, to decrypt the data, Decryption-Encryption-Decryption operation must be needed. In that
case, K1 is for decryption and K2 is encryption key.
S3C89V5 (REVISION 1)
PRODUCT OVERVIEW
1-11
SAMSUNG CONFIDENTIAL
UART
S3C89V5 support 2 types of method for serial I/O during contact and/or contactless communication. Those are
-- SIO Falling edge interrupt
-- UART TX/RX interrupt
You can choose one among two SIO implementation methods as follows:
The first one is software SIO:
-- refer to User's Manual Chap 11 "Contact/Contactless I/O interface"
The second one is UART, means hardware SIO

Contact UART
-- You can choose 12etu (T=0) or 11etu (T=1) transmission, change extra guard time (EGT), choose parity bit
for odd or even and select retry iteration number using CUARTCON1, CUARTCON2 contriol register
-- Through ETU cycle registers, you can switch into more high or low baud rate.
Contactless UART
-- Using TBMOD register, bit rate selection (106kbps, 212kbps), changing TR1 and EGT from card to reader
available for Type B protocol.
S3C89V5 (REVISION 1)
PRODUCT OVERVIEW
1-12
SAMSUNG CONFIDENTIAL
ANTENNA INTERFACE
The S3C89V5 has antenna interface circuit as Figure 3, which fulfils power management, modulation and
demodulation, and clock extraction for both ISO14443-type B operating with card reader.
The power management means the power supply regulation and the absorption of the extra energy associated
with close reader to card operating range.
S3C89V5 can detect and define the operating mode which is contact or contactless operating mode
automatically.
Internal I/O
VDD
L1
L2
Internal CPU Clock
Clock
Generator
??
2
CFG.4
0 = 3.39 MHz
1 = 6.78 MHz
100 % ASK
Demodulator
DC Shunt
Regulator
0 = Contactless Mode
1 = Contact Mode
Mode
Detector
??
4
Clock
Selector
RF
Regulator
ISO
Modulator
ISO 10%
Modulator
Reset
Regulator
Contactless Reset
STCOMP
CFG.7
CFG.3
FIGURE 3. ANTENNA INTERFACE
S3C89V5 (REVISION 1)
PRODUCT OVERVIEW
1-13
SAMSUNG CONFIDENTIAL
PIN ASSIGNMENTS
Table 1. S3C89V5 Pin Descriptions
Pin Number
Pin Name
Function Description
Pin Type
Circuit Type
C1
V
DD
Power input
C2
RST
System reset input
Input
1
C3
CLK
External clock input
Input
2
C4
I/O2
No connection
C5
GND
Ground
C6
NC
No connection
C7
I/O
Serial data input and output;
A pull up resistor should be connected to V
DD
externally in contact mode
Input/output
3
C8
NC
No connection
C1
C2
C3
C4
C6
C7
C8
C5
V
DD
RST
CLK
NC
GND
NC
I/O
NC
Figure 4. S3C89V5 COB Package Pin Arrangement
S3C89V5 (REVISION 1)
PRODUCT OVERVIEW
1-14
SAMSUNG CONFIDENTIAL
ELECTRICAL DATA
Table 2. D.C. Electrical Characteristics (Continued)
(T
A
= 25
?
C to + 85
?
C, V
DD
= 2.7 V to 5.5 V)
Parameter
Symbol
Conditions
Min
Typ
Max
Unit
f
CLK
=5Mhz, 5.5V
8
10
f
CLK
=5Mhz, 3.3V
4
7.5
Supply current
I
DD1
f
CLK
=4Mhz, 3.3V
-
3
6
mA
I
DD2
f
CLK
=1Mhz, 5.5V
-
-
200
Stop current
I
DD3
f
CLK
=GND, 5.5V
-
-
100
Low-voltage detection
V
LVD
f
CLK
=3.579Mhz
2.0
2.3
2.7
V
High-voltage detection
V
HVD
f
CLK
=3.579Mhz
5.5
6.2
7.0
V
Low-frequency detection
F
LFD
V
DD
=5V, 25
100
500
1000
khz
High-frequency detection
F
HFD
V
DD
=5V, 25
5
6.5
10
Mhz