SyncMOS Technologies Inc.
SM89T16R1
8-Bits Micro-controller
With 64KB Flash ROM & IKB RAM & Two UART & RTC & ADC & PWM embedded
Product List
SM89T16R1L16, 16MHz 64KB internal flash MCU
SM89T16R1C25, 25MHz 64KB internal flash MCU
Feature
Working Voltage: 3.3V or 5.0V.
80C51 Central Processor Unit (CPU),
High-Speed Architecture (4 clocks / machine
cycle), the maximum clock rate is 25 MHz.
64K x 8 on chip flash memory can be
programmed at V
PP =
12V
1280 x 8 RAM (On-Chip 256 bytes and
Expand 1024 bytes), 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 channels 6 bits Analog to Digital
Converter (ADC).
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 PQFP package)
Two Full-duplex Enhance UART
Two DPTR (either data pointer can be
incremented and decrement).
13 interrupt sources (default 6 + int2, int3, int4,
int5, UART1, ADC, RTC) with 2 priority
levels.
RTC (Real Time Clock) function.
Extended temperature range (-40℃ to +85℃)
Software enable/disable ALE output pulse
Wake-up from POWER-DOWN mode by
external interrupt, RTCI or H/W Reset.
General Description
The SM89T16R1 is a high speed (4 clocks /
machine cycle) single-chip 8-bits microcontroller
manufactured in an advanced CMOS process with
on chip flash memory. It supports a derivative of
the 80C51 microcontroller family. The
SM89T16R1 has the same instructions set as the
80C51.
The SM89T16R1 contains a 64KB on chip program
flash, a volatile 1280 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
pulse-width- modulation outputs, two UART and
two DPTR, an on-chip oscillator and timing circuit.
For system that requires extra capability the
SM89T16R1 can be expanded using standard TTL
compatible memory and logic.
In addition, The SM89T16R1 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.
The Power Management Mode (PMM) is useful for
portable or battery-powered applications. This
feature allows software to select a lower speed
clock as the main time base.
Ordering Information
SM89T16R1ihhk
yymmv
i: process identifier {L=3.0V~3.6V,C=4.5V~ 5.5V}
hh: working clock in MHz {16,25}
k: package type postfix {as below table}
yy: year mm: month
v: version identifier { , A, B, ...}
Taiwan
4F, No. 1 Creation Road 1,
Science-based Industrial Park,
Hsinchu, Taiwan 30077
TEL: 886-3-578-3344 #2667
886-3-579-2987
FAX: 886-3-5792960
886-3-5780493
Specifications subject to change without notice contact your sales representatives for the most recent information.
SM89T16R1 V1.0 JANUARY 2005
1
SyncMOS Technologies Inc.
Package Spec.
Package
44L PQFP
44L PLCC
SM89T16R1
8-Bits Micro-controller
With 64KB Flash ROM & IKB RAM & Two UART & RTC & ADC & PWM embedded
Pin / PAD
Figure 1
Figure 2
Figure 3
Frequency
16 MHz at 3.3V and 25MHz at 5V
16 MHz at 3.3V and 25MHz at 5V
16 MHz at 3.3V and 25MHz at 5V
40L PDIP
Pin Configuration
Figure 1 44L PQFP Package
Figure 2 44L PLCC Package
P1.4/INT2/PWM0
P1.2/RXD1
P1.3/TXD1
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
#PSEN/X32IN
ALE/X32OUT
P0.6/AD6
P0.4/AD4
P0.5/AD5
P0.7/AD7
#EA
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
RXD1/P1.2 42
TXD1/P1.3 43
PWM0/INT2/P1.4 44
1
PWM1/#INT3/P1.5
32
31
30
29
P4.1
6
PWM1/#INT3/P1.5
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
5
4
3
2
1
44
43
42
28
27
26
25
24
23
7
8
9
10
11
12
13
14
15
16
17
18
#WE/P3.6
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
28
ADC0/A12/P2.4
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
P1.0/T2
INT4/P1.6
#INT5/P1.7
RES
RXD/P3.0
P4.3
TXD/P3.1
#INT0/P3.2
#INT1/P3.3
T0/P3.4
T1/P3.5
2
INT4/P1.6
3
#INT5/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
Figure 3 40L PDIP Package
P2.7/A15/ADC3
P2.6/A14/ADC2
P2.5/A13/ADC1
P2.4/A12/ADC0
P0.1/AD1
P0.2/AD2
P0.3/AD3
#PSEN/X32IN
ALE/X32OUT
P0.4/AD4
P0.5/AD5
P0.6/AD6
P0.7/AD7
P0.0/AD0
P2.3/A11
P2.2/A10
P2.1/A9
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#RD/P3.7
XTAL2
T0/P3.4
T2/P1.0
T2EX/P1.1
T1/P3.5
TXD1/P1.3
INT4/P1.6
#INT0/P3.2
PWM0/INT2/P1.4
#INT5/P1.7
#INT1/P3.3
RXD1/P1.2
#WE/P3.6
XTAL1
RES
Specifications subject to change without notice contact your sales representatives for the most recent information.
PWM1/#INT3/P1.5
RXD/P3.0
TXD/P3.1
VSS
20
21
P2.0/A8
VDD
#EA
SM89T16R1 V1.0 JANUARY 2005
2
VDD
P4.2
SyncMOS Technologies Inc.
SM89T16R1
8-Bits Micro-controller
With 64KB Flash ROM & IKB RAM & Two UART & RTC & ADC & PWM embedded
Block Diagram
RxD
(3)
T2EX
INT5
INT4
INT3
INT2
TxD
(3)
T2
PWM0
PWM1
TxD1
RxD1
(1) (1)
(1) (1)
(1)
(1)
(1) (1) (1) (1)
Xtal1
Xtal2
EA
CPU
ALE
PSEN
RD
(3)
WR
(3)
UART
Int-RAM
256x8
UART1
FLASH
64Kx8
Ext-RAM
1024x8
PWM
Timer2
Expand
Interrupt/
Wake Up
C51
CORE
iBUS
Timer0
Timer1
INT /
PDWU
RTC
Parallel I/O ports & Ext. Bus
Port0
Port1
Port2
Port3
Port4
ADC
(3)
(3)
(3)
(3)
(4) (4)
(2) (2) (2) (2)
X32OUT
X32IN
T0
T1
INT0
ADC3
ADC2
ADC1
ADC0
INT1
P0
P4
P1
P2
P3
Notes:
Specifications subject to change without notice contact your sales representatives for the most recent information.
RES
(1): Alternate function of P1
(2): Alternate function of P2
(3): Alternate function of P3
(4): Alternate function of ALE, PSEN
3
SM89T16R1 V1.0 JANUARY 2005
SyncMOS Technologies Inc.
SM89T16R1
8-Bits Micro-controller
With 64KB Flash ROM & IKB RAM & Two UART & RTC & ADC & PWM embedded
Pin Description
MNEMONIC
VDD
P0.0 – P0.7
DIP 40 pin
40
39,38,37,36
35,34,33,32
PQFP 44 Pin
38
37,36,35,34
33,32,31,30
PLCC 44 pin
44
43,42,41,40
39,38,37,36
Names and Functions
Power supply:
+3.3V and +5V 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).
Alternate function of SM89T16R1 include:
Port Pin
Alternative function
P1.0
T2: TIMER2 clock output
P1.1
T2EX: TIMER2 reload/capture DIR.
P1.2
RxD1: UART1 input
P1.3
TxD1: UART1 output
P1.4
PWM0: PWM channel 0 output
INT2: rising edge trigger
P1.5
PWM1: PWM channel 1 output
#INT3: falling edge trigger
P1.6
INT4: rising edge trigger
P1.7
#INT5: falling edge trigger
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
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
Specifications subject to change without notice contact your sales representatives for the most recent information.
4
SM89T16R1 V1.0 JANUARY 2005
SyncMOS Technologies Inc.
MNEMONIC
P3.0 – P3.7
SM89T16R1
DIP 40 pin
10,11,12,13
14,15,16,17
8-Bits Micro-controller
With 64KB Flash ROM & IKB RAM & Two UART & RTC & ADC & PWM embedded
PQFP 44 Pin PLCC 44 pin
Names and Functions
5,7,8,9,
10,11,12,13
11, 13,14,15,
16,17,18,19
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 bit 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.
ALE/X32OUT
30
27
33
#PSEN/X32IN
29
26
32
#EA
31
29
35
XTAL1
XTAL2
19
18
15
14
21
20
SFR Mapping
The special function register of SM89T16R1 fall into the following categories
C51 CORE register: ACC, B, DPL, DPH, PSW, SP
I/O ports: P0,P1, P2, P3, P4
Timer/Counter register: T2CON, T2MOD, TCON, TMOD, TH0, TH1, TH2, TL0, TL1, TL2, RCA2PL,
RCAP2H
The Second DPTR register: DPS, DPH1, DPL1
UART I/O register: SBUF, SCON
UART1 I/O register: SBUF1, SCON1
ADC register: ADCSC, ADCD, P2CON
Power and system control register: PCON, SCONF
Interrupt system register: IP, IE, IP1, IE1, IFR
Expand External Interrupt register: EIE, EIP, EXIF
RTC register: RTCC, RTCS
PWM output register: PWMC0, PWMC1, PWMD0, PWMD1, P1CON
PMM (Power Management) register: PMR
Specifications subject to change without notice contact your sales representatives for the most recent information.
5
SM89T16R1 V1.0 JANUARY 2005