SyncMOS Technologies International, Inc.
SM89S16R1
8-Bits Micro-controller
With 64KB Flash ROM & 1KB RAM & RTC & ADC & PWM & PDWU embedded
Product List
SM89S16R1L25, 25MHz 64KB internal flash MCU
SM89S16R1C25, 25MHz 64KB internal flash MCU
SM89S16R1C40, 40MHz 64KB internal flash MCU
Feature
Working Voltage: 3.3V or 5.0V.
80C51 Central Processor Unit (CPU).
64K x 8 bits on chip flash memory.
1024 x 8 bits RAM, expandable externally to
64KB.
Two standard 16-bits timers/counters
An additional 16-bits timer/counter coupled to
a capture and compare register.
Two 8-bits / 5-bits resolution
Pulse-Width-Modulation (PWM) outputs
Four 8-bits I/O ports.(For PDIP package)
Four 8-bits I/O ports plus one 4-bits I/O port.
(For PLCC or QFP package)
Full-duplex UART
8 interrupt sources with 2 priority levels
Extended temperature range (-40℃ to +85℃)
Software enable/disable ALE output pulse
Wake-up from POWER-DOWN mode by
INT0/INT1, RTCI or H/W RESET.
RTC (Real Time Clock) function.
Four channels 6-bits Analog to Digital
Converter (ADC).
General Description
The SM89S16R1 is a single-chip 8-bits micro-
controller manufactured in an advanced CMOS
process with on chip flash memory. It supports a
derivative of the 80C51 microcontroller family.
The SM89S16R1 has the same instructions set as
the 80C51.
The SM89S16R1 contains a 64K x 8 bits on chip
program flash, a volatile 1024 x 8 bits data RAM,
four 8-bits I/O ports, one 4-bits I/O port, two
16-bits timer/event counters, and an additional
16-bits timer coupled to capture and compare
latches, a two-priority-level, nested interrupt
structure, two PWM clock outputs, one serial
interfaces (UART bus). For system that requires
extra capability the SM89S16R1 can be expanded
using standard TTL and LVTTL compatible
memory and logic.
In addition, The SM89S16R1 has two software
selectable modes of power saving – IDLE mode
and POWER-DOWN mode. The IDLE mode
freezes the CPU while allowing the RAM, timer,
serial ports, and interrupt system to continue
functioning. The POWER-DOWN mode saves the
RAM contents but freezes the oscillator, causing all
other chip functions to be inoperative.
Ordering Information
SM89S16R1ihhkL
yymmv
i: process identifier {L=3.0V~3.6V,C=4.5V~ 5.5V}
hh: working clock in MHz {25, 40}
k: package type postfix {as below table}
yy: year mm: month
v: version identifier { , A, B, ...}
L:PB Free identifier
{No text is Non-PB Free,"P" is PB Free}
Taiwan
6F, No.10-2 Li- Hsin 1st Road ,
Science-based Industrial Park,
Hsinchu, Taiwan 30078
TEL: 886-3-567-1820
886-3-567-1880
FAX: 886-3-567-1891
886-3-567-1894
Specifications subject to change without notice contact your sales representatives for the most recent information.
Ver 2.1 SM89S16R1 08/2006
1
SyncMOS Technologies International, Inc.
Package Spec.
Package
44L PQFP
44L PLCC
40L PDIP
Pin / PAD
Figure 1
Figure 2
Figure 3
SM89S16R1
8-Bits Micro-controller
With 64KB Flash ROM & 1KB RAM & RTC & ADC & PWM & PDWU embedded
Frequency
25 MHz at 3.3V and 40MHz at 5V
25 MHz at 3.3V and 40MHz at 5V
25 MHz at 3.3V and 40MHz at 5V
Pin Configuration
Figure 1 44L PQFP Package
Figure 2 44L PLCC Package
P1.4/PWM0
P1.1/T2EX
P0.0/AD0
P0.1/AD1
P0.2/AD2
41
P2.7/A15/ADC3
P2.6/A14/ADC2
P2.5/A13/ADC1
P1.0/T2
ALE/X32OUT
#PSEN/X32IN
P1.3
P0.5/AD5
P0.6/AD6
P0.7/AD7
P0.4/AD4
#EA
P4.1
6
PWM1/P1.5
7
8
9
10
11
12
13
14
15
16
17
18
#WE/P3.6
5
P1.2
4
3
2
P4.2
1
VDD
44
43
42
P0.3/AD3
40
39 P0.4/AD4
38 P0.5/AD5
37 P0.6/AD6
36 P0.7/AD7
35 #EA
34 P4.1
33 ALE/X32OUT
32 #PSEN/X32IN
31 P2.7/A15/ADC3
30 P2.6/A14/ADC2
29 P2.5/A13/ADC1
28
ADC0/A12/P2.4
33
AD3/P0.3 34
AD2/P0.2 35
AD1/P0.1 36
AD0/P0.0 37
VDD 38
P4.2 39
T2/P1.0 40
T2EX/P1.1 41
P1.2 42
P1.3 43
PWM0/P1.4 44
1
PWM1/P1.5
32
31
30
29
28
27
26
25
24
23
22 P2.4/A12/ADC0
21 P2.3/A11
20 P2.2/A10
19 P2.1/A9
18 P2.0/A8
17 P4.0
16 VSS
15 XTAL1
14 XTAL2
13 P3.7/#RD
12 P3.6/#WE
P1.6
P1.7
RES
RXD/P3.0
P4.3
TXD/P3.1
#INT0/P3.2
#INT1/P3.3
T0/P3.4
T1/P3.5
19
#RD/P3.7
20
XTAL2
21
XTAL1
22
VSS
23
P4.0
24
A8/P2.0
25
A9/P2.1
26
A10/P2.2
27
A11/P2.3
2
P1.6
3
P1.7
4
RES
5
RXD/P3.0
6
P4.3
7
TXD/P3.1
8
#INT0/P3.2
9
#INT1/P3.3
10
T0/P3.4
11
T1/P3.5
P2.4/A12/ADC0
Figure 3 40L PDIP Package
P2.7/A15/ADC3
P2.6/A14/ADC2
P2.5/A13/ADC1
#PSEN/X32IN
ALE/X32OUT
P0.1/AD1
P0.2/AD2
P0.0/AD0
P0.3/AD3
P0.4/AD4
P0.5/AD5
P0.6/AD6
P0.7/AD7
P2.3/A11
P2.2/A10
P2.1/A9
22
XTAL1
19
#EA
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
8
9
10
23
11
12
13
14
15
16
17
P1.2
P1.3
P1.6
T2/P1.0
T2EX/P1.1
P1.7
T0/P3.4
T1/P3.5
PWM0/P1.4
PWM1/P1.5
TXD/P3.1
#INT0/P3.2
#INT1/P3.3
RXD/P3.0
XTAL2
RES
18
Specifications subject to change without notice contact your sales representatives for the most recent information.
#WE/P3.6
#RD/P3.7
VSS
20
1
2
3
4
5
6
7
21
P2.0/A8
VDD
Ver 2.1 SM89S16R1 08/2006
2
SyncMOS Technologies International, Inc.
SM89S16R1
8-Bits Micro-controller
With 64KB Flash ROM & 1KB RAM & RTC & ADC & PWM & PDWU embedded
Block Diagram
PWM0
PWM1
ADC0
ADC1
ADC2
ADC3
TxD
RxD
(3)
(3)
(1)
(1)
(2)
(2)(2)
(2)
Xtal1
Xtal2
EA
CPU
ALE
PSEN
RD
WR
(3)
(3)
UART
Int-RAM
256x8
FLASH
64Kx8
Ext-RAM
768x8
PWM
ADC
C51
CORE
iBUS
Timer0
Timer1
Timer2
INT
PDWU
Parallel I/O ports & Ext. Bus
Port0
Port1
Port2
Port3
Port4
RTC
(4)
(3) (3) (1) (1)
(3)
(3)
(3)
(3)
(4)
Notes: (1): Alternate function of P1
(2): Alternate function of P2
(3): Alternate function of P3
(4): Alternate function of ALE, PSEN
Specifications subject to change without notice contact your sales representatives for the most recent information.
RES
INT0
INT1
INT0
P0
INT1
P4
P1
X32OUT
X32IN
P2
P3
T2
T2EX
T1
T0
3
Ver 2.1 SM89S16R1 08/2006
SyncMOS Technologies International, Inc.
SM89S16R1
8-Bits Micro-controller
With 64KB Flash ROM & 1KB RAM & RTC & ADC & PWM & PDWU embedded
Pin Description
MNEMONIC
VDD
PDIP 40 pin
40
PQFP 44 Pin
38
PLCC 44 pin
44
Names and Functions
Power supply:
+5V or +3.3V power supply pin during normal operations
and power saving modes.
Port 0:
Port 0 is an open-drain, bidirectional I/O port. Port 0 pins
that have 1s written to them become floating and can be
used as high- impedance inputs. Port 0 is also the
multiplexed low-order address and data bus during accesses
to external program and data memory. In this application, it
uses strong internal pull-ups when emitting 1s.
Port Pin
Alternative function
P0.0
AD0
P0.1
AD1
P0.2
AD2
P0.3
AD3
P0.4
AD4
P0.5
AD5
P0.6
AD6
P0.7
AD7
Port 1:
An 8-bits bidirectional I/O port with internal pull-ups on all
pins. Port 1 pins that have 1s written to them are pulled high
by the internal pull-ups and can be used as inputs. As inputs,
port 1 pins that are externally pulled low will source current
because of the internal pull-ups. (See DC Electrical
Characteristics: IIL).
Port Pin
Alternative function
P1.0
T2: TIMER2 clock output
P1.1
T2EX: TIMER2 reload/capture DIR.
P1.4
PWM0: PWM channel 0 output
P1.5
PWM1: PWM channel 1 output
Reset:
A high on this pin for two machine cycles while the
oscillator is running, resets the device. An internal resistor to
VSS permits a power-on reset using only an external
capacitor to VCC.
Port 2:
Port 2 is an 8-bits bidirectional I/O port with internal
pull-ups. Port 2 pins that have 1s written to them are pulled
high by the internal pull-ups and can be used as inputs. As
inputs, port 2 pins that are externally being pulled low will
source current because of the internal pull-ups. (See DC
Electrical Characteristics: IIL). Port 2 emits the high-order
address byte during fetches from external program memory
and during accesses to external data memory that uses
16-bits addresses (MOVX @DPTR). In this application, it
uses strong internal pull-ups when emitting 1s. During
accesses to external data memory that uses 8-bits addresses
(MOV @Ri), port 2 emits the contents of the P2 special
function register.
Port Pin
Alternative function
P2.0
A8
P2.1
A9
P2.2
A10
P2.3
A11
P2.4
A12/ADC0
P2.5
A13/ADC1
P2.6
A14/ADC2
P2.7
A15/ADC3
P0.0 – P0.7
39,38,37,36
35,34,33,32
37,36,35,34
33,32,31,30
43,42,41,40
39,38,37,36
P1.0 – P1.7
1,2,3,4,
5,6,7,8
40,41,42,43,
44,1,2,3
2,3,4,5,
6,7,8,9
RST
9
4
10
P2.0 – P2.7
21,22,23,24,
25,26,27,28
18,19,20,21
22,23,24,25
24,25,26,27,
28,29,30,31
MNEMONIC
PDIP 40 pin
PQFP 44 Pin
PLCC 44 pin
4
Names and Functions
Ver 2.1 SM89S16R1 08/2006
Specifications subject to change without notice contact your sales representatives for the most recent information.
SyncMOS Technologies International, Inc.
P3.0 – P3.7
10,11,12,13
14,15,16,17
5,7,8,9,
10,11,12,13
11, 13,14,15,
16,17,18,19
SM89S16R1
Port 3:
Port 3 is an 8-bits bidirectional I/O port with internal
pull-ups. Port 3 pins that have 1s written to them are pulled
high by the internal pull-ups and can be used as inputs. As
inputs, port 3 pins that are externally being pulled low will
source current because of the pull-ups. (See DC Electrical
Characteristics: IIL). Port 3 also serves the special features.
Port Pin
Alternative function
P3.0
RxD UART input
P3.1
TxD UART output
P3.2
#EX0 external interrupt 0
P3.3
#EX1 external interrupt 1
P3.4
T0: Timer 0 external input
P3.5
T1: Timer 1 external input
P3.6
#WR External data memory write strobe
P3.7
#RD External data memory read strobe
Address Latch Enable:
Output pulse for latching the low byte of the address during
an access to external memory. In normal operation, ALE is
emitted twice every machine cycle, and can be used for
external timing or clocking. Note that one ALE pulse is
skipped during each access to external data memory. Setting
SFR SCONF.0 can disable ALE. With this bits set, ALE will
be active only during a MOVX instruction.
X32OUT: The 32.768KHz crystal output for RTC function.
Program Store Enable:
The read strobe to external program memory. When
executing code from the external program memory, #PSEN
is activated twice each machine cycle, except that two
#PSEN activations are skipped during each access to
external data memory. #PSEN is not activated during
fetches from internal program memory.
X32IN: The 32.768KHz crystal input for RTC
function.
External Access Enable:
#EA must be externally held low to enable the device to
fetch code from external program memory locations. If #EA
is held high, the device executes from internal program
memory.
Crystal 1:
Input to the inverting oscillator amplifier and input to the
internal clock generator circuits.
Crystal 2:
Output from the inverting oscillator amplifier.
8-Bits Micro-controller
With 64KB Flash ROM & 1KB RAM & RTC & ADC & PWM & PDWU embedded
ALE/X32OUT
30
27
33
#PSEN/X32IN
29
26
32
#EA
31
29
35
X1
19
15
21
X2
18
14
20
Specifications subject to change without notice contact your sales representatives for the most recent information.
5
Ver 2.1 SM89S16R1 08/2006