Special Function Register (SFR) ......................................................................................................................................11
Function Description .........................................................................................................................................................15
1.
General Features .....................................................................................................................................................15
Instruction Set ..........................................................................................................................................................18
Program Memory ....................................................................................................................................22
3.2.
Data Memory ..........................................................................................................................................24
3.2.1.
Data memory - lower 128 byte (00h to 7Fh) ..................................................................................24
3.2.2.
Data memory - higher 128 byte (80h to FFh) ................................................................................25
3.2.3.
Data memory - Expanded 2048 bytes ($0000 to $07FF) ..............................................................25
4.
CPU Engine .............................................................................................................................................................26
B Register ...............................................................................................................................................26
4.3.
Program Status Word .............................................................................................................................27
Data Pointer ............................................................................................................................................27
4.6.
Data Pointer 1 .........................................................................................................................................28
4.7.
Internal RAM control register ..................................................................................................................28
4.8.
Interface control register .........................................................................................................................28
Multiplication Division Unit (MDU)............................................................................................................................32
6.1.
Operating registers of the MDU ..............................................................................................................32
6.2.
Operation of the MDU.............................................................................................................................33
6.2.1.
First phase: loading the MDx registers, x = 0~5: ...........................................................................33
6.2.2.
Second phase: executing calculation. ...........................................................................................33
6.2.3.
Third phase: reading the result from the MDx registers. ...............................................................33
Timer 0 and Timer 1 .................................................................................................................................................35
7.1.
Timer/counter mode control register (TMOD).........................................................................................35
7.2.
Timer/counter control register (TCON) ...................................................................................................36
8.
Timer 2 and Capture/Compare Unit .........................................................................................................................37
8.1.
Timer 2 function ......................................................................................................................................39
Capture function .....................................................................................................................................41
Serial interface 0 and 1 ............................................................................................................................................42
9.1.
Serial interface 0.....................................................................................................................................43
Serial interface 1.....................................................................................................................................45
9.2.1.
Mode A ...........................................................................................................................................45
Power Management Unit.................................................................................................................................55
IIC function ......................................................................................................................................................59
15.
SPI function .....................................................................................................................................................63
ISP service program ...............................................................................................................................74
19.2.
Lock Bit (N) .............................................................................................................................................74
19.3.
Program the ISP Service Program .........................................................................................................75
19.4.
Initiate ISP Service Program...................................................................................................................75
DC Characteristics ............................................................................................................................................................78
9.
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M051
2
Ver.E SM59R16A3 02/2012
SM59R16A3/SM59R09A3/SM59R05A3
8-Bit Micro-controller
64KB/36KB/20KB with ISP Flash
& 2KB RAM embedded
Product List
SM59R16A3L25, SM59R16A3C25
SM59R09A3L25, SM59R09A3C25
SM59R05A3L25, SM59R05A3C25
Features
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
64K/36K/20KBytes 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 2K bytes
on-chip expandable RAM
Dual 16-bit Data Pointers (DPTR0 & DPTR1)
Two serial peripheral interfaces in full duplex mode
(UART0 & UART1),
Additional Baud Rate Generator for Serial 0.
Three 16-bit Timers/Counters. (Timer 0 , 1, 2)
38 GPIOs(PDIP 40),42 GPIOs(PLCC 44/PQFP
44/LQFP 44),46 GPIOs(LQFP 48),GPIOs can
select four Type(quasi-bidirectional push-pull open