SILAN SC23M42A

SC23M42
256-BYTE MEMORY CARD IC
DESCRIPTION
SC23M42 is a smart card module utilizing CMOS EEPROM
technology. 256 bytes main memory, 32-bit protection memory, 3
bytes user password, and 3-bit password wrong counter (Value:
00000D2D1D0). And the periphery interface is compatible with
ISO7816 agreement (synchronous propagation).
FEATURES
* 256 X 8 bit EEPROM
* Byte addressing
* Write-protect area (former 32 bytes) can execute the write-protect
separately, and after the write-protect, the content cannot be
changed.
* 32 X 1bit protect memory
* Serial two buses interface
ORDERING INFORMATION
Device
Package
* More than 100,000 times write endurance cycles
SC23M42A
P6-05
* Data retention of more than 10 years
SC23M42B
MCTS012402
* Contact definition and serial interface comply to ISO7816
specification (synchronous propagation)
APPLICATIONS
* 3 Bytes user password, 3 bits(bit0-bit2) error counter
* Before the password is checked, all the data can be read; if the
* used for various IC memory cards.
password is correct, you can write or amend the data and the
password.
* Password error counter, and the initial value is 3. Checking the
password once, subtracts 1, if the value of the counter is 0, the
memory card will be locked automatically, and the data can only
be read, the password cannot be checked again; When the value
of the counter is not 0, if the password checking is correct for one
time, the value comes back to initial value.
* Comply to SLE4442
HANGZHOU SILAN MICROELECTRONICS CO.,LTD
Http: www.silan.com.cn
REV:1.0
2006.07.21
Page 1 of 11
SC23M42
BLOCK DIAGRAM
EEPROM
High voltage generator
Reference current generator
Address
decoder
Address and data
register,
comparator
Program
control
Timing and encipher logic
Power on reset detector
VCC
Interface
GND
I/O
RST
CLK
ABSOLUTE MAXIMUM RATINGS
Characteristics
Symbol
Ratings
Unit
VCC
-0.3~6
V
VI
-0.3~6
V
Storage Temperature
Tstg
-40~125
°C
Power Dissipation
PD
70
mW
Power Supply Voltage
Input Voltage
DC ELECTRICAL CHARACTERISTICS (VCC=5V, Tamb =25°C)
Characteristics
Symbol
Condition
Min.
Typ.
Max.
Unit
Power Supply Voltage
VCC
2.4
--
5.5
V
Operating Current
ICC
--
3
10
mA
H Input Voltage(I/O, CLK, RST)
VIH
3.0
--
VCC
V
L Input Voltage(I/O, CLK, RST)
VI
0
--
1.2
V
H Input Current(I/O, CLK, RST)
IH
--
3
5
µA
L Output Current(VL=0.4V,Open-drain)
IOL
0.5
1.0
--
mA
IOH
--
--
1
µA
CI
--
--
10
pF
FOSC
7
20
50
kHz
H Leakage Current(VH=VCC, Opendrain)
Input Capacitance
Operating Frequency
HANGZHOU SILAN MICROELECTRONICS CO.,LTD
Http: www.silan.com.cn
REV:1.0
2006.07.21
Page 2 of 11
SC23M42
AC ELECTRICAL CHARACTERISTICS
(Unless otherwise specified, VCC=5.0V, Tamb=25°C, and testing frequency is 20 kHz)
Characteristics
Symbol
Condition
Min.
Typ.
Max.
Unit
Reset Time
tRE
9
--
--
µs
CLK (High Level)
tH
10
--
--
µs
CLK (Low Level)
tL
10
--
--
µs
Write Time
tW
5
--
--
ms
Erase Time
tE
5
--
--
ms
Set-up Time(D/CLK)
td1
4
--
--
µs
Set-up Time (CLK/RST)
td3
4
--
--
µs
Set-up Time (RST/CLK)
td4
4
--
--
µs
Hold Time (D/CLK)
td5
4
--
--
µs
Delay Time (CLK/D)
td2
6
--
--
µs
Rise Time (I/O, CLK, RST)
tR
--
--
1
µs
Fall Time (I/O, CLK, RST)
tF
--
--
1
µs
PIN CONFIGURATION
VCC 1
8 GND
RST 2
7 NC
CLK 3
6 I/O
NC 4
5 NC
(Contact of the card)
PIN DESCRIPTIONS
Pin No.
Symbol
I/O
Description
1
VCC
--
Power supply voltage is 5V
2
RST
I
Reset signal
3
CLK
I
Clock signal
4
NC
--
No connect
5
GND
--
Ground
6
NC
--
No connect
7
I/O
I/O
8
NC
--
Data bus(open-drain output)
No connect
HANGZHOU SILAN MICROELECTRONICS CO.,LTD
Http: www.silan.com.cn
REV:1.0
2006.07.21
Page 3 of 11
SC23M42
FUNCTION DESCRIPTIONS
SC23M42 provides 256×8 bits EEPROM memory units and 32×1 protect units, and there is writing-protect for
the former 32-bit bytes. Except PSC (Programmable Security Code) memory unit, all units are readable. The unit
can be erased and written before the write-protect is active, or else the unit is only readable after the write-protect.
The bit with write-protection can be programmed only once, and cannot be erased. The chip has one 3-bit (bit0bit2)error register which provides 3 times continuous PSC authentication at most, after 3 times the chip cannot be
erased and written.
Transmission Protocols
Transmit the data by serial two buses between IFD and IC memory cards.
The transmission protocols can be defined as four operation mathods
-Reset and reset acknowledge
-Command
-Output the data
-Process
1. Reset and reset acknowledge
The chips enter the power on reset state when it is power on, and this state will be ended by the reset signal.
The reset signal begins when RST changed from“0”to “1”and end when CLK changed from “0”to“1”. The reset
signal can stop any active instruction. Read operation must be carried out first after power on reset, then the
other operations.
The reset acknowledge complies to ISO7816-3 synchronous propagation. The address counter is set to “0”
automatically and will send the first data to the I/O port. As the clock signal, the address data can be read serially.
And the content of the former 4 EEPROM address units can be read after the continuous 32 clock pulses, and
then the 33rd clock pulse will set I/O to H state. The details refer to the figure 1.
Figure 1 Reset and reset acknowledge
Reset acknowledge
Byte 1
Byte2
Byte3
Byte4
(Hex)
DO7… DO0
DO15… DO8
DO23… DO16
DO31… DO24
HANGZHOU SILAN MICROELECTRONICS CO.,LTD
Http: www.silan.com.cn
REV:1.0
2006.07.21
Page 4 of 11
SC23M42
2. Instruction format
Instruction table
Byte1control
Byte2 Address
Byte3 Data
A7-A0
D7-D0
Operation
Method
B7B6B5B4
B3B2B1B0
0011
0000
Address bit
invalid
Read the main memory
Output data
0011
1000
Address bit
Input data
Write the main memory
Process
0011
0100
invalid
invalid
Read protect memory
Output data
0011
1100
Address bit
Input data
Write protect memory
Process
0011
0001
invalid
invalid
Read password memory
Output data
0011
1001
Address bit
Input data
Amend password memory
Process
0011
0011
Address bit
Input data
Compare
Process
authentication
data
Figure 2 Command input time sequence
IFD Sets I/O to level L
Command
CLK
0
I/O
1
2
7
8
9
B0
B1
B6
B7
A0
10
15
A1
A6
16
A7
17
D0
18
D1
23
24
D6
D7
Start
from IFD
Stop
from IFD
3. Instruction description
1) Read main memory
Control
Binary
B7
B6
B5
B4
B3
B2
B1
B0
0
0
1
1
0
0
0
0
Hex
30H
Address
Data
A7… A0
D7… D0
Address
No effect
00H… FFH
No effect
This command will read the data from current byte address N to the last address and the needed pulse number
m=(256-N) ×8+1
HANGZHOU SILAN MICROELECTRONICS CO.,LTD
Http: www.silan.com.cn
REV:1.0
2006.07.21
Page 5 of 11
SC23M42
2) Write main memory
Control
Binary
B7
B6
B5
B4
B3
B2
B1
B0
0
0
1
1
1
0
0
0
Hex
38H
Address
Data
A7… A0
D7… D0
Address
Input data
00H… FFH
Input data
This command writes the main memory in bytes. According to the new and old data, carry out one of the
operations below in process mode:
Erase and write
(5ms) Corresponding pulse number m=245
Only erase
(2.5ms) Corresponding pulse number m=124
Only write
(2.5ms) Corresponding pulse number m=124
(All the time value is calculated according to the 50 kHz clock frequency.)
3) Read protect memory
Control
Binary
B7
B6
B5
B4
B3
B2
B1
B0
0
0
1
1
0
1
0
0
Hex
34H
Address
Data
A7… A0
D7… D0
No effect
No effect
No effect
No effect
This command will read the content of all the protect memory (32bit), and display that whether the data of
corresponding address unit can be changed.
HANGZHOU SILAN MICROELECTRONICS CO.,LTD
Http: www.silan.com.cn
REV:1.0
2006.07.21
Page 6 of 11
SC23M42
4) Write protect memory
Control
Binary
B7
B6
B5
B4
B3
B2
B1
B0
0
0
1
1
1
1
0
0
Hex
3CH
Address
Data
A7… A0
D7… D0
Address
Input data
00H… 1FH
Input data
Compare the command input data and the original data of this unit, if they are the same, then corresponding
write-protect bit is active, and the unit is only readable.
5) Read password memory
Control
Binary
B7
B6
B5
B4
B3
B2
B1
B0
0
0
1
1
0
0
0
1
Hex
31H
Address
Data
A7… A0
D7… D0
No effect
No effect
No effect
No effect
Read the 4 bytes content of password memory.
6) Change password memory
Control
Binary
B7
B6
B5
B4
B3
B2
B1
B0
0
0
1
1
1
0
0
1
Hex
39H
Address
Data
A7… A0
D7… D0
Address
Input data
00H… 03H
Input data
The password memory can be changed after PSC authentication, or else some bit of error counter will change
from “1”to “0”.
HANGZHOU SILAN MICROELECTRONICS CO.,LTD
Http: www.silan.com.cn
REV:1.0
2006.07.21
Page 7 of 11
SC23M42
7) Compare authentication data
Control
Binary
B7
B6
B5
B4
B3
B2
B1
B0
0
0
1
1
0
0
1
1
Hex
33H
Address
Data
A7… A0
D7… D0
Address
Input data
00H… 03H
Input data
Validate the appointed byte of PSC each time.
4. Password authentication
The SC23M42 is only readable without PSC authentication. The content of PSC cannot be read, if you try to
read PSC, you will get “00”.
The authentication steps are as follows:
--Write to one bit of the error counter (EC) which has not been written, and the EC address is“00”;
--Input the first byte data of PSC code, and the address is“01”
--Input the second byte data of PSC code, and the address is “02”
-- Input the third byte data of PSC code, and the address is “03”
--If pass the authentication, EC can be erased.
If the initial value of the error counter is “00”, the error counter cannot be written, and also cannot go through
the password authentication. After the PSC authentication, I/O port will change from “1”to “0”at the raising edge
of the second clock no matter pass the authentication or not. When RST changes from “0”to“1” I/O port returns
to “1”. The flow chart is as follows:
HANGZHOU SILAN MICROELECTRONICS CO.,LTD
Http: www.silan.com.cn
REV:1.0
2006.07.21
Page 8 of 11
SC23M42
Figure8 PSC authentication flow chart
HANGZHOU SILAN MICROELECTRONICS CO.,LTD
Http: www.silan.com.cn
REV:1.0
2006.07.21
Page 9 of 11
SC23M42
PACKAGE OUTLINE
P6-05
UNIT: mm
MCTS012402
UNIT: mm
HANGZHOU SILAN MICROELECTRONICS CO.,LTD
Http: www.silan.com.cn
REV:1.0
2006.07.21
Page 10 of 11
SC23M42
HANDLING MOS DEVICES:
Electrostatic charges can exist in many things. All of our MOS devices are internally protected against
electrostatic discharge but they can be damaged if the following precautions are not taken:
• Persons at a work bench should be earthed via a wrist strap.
• Equipment cases should be earthed.
• All tools used during assembly, including soldering tools and solder baths, must be earthed.
• MOS devices should be packed for dispatch in antistatic/conductive containers.
HANGZHOU SILAN MICROELECTRONICS CO.,LTD
Http: www.silan.com.cn
REV:1.0
2006.07.21
Page 11 of 11