SyncMOS Technologies Inc.
August 2000
SM2958
8 - Bit Micro-controller
with 32KB flash embedded
Product List
SM2958C16, 16 MHz 8KB internal memory MCU
SM2958C25, 25 MHz 8KB internal memory MCU
SM2958C40, 40 MHz 8KB internal memory MCU
Features
Working voltage:4.5V through 5.5V
General 8052 family compatible
12 clocks per machine cycle
32 KB internal flash memory
256 bytes data RAM
Three16 bit timers/counters
Four 8-bit I/O ports
Full duplex serial channel
Bit operation instruction
Page free jumps
8-bit unsigned division
8-bit unsigned multiply
BCD arithmetic
Direct addressing
Indirect addressing
Nested interrupt
Two priority level interrupt
A serial I/O port
Power save modes:
Idle mode and power down mode
Code protection function
Description
The SM2958 product is an 8 - bit single chip micro control-
ler with 32 KB flash embedded. It provides hardware
features and a powerful instruction set, necessary to make
it a versatile and cost effective controller for those
applications demand up to 32 I/O pins or need up to 32 KB
flash memory either for program or for data or mixed.
To program the flash block, a commercial programmer
is capable to do it.
Ordering Information
yyww
SM2958ihhk
yy: year, ww:week
v: version identifier { , A, B, ...}
i: process identifier {C}
hh: working clock in MHz {16, 25, 40}
k: package type postfix {as below table}
Postfix
P
J
Q
Package
40L PDIP
44L PLCC
44L QFP
Pin/Pad
Configuration
page 2
page 2
page 2
Dimension
page 11
page 12
page 13
Taiwan
4F, No. 1 Creation Road 1,
Science-based Industrial Park,
Hsinchu, Taiwan 30077
TEL: 886-3-579-2926
886-3-579-2988
FAX: 886-3-579-2960
886-3-578-0493
Specifications subject to change without notice,contact your sales representatives for the most recent information.
1/16
Ver 1.0
PID 2958 08/00
SyncMOS Technologies Inc.
August 2000
SM2958
Pin Configurations
T2EX/P1.1
T2/P1.0
NC
VDD
P0.0/AD0
P0.1/AD1
T2EX/P1.1
T2/P1.0
P0.0/AD0
P0.1/AD1
P0.2/AD2
P0.3/AD3
P1.4
P1.3
P1.2
6
5
4
3
2
1 44 43 42 41 40
P1.5
P1.6
P1.7
RES
RXD/P3.0
NC
TXD/P3.1
#INT0/P3.2
#INT1/P3.3
T0/P3.4
T1/P3.5
7
8
9
10
11
12
13
39
38
37
36
35
34
33
32
31
30
29
P0.4/AD4
P0.5/AD5
P0.6/AD6
P0.7/AD7
#EA/VPP
NC
ALE
#PSEN
P2.7/A15
P2.6/A14
P2.5/A13
P1.5
P1.6
P1.5
RES
RXD/P3.0
NC
TXD/P3.1
#INT0/P3.2
#INT1/P3.3
T0/P3.4
T1/P3.5
1
2
3
4
5
6
7
8
9
10
11
44 43 42 41 40 39 38 37 36 35 34
33
32
31
30
29
28
27
26
25
24
23
12 13 14 15 16 17 18 19 20 21 22
P0.2/AD2
P0.3/AD3
P1.4
P1.3
P1.2
NC
VDD
P0.4/AD4
P0.5/AD5
P0.6/AD6
P0.7/AD7
#EA/VPP
NC
ALE
#PSEN
P2.7/A15
P2.6/A14
P2.5/A13
SM2958 ihhJ
44L PLCC
(Top View)
SM2958 ihhQ
44L QFP
(Top View)
14
15
16
17
18 19 20 21 22 23 24 25 26 27 28
#WR/P3.6
#RD/P3.7
XTAL2
XTAL1
VSS
P2.2/A10
P2.3/A11
P2.4/A12
P2.0/A8
P2.1/A9
NC
#WR/P3.6
#RD/P3.7
XTAL2
XTAL1
VSS
P2.3/A11
T2/P1.0
T2EX/P1.1
P1.2
P1.3
P1.4
P1.5
P1.6
P1.7
RES
RXD/P3.0
TXD/P3.1
#INT/P3.2
#INT1/P3.3
T0/P3.4
T1/P3.5
#WR/P3.6
#RD/P3.7
XTAL2
XTAL1
VSS
1
2
3
4
5
6
7
8
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
VDD
P0.0/AD0
P0.1/AD1
P0.2/AD2
P0.3/AD3
P0.4/AD4
P0.5/AD5
P0.6/AD6
P0.7/AD7
#EA/VPP
ALE
#PSEN
P2.7/A15
P2.6/A14
P2.5/A13
P2.4/A12
P2.3/A11
P2.2/A10
P2.1/A9
P2.0/A8
9
10
11
12
13
14
15
16
17
18
19
20
Specifications subject to change without notice,contact your sales representatives for the most recent information.
2/16
Ver 1.0
P2.2/A10
P2.4/A12
NC
P2.0/A8
P2.1/A9
SM2958 ihhP
40L PDIP
(Top View)
PID 2958 08/00
SyncMOS Technologies Inc.
August 2000
Block Diagram
Stack
Pointer
Decoder &
Register
256
bytes RAM
SM2958
Timer 2
Timer 1
Timer 0
Buffer
RES
Reset
Circuit
to pertinent blocks
Acc
to whole chip
Buffer2
Buffer1
DPTR
Vdd
Vss
Power
Circuit
PC
Incrementer
Interrupt
Circuit
to pertinent blocks
ALU
Program
Counter
XTAL2
XTAL1
#EA
ALE
#PSEN
Timing
Generator
to whole system
PSW
Register
Instruction
Register
32K
bytes
Port 0
Latch
Port 1
Latch
Port 2
Latch
Port 3
Latch
Flash
Memory
Port 0
Driver & Mux
8
Port 2
Port 3
Driver & Mux Driver & Mux Driver & Mux
8
8
8
Port 1
Specifications subject to change without notice,contact your sales representatives for the most recent information.
3/16
Ver 1.0
PID 2958 08/00
SyncMOS Technologies Inc.
August 2000
Pin Descriptions
40L
PDIP
Pin#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
44L 44L
QFP PLCC
Symbol
Pin# Pin#
40
2
T2/P1.0
41
3
T2EX/P1.1
42
4
P1.2
43
5
P1.3
44
6
P1.4
1
7
P1.5
2
8
P1.6
3
9
P1.7
4
10 RES
5
11
RXD/P3.0
7
13 TXD/P3.1
8
14 #INT0/P3.2
9
15 #INT1/P3.3
10
16 T0/P3.4
11
17 T1/P3.5
12
18 #WR/P3.6
13
19 #RD/P3.7
14
20 XTAL2
15
21 XTAL1
16
22 VSS
18
24 P2.0/A8
19
25 P2.1/A9
20
26 P2.2/A10
21
27 P2.3/A11
22
28 P2.4/A12
23
29 P2.5/A13
24
30 P2.6/A14
25
31 P2.7/A15
26
32 #PSEN
27
33 ALE
29
35 #EA/VPP
30
36 P0.7/AD7
31
37 P0.6/AD6
32
38 P0.5/AD5
33
39 P0.4/AD4
34
40 P0.3/AD3
35
41 P0.2/AD2
36
42 P0.1/AD1
37
43 P0.0/AD0
38
44 VDD
I/O
Active
i/o
i/o
i/o
i/o
i/o
i/o
i/o
i/o
i
i/o
i/o
i/o
i/o
i/o
i/o
i/o
i/o
o
i
i/o
i/o
i/o
i/o
i/o
i/o
i/o
i/o
o
o
i
i/o
i/o
i/o
i/o
i/o
i/o
i/o
i/o
bit 0 of port 1 & timer 2
bit 1 of port 1 & timer control
bit 2 of port 1
bit 3 of port 1
bit 4 of port 1
bit 5 of port 1
bit 6 of port 1
bit 7 of port 1
Reset
bit 0 of port 3 & Receive data
bit 1 of port 3 & Transmit data
bit 2 of port 3 & low true interrupt 0
bit 3 of port 3 & low true interrupt 1
bit 4 of port 3 & Timer 0
bit 5 of port 3 & Timer 1
bit 6 of port 3 & ext. memory write
bit 7 of port 3 & ext. memory read
Crystal out
Crystal in
Sink Voltage, Ground
bit 0 of port 2 & bit 8 of ext. memory address
bit 1 of port 2 & bit 9 of ext. memory address
bit 2 of port 2 & bit 10 of ext. memory address
bit 3 of port 2 & bit 11 of ext. memory address
bit 4 of port 2 & bit 12 of ext. memory address
bit 5 of port 2 & bit 13 of ext. memory address
bit 6 of port 2 & bit 14 of ext. memory address
bit 7 of port 2& bit 15 of ext. memory address
program storage enable
address latch enable
external access & VPP
bit 7 of port 0 & data/address bit 7 of ext. memory
bit 6 of port 0 & data/address bit 6 of ext. memory
bit 5 of port 0 & data/address bit 5 of ext. memory
bit 4 of port 0 & data/address bit 4 of ext. memory
bit 3 of port 0 & data/address bit 3 of ext. memory
bit 2 of port 0 & data/address bit 2 of ext. memory
bit 1 of port 0 & data/address bit 1 of ext. memory
bit 0 of port 0 & data/address bit 0 of ext. memory
Drive Voltage, +5 VCC
Names
SM2958
H
L/ -
L/ -
L/ -
L/ -
L
-
L
Specifications subject to change without notice,contact your sales representatives for the most recent information.
4/16
Ver 1.0
PID 2958 08/00
SyncMOS Technologies Inc.
August 2000
Operating Conditions
Symbol
TA
VCC5
Fosc 16
Fosc 25
Fosc 40
Description
Ambient temperature under bias
Supply voltage
Oscillator Frequency
Min.
0
4.5
3.0
3.0
3.0
Typ.
25
5.0
16
25
40
Max.
70
5.5
16
25
40
Unit.
C
V
MHz
MHz
MHz
SM2958C
SM2958C16
SM2958C25
SM2958C40
Remarks
SM2958
DC Characteristics
(12MHz, typical operating conditions, valid for SM2958 series)
Symbol
VIL1
VIL2
VIH1
VIH2
VOL1
VOL2
VOH1
VOH2
IIL
ITL
ILI
R RES
C IO
I CC
Parameter
Input Low Voltage
Input Low Voltage
Input High Voltage
Input High Voltage
Output Low Voltage
Output Low Voltage
Output High Voltage
Output High Voltage
Logical 0 Input Current
Logical Transition Current
Input Leakage Current
Reset Pulldown Resistance
Pin Capacitance
Power Supply Current
Valid
port 0,1,2,3,4,#EA
RES, XTAL1
port 0,1,2,3,4,#EA
RES, XTAL1
port 0, ALE, #PSEN
port 1,2,3,4
port 0
port 1,2,3,4,ALE,#PSEN
port 1,2,3,4
port 1,2,3,4
port 0, #EA
RES
Vdd
Min.
-0.5
0
2.0
70%Vcc
Max.
0.8
0.8
Vcc+0.5
Vcc+0.5
0.45
0.45
Unit
V
V
V
V
V
V
V
V
V
V
uA
uA
uA
Kohm
pF
mA
mA
uA
Test Conditions
Vcc=5V
“
“
“
IOL=3.2mA
IOL=1.6mA
IOH=-800uA
IOH=-80uA
IOH=-60uA
IOH=-10uA
Vin=0.45V
Vin=2.0V
0.45V<Vin<Vcc
Freq=1MHz, Ta=25 C
Active mode, 12MHz
Idle mode, 12MHz
Power down mode
2.4
90%Vcc
2.4
90%Vcc
-75
-650
+ 10
300
10
20
6.5
150
50
ICC Active mode test circuit
Vcc
VCC
RST
SM2958
(NC)
Clock Signal
XTAL2
XTAL1
VSS
PO
EA
8
ICC
Vcc
ICC Idle mode test circuit
ICC
RST
SM2958
(NC)
Clock Signal
XTAL2
XTAL1
VSS
VCC
PO
EA
8
Vcc
Specifications subject to change without notice,contact your sales representatives for the most recent information.
5/16
Ver 1.0
PID 2958 08/00