SyncMOS Technologies International, Inc.
SM89516
8-Bits Micro-controller With 64KB flash & 1KB RAM embedded
Product List
SM89516L25, 25MHz 64KB internal flash MCU SM89516C25, 25MHz 64KB internal flash MCU
Features
Working Voltage: 3.0V ~ 3.6V For L Version. 4.5V ~ 5.5V For C Version. General 8052 family compatible 12 clocks per machine cycle 64K byte on chip program flash 1024 bytes data RAM Three 16 bit Timers/Counters Four 8-bit I/O ports for PDIP package Four 8-bit I/O ports + one 4-bit I/O ports for PLCC or QFP package Full duplex serial channel Bit operation instruction Page free jumps 8-bit Unsigned Division 8-bit Unsigned Multiply BCD arithmetic operation Direct Addressing Indirect Addressing Nested Interrupt Two priority level interrupts A serial I/O port Power save modes: Idle mode and Power down mode Code protection function One watch dog timer (WDT) Low EMI (inhibit ALE)
Description
The SM89516 series product is an 8-bit single chip micro controller with 64KB flash & 1KB RAM embedded. It is a derivative of the 8052 micro controller family. With its hardware features and powerful instruction set, it’s straight forward to make it a versatile and cost effective controller for those applications which demand up to 32 I/O pins for PDIP package or up to 36 I/O pins for PLCC/QFP package, or applications which need up to 64KB memory either for program or for data or mixed. To program the on-chip flash memory, a commercial writer is available to do it in parallel programming method.
Ordering Information
yymmv SM89516ihhkL yy: year, ww: month v: version identifier{ , A, B,…} i: process identifier {L=3.0V~3.6V,C=4.5V~ 5.5V} hh: working clock in MHz {25} k: package type postfix {as below table} L:PB Free identifier {No text is Non-PB Free,”P”is PB Free}
Postfix P J Q Package 40L PDIP 44L PLCC 44L QFP Pin / Pad Configuration Page 2 Page 2 Page 2 Dimension Page 16 Page 17 Page 18
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 SM89516 08/2006 1
SyncMOS Technologies International, Inc.
Pin Configuration
SM89516
8-Bits Micro-controller With 64KB flash & 1KB RAM embedded
Specifications subject to change without notice contact your sales representatives for the most recent information.
Ver 2.1 SM89516 08/2006 2
SyncMOS Technologies International, Inc.
SM89516
8-Bits Micro-controller With 64KB flash & 1KB RAM embedded
Block Diagram
Specifications subject to change without notice contact your sales representatives for the most recent information.
3
Ver 2.1 SM89516 08/2006
SyncMOS Technologies International, Inc.
SM89516
8-Bits Micro-controller With 64KB flash & 1KB RAM embedded
Pin Description
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 QFP Pin#
40 41 42 43 44 1 2 3 4 5 7 8 9 10 11 12 13 14 15 16 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 17 28 39 6
44L PLCC Pin#
2 3 4 5 6 7 8 9 10 11 13 14 15 16 17 18 19 20 21 22 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 23 34 1 12
Symbol
P1.0 P1.1 P1.2 P1.3 P1.4 P1.5 P1.6 P1.7 RES P3.0/RXD P3.1/TXD P3.2/#INT0 P3.3/#INT1 P3.4/T0 P3.5/T1 P3.6/#WR P3.7/#RD XTAL2 XTAL1 VSS P2.0/A8 P2.1/A9 P2.2/A10 P2.3/A11 P2.4/A12 P2.5/A13 P2.6/A14 P2.7/A15 #PSEN ALE #EA P0.7/AD7 P0.6/AD6 P0.5/AD5 P0.4/AD4 P0.3/AD3 P0.2/AD2 P0.1/AD1 P0.0/AD0 VDD P4.0 P4.1 P4.2 P4.3
Active
I/O
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 i/o i/o i/o i/o
Names
bit 0 of port 1 bit 1 of port 1 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 & Receiver 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 & external memory write bit 7 of port 3 & external 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 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 bit 0 of Port 4 bit 1 of Port 4 bit 2 of Port 4 bit 3 of port 4
H
L/L/-
L/L/-
L L
Specifications subject to change without notice contact your sales representatives for the most recent information.
4
Ver 2.1 SM89516 08/2006
SyncMOS Technologies International, Inc.
SM89516
8-Bits Micro-controller With 64KB flash & 1KB RAM embedded
Special Function Register (SFR)
The address $80 to $FF can be accessed by direct addressing mode only. Address $80 to $FF is SFR area. The following table lists the SFRs which are identical to general 8052, as well as SM89516A Extension SFRs.
Special Function Register (SFR) Memory Map
$F8 $F0 $E8 $E0 $D8 $D0 $C8 $C0 $B8 $B0 $A8 $A0 $98 $90 $88 $80 $FF $F7 $EF $E7 $DF $D7 $CF $C7 $BF $B7 $AF $A7 $9F $97 $8F $87
B ACC P4 PSW T2CON IP P3 IE P2 SCON P1 TCON P0
RCAP2L
RCAP2H
TL2
TH2 SCONF
SBUF TMOD SP TL0 DPL TL1 DPH TH0 TH1 RCON
WDTC PCON
Note: The text of SFRs with bold type characters are Extension Special Function Registers for SM89516
Extension Function Description
1. Memory Structure The SM89516 is the general 8052 hardware core to integrate the expanded 768B data RAM and 64KB flash program memory as a single chip micro controller. Its memory structure follows general 8052 structure. 1.1 Program Memory The SM89516 has 64K bytes on-chip flash memory which can be used as general program memory.
Specifications subject to change without notice contact your sales representatives for the most recent information.
5
Ver 2.1 SM89516 08/2006
SyncMOS Technologies International, Inc.
SM89516
8-Bits Micro-controller With 64KB flash & 1KB RAM embedded
1.2 Data Memory
The SM89516 has 1K bytes on-chip RAM, 256 bytes of it are the same as general 8052 internal memory structure while the expanded 768 bytes on-chip RAM can be accessed by external memory addressing method (by instruction MOVX).
Data Memory - Lower 128 byte
Data memory $00 to $FF is the same as 8052 The address $00 to $7F can be accessed by direct and indirect addressing modes. Address $00 to $1F is register area. Address $20 to $2F is memory bit area. Address $30 to $7F is for general memory area.
Data memory - Higher 128 byte
The address $80 to $FF can be accessed by indirect addressing mode only. Addressing $80 to $FF is data area.
Data Memory - Expanded 768 bytes
From external address $0000 to $02FF is the on-chip expanded RAM area, total 768 bytes. This area can be accessed by external direct addressing mode only (by instruction MOVX).
Specifications subject to change without notice contact your sales representatives for the most recent information.
Ver 2.1 SM89516 08/2006 6
SyncMOS Technologies International, Inc.
Internal RAM Control Register (RCON, $85)
bit-7 Unused Read / Write: Reset value: * Unused * Unused * Unused * Unused * Unused * RAMS1 R/W 0
SM89516
8-Bits Micro-controller With 64KB flash & 1KB RAM embedded
bit-0 RAMS0 R/W 0
SM89516A has 768 byte on-chip RAM which can be accessed by external memory addressing method only. (By instruction MOVX). The address space of instruction MOVX @Rn is determined by bit 1 and bit 0 (RAMS1, RAMS0) of RCON. The default setting of RAMS1, RAMS0 bits is 00 (page0). RAMS1 0 0 1 RAMS0 0 1 0 MOVX @Ri i=0,1 mapping to expended RAM address $0000 ~ $00FF $0100 ~ $01FF $0200 ~ $02FF
The port 0, port2, port3.6 and port3.7 can be used as general purpose I/O pin while port0 is open-drain structure.
System Control Register (SCONF, $BF)
bit-7 WDR Read / Write: Reset value: R/W 0 Unused * Unused * Unused * Unused * Unused * OME R/W 1 bit-0 ALEI R/W 0
WDR: Watch Dog Timer Reset. When system reset by Watch Dog Timer overflow, WDR will be set to 1 OME: 768 bytes on-chip RAM enable bit ALEI: ALE output inhibit bit, to reduce EMI The bit 7(WDR) of SCONF is Watch Dog Timer Reset bit. It will be set to 1 when reset signal generated by WDT overflow. User should check WDR bit whenever un-predicted reset happened.
1.3 I/O Pin Configuration
The ports 1, 2 and 3 of standard 8051 have internal pull-up resistor, and port 0 has open-drain outputs. Each I/O pin can be used independently as an input or an output. For I/O ports to be used as an input pin, the port bit latch must contain a ‘1’ which turns off the output driver FET. Then for port 1, 2 and 3 port pin is pulled high by a weak internal pull-up, and can be pulled low by an external source. The port 0 has open-drain outputs which means its pull-ups are not active during normal port operation. Writing ‘1’ to the port 0 bit latch will causing bit floating so that it can be used as a high-impedance input. The port 4 used as GPIO will has the same function as port 1, 2 and 3.
Specifications subject to change without notice contact your sales representatives for the most recent information.
Ver 2.1 SM89516 08/2006 7
SyncMOS Technologies International, Inc.
SM89516
8-Bits Micro-controller With 64KB flash & 1KB RAM embedded
2. Port 4 for PLCC or QFP package :
The bit addressable port 4 is available with PLCC or QFP package. The port 4 has only 4 pins and its port address is located at 0D8H. The function of port 4 is the same as the function of port 1, port 2 and port 3.
Port4 (P4, $D8)
bit-7 Unused Read / Write: Reset value: * Unused * Unused * Unused * P4.3 R/W 1 P4.2 R/W 1 P4.1 R/W 1 bit-0 P4.0 R/W 1
The bit 3, bit 2, bit 1, bit 0 output the setting to pin P4.3, P4.2, P4.1, P4.0 respectively. The port 4 output buffers can sink 20mA and can drive LED display directly.
Specifications subject to change without notice contact your sales representatives for the most recent information.
Ver 2.1 SM89516 08/2006 8
SyncMOS Technologies International, Inc.
Extension Function Description 3.Watch Dog Timer
SM89516
8-Bits Micro-controller With 64KB flash & 1KB RAM embedded
The Watch Dog Timer (WDT) is a 16-bit free-running counter that generate reset signal if the counter overflows. The WDT is useful for systems which are susceptible to noise, power glitches, or electronics discharge which causing software dead loop or runaway. The WDT function can help user software recover form abnormal software condition. The WDT is different from Timer0, Timer1 and Timer2 of general 8052. To prevent a WDT reset can be done by software periodically clearing the WDT counter. The SM89516 WDT has selectable divider input for the time base source clock. To select the divider input, the setting of bit2~bit0 (PS2~PS0) OF Watch Dog Timer Control Register (WDTC) should be set accordingly. The WDT is enable by setting 1 to the bit 7 (WDTE) of WDTC. After WDTE set to 1, the 16-bit counter starts to count with the selected time base source clock which set by PS2~PS0. It will generate a reset signal when overflows. The WDTE bit will be cleared to 0 automatically when SM89516 been reset, either hardware reset or WDT reset. To reset the WDT is done by setting 1 to the bit 5 (CLEAR) of WDTC. This will clear the content of the 16-bit counter and let the counter re-start to count from the beginning.
3.1 Watch Dog Timer Registers: WDT Control Register (WDTC, $9F)
bit-7 WDTE Read / Write: Reset value: R/W 0 R * Clear R/W 0 Unused * Unused * PS2 R/W 0 PS1 R/W 0 bit-0 PS0 R/W 0
WDTE : Watch Dog Timer enable bit CLEAR : Watch Dog Timer reset bit PS2~PS0 : clock source divider selection bit PS [2:0] 000 001 010 011 100 101 110 111 Divider (OSC in) 8 16 32 64 128 256 512 1024 Time Period (ms) @40MHz 13.1 26.21 52.42 104.8 209.71 419.43 838.86 1677.72
4. Reduce EMI Function
The SM89516 allows user to reduce the EMI emission by setting 1 to the bit 0 (ALEI) of SCONF register. This function will inhibit the clock signal in Fosc/6Hz output to the ALE pin. This function is available when there is no external program memory or no external data RAM in the system.
Specifications subject to change without notice contact your sales representatives for the most recent information.
Ver 2.1 SM89516 08/2006 9
SyncMOS Technologies International, Inc.
Operating Conditions
Symbol TA VCC5 VCC3 Fosc 25 Fosc 40 Description Operating temperature Supply voltage Supply voltage Oscillator Frequency Oscillator Frequency Min. 0 4.5 3 3.0 3.0 Typ. 25 5.0 3.3 16 25 Max. 70 5.5 3.6 16 25 Unit.
℃
SM89516
8-Bits Micro-controller With 64KB flash & 1KB RAM embedded
Remarks Ambient temperature under bias For C Version For L Version For 5V, 3.3V application For 5V, 3.3V application
V V MHz MHz
DC Characteristics
(12MHz, typical operating conditions, valid for SM89516 series) Min. Symbol Parameter Valid
VIL1 VIL2 VIH1 VIH2 VOL1 VOL2 VOH1 VOH2 IIL ITL ILI R RES C IO I CC 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 Pull-down Resistance Pin Capacitance Power Supply Current 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 50 2.4 90%Vcc 2.4 90%Vcc -75 -650 ±10 300 10 20 Vdd 6.5 50 -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 Freq=1MHz, Ta=25 ℃ Active mode, 16MHz Idle mode, 16MHz Power down mode IOL=3.2mA IOL=1.6mA IOH=-800uA (only for VCC =5V) IOH=-80uA IOH=-60uA (only for VCC =5 V) IOH=-10uA Vin=0.45V Vin=2.0V 0.45V