SM59R04A2
8-Bit Micro-controller
16KB with ISP Flash
& 1KB RAM embedded
Product List
Features
SM59R04A2L25, SM59R04A2C25
Operating Voltage: 4.5V ~ 5.5V or 2.7V ~ 3.6V
High speed architecture of 1 clock/machine cycle (1T), runs
up to 25MHz
1T/2T modes are software programmable on the fly
Instruction-set compatible with MCS-51
Internal OSC with range 1MHz – 24MHz
16K bytes on-chip flash program memory
External RAM addresses up to 64K bytes.
Standard 12T interface for external RAM access.
256 bytes RAM as standard 8052, plus 1K bytes on-chip
expandable RAM
Dual 16-bit Data Pointers (DPTR0 & DPTR1)
Two serial peripheral interfaces in full duplex mode (UART0
& UART1),
Three 16-bit Timers/Counters. (Timer 0 , 1, 2)
36 GPIOs(PDIP 40),40 GPIOs(PLCC 44/QFP 44),44
GPIOs(LQFP 48)
GPIOs can select four Type(quasi-bidirectional、push-pull、
open drain、input-only),default is quasi-bidirectional(pull-up)
External interrupt 0,1 with two priority levels
Programmable watchdog timer (WDT)
One IIC interface (Master/Slave mode)
One SPI interface (Master/Slave mode)
4-channel PWM
4-channel 16-bit compare /capture /load functions
8-channel 10-bit analog-to-digital converter (ADC)
On–chip flash memories support ISP/IAP/ICP and EEPROM
functions.
ISP service program space configurable in N*256 byte (N=0 to 16)
size.
On-chip in-circuit emulator (ICE) function with On-Chip
Debugger(OCD)
EMI reduction mode (ALE output inhibited).
Fast multiplication-division unit (MDU) : 16*16, 32/16, 16/16,
32-bit L/R shifting and 32-bit normalization
Keyboard interface (KBI) on port 0 or port 2 (default) for eight
more interrupts.
LVI/LVR (LVR deglitch 500ns)
Enhanced user code protection
Power management unit for idle and power down modes
Description
The SM59R04A2 is a 1T (one machine cycle per clock)
single-chip 8-bit microcontroller. It has 16K-byte embedded
Flash for program, and executes all ASM51 instructions fully
compatible with MCS-51.
SM59R04A2 contains 1KB on-chip RAM, more than 44
GPIOs (LQFP-48 package type), various serial interfaces
and many peripheral functions as described below. It can be
programmed via writers. Its on-chip ICE is convenient for
users in verification during development stage.
The high performance of SM59R04A2 can achieve
complicated manipulation within short time. About one third
of the instructions are pure 1T, and the average speed is 8
times of traditional 8051, the fastest one among all the 1T
51-series.Its excellent EMI and ESD characteristics are
advantageous for many different applications.
Ordering Information
SM59R04A2ihhkL yymmv
i: process identifier { L =2.7V ~ 3.6V, C = 4.5V ~ 5.5V}
hh: working clock in MHz {25}
k: package type postfix {as table below }
L:PB Free identifier
{No text is Non-PB free,”P” is PB free}
yy: year
mm: month
v: version identifier{ A, B,…}
Postfix
P
J
Q
V
Package
40L PDIP
44L PLCC
44L QFP
48L LQFP
Pin / Pad Configuration
Page 2
Page 3
Page 4
Page 5
Contact SyncMOS : www.syncmos.com.tw
6F, No.10-2 Li- Hsin 1st Road , SBIP, Hsinchu, Taiwan
TEL: 886-3-567-1820 FAX: 886-3-567-1891
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M043
1
Ver.C SM59R04A2 03/2010
SM59R04A2
8-Bit Micro-controller
16KB with ISP Flash
& 1KB RAM embedded
Pin Configuration
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M043
2
Ver.C SM59R04A2 03/2010
SyncMOS
SM59R04A2
8-Bit Micro-controller
16KB with ISP Flash
& 1KB RAM embedded
P4.2/PWM2/CC2/RXD1/MISO
P1.3/ADC3/TXD1/CC2
P1.1/ADC1/T2EX/CC1
P1.4/ADC4/SS/CC3
P1.0/ADC0/T2/CC0
P1.2/ADC2/RXD1
P0.0/AD0/KBI0
P0.1/AD1/KBI1
42
P0.2/AD2/KBI2
41
6
5
4
3
2
1
44
43
MOSI/ADC5/P1.5
IIC_SCL/MISO/ADC6/P1.6
IIC_SDA/SPI_CLK/ADC7/P1.7
P4.7/RESET
RXD0/P3.0
SPI_CLK/TXD1/CC3/PWM3/P4.3
TXD0/P3.1
INT0/P3.2
INT1/P3.3
T0/P3.4
T1/P3.5
P0.3/AD3/KBI3
40
VDD
P0.4/AD4/KBI4
P0.5/AD5/KBI5
P0.6/AD6/KBI6
P0.7/AD7/KBI7
OCI_SDA/P4.6
P4.1/PWM1/CC1/IIC_SDA/MOSI
ALE/P4.5
OCI_SCL/P4.4
P2.7/A15/KBI7
P2.6/A14/KBI6
P2.5/A13/KBI5
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
KBI2/A10/P2.2
KBI3/A11/P2.3
SS/IIC_SCL/CC0/PWM0/P4.0
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M043
3
Ver.C SM59R04A2 03/2010
KBI4/A12/P2.4
XTAL2
WR/P3.6
RD/P3.7
XTAL1
VSS
KBI0/A8/P2.0
KBI1/A9/P2.1
29
30
31
32
33
34
35
36
SyncMOS
37
9
38
8
39
7
SM59R04A2
8-Bit Micro-controller
16KB with ISP Flash
& 1KB RAM embedded
P4.1/PWM1/CC1/IIC_SDA/MOSI
P0.4/AD4/KBI4
P0.5/AD5/KBI5
P0.6/AD6/KBI6
P0.7/AD7/KBI7
P2.7/A15/KBI7
25
P2.6/A14/KBI6
24
33
32
31
30
29
28
27
26
KBI3/AD3/P0.3
KBI2/AD2/P0.2
KBI1/AD1/P0.1
KBI0/AD0/P0.0
VDD
MISO/RXD1/CC2/PWM2/P4.2
CC0/T2/ADC0/P1.0
CC1/T2EX/ADC1/P1.1
RXD1/ADC2/P1.2
CC2/TXD1/ADC3/P1.3
CC3/SS/ADC4/P1.4
23
P2.5/A13/KBI5
OCI_SDA/P4.6
OCI_SCL/P4.4
ALE/P4.5
34
35
36
37
38
39
40
41
42
43
44
22
P2.4/A12/KBI4
P2.3/A11/KBI3
P2.2/A10/KBI2
P2.1/A9/KBI1
P2.0/A8/KBI0
P4.0/PWM0/CC0/IIC_SCL/SS
VSS
XTAL1
XTAL2
P3.7/RD
P3.6/WR
SyncMOS
21
20
19
18
17
16
15
14
13
12
10
T0/P3.4
TXD0/P3.1
INT0/P3.2
IIC_SCL/MISO/ADC6/P1.6
MOSI/ADC5/P1.5
P4.7/RESET
RXD0/P3.0
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M043
4
Ver.C SM59R04A2 03/2010
SPI_CLK/TXD1/CC3/PWM3/P4.3
IIC_SDA/SPI_CLK/ADC7/P1.7
INT1/P3.3
T1/P3.5
11
1
2
3
4
5
6
7
8
9
SM59R04A2
8-Bit Micro-controller
16KB with ISP Flash
& 1KB RAM embedded
P4.1/PWM1/CC1/IIC_SDA/MOSI
P0.4/AD4/KBI4
P0.5/AD5/KBI5
P0.6/AD6/KBI6
P0.7/AD7/KBI7
P2.7/A15/KBI7
P2.6/A14/KBI6
27
P2.5/A13/KBI5
26
OCI_SDA/P4.6
OCI_SCL/P4.4
ALE/P4.5
36
35
34
33
32
31
30
29
28
25
P5.1
KBI3/AD3/P0.3
KBI2/AD2/P0.2
KBI1/AD1/P0.1
KBI0/AD0/P0.0
VDD
MISO/RXD1/CC2/PWM2/P4.2
CC0/T2/ADC0/P1.0
CC1/T2EX/ADC1/P1.1
RXD1/ADC2/P1.2
CC2/TXD1/ADC3/P1.3
CC3/SS/ADC4/P1.4
P5.2
37
38
39
40
41
42
43
44
45
46
47
48
24
P5.0
P2.4/A12/KBI4
P2.3/A11/KBI3
P2.2/A10/KBI2
P2.1/A9/KBI1
P2.0/A8/KBI0
P4.0/PWM0/CC0/IIC_SCL/SS
VSS
XTAL1
XTAL2
P3.7/RD
P3.6/WR
SyncMOS
23
22
21
20
19
18
17
16
15
14
13
10
11
P4.7/RESET
T0/P3.4
INT0/P3.2
RXD0/P3.0
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M043
5
Ver.C SM59R04A2 03/2010
SPI_CLK/TXD1/CC3/PWM3/P4.3
MOSI/ADC5/P1.5
IIC_SCL/MISO/ADC6/P1.6
IIC_SDA/SPI_CLK/ADC7/P1.7
TXD0/P3.1
INT1/P3.3
T1/P3.5
P5.3
12
1
2
3
4
5
6
7
8
9