
SyncMOS Technologies Inc. SM89S16R1
8-Bits Micro-controller
With 64KB Flash ROM & IKB RAM & RTC & ADC & PWM & PDWU embedded
Pin Description
MNEMONIC
PDIP 40 pin
PQFP 44 Pin
PLCC 44 pin
VDD
40
38
44
Specifications subject to change without notice contact your sales representatives for the most recent information.
SM89S16R1 V1.0 JANUARY 2005
4
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