SM39R08A5
8-Bit Micro-controller
with 8KB Flash
& 256B RAM embedded
Table of Contents
Product List .......................................................................................................................................................................... 3
Description ........................................................................................................................................................................... 3
Features ............................................................................................................................................................................... 3
Pin Configuration ................................................................................................................................................................. 4
Block Diagram...................................................................................................................................................................... 5
Pin Description ..................................................................................................................................................................... 6
Special Function Register (SFR) ......................................................................................................................................... 7
Function Description .......................................................................................................................................................... 10
1. General Features ........................................................................................................................................................ 10
1.1.
Embedded Flash .......................................................................................................................................... 10
1.2.
IO Pads ........................................................................................................................................................ 10
1.3.
Instruction timing Selection .......................................................................................................................... 10
1.4.
The Clock Output Selection ..........................................................................................................................11
1.5.
RESET ..........................................................................................................................................................11
1.5.1.
Hardware RESET function ...............................................................................................................11
1.5.2.
Software RESET function ................................................................................................................11
1.5.3.
Reset status .....................................................................................................................................11
1.5.4.
Time Access Key register (TAKEY)................................................................................................. 12
1.5.5.
Software Reset register (SWRES) .................................................................................................. 12
1.5.6.
Example of software reset .............................................................................................................. 12
1.6.
Clocks .......................................................................................................................................................... 12
2. Instruction Set ............................................................................................................................................................. 14
3. Memory Structure ........................................................................................................................................................ 18
3.1.
Program Memory ......................................................................................................................................... 18
3.2.
Data Memory................................................................................................................................................ 19
3.2.1.
Data memory - lower 128 byte (00h to 7Fh) ................................................................................... 19
3.2.2.
Data memory - higher 128 byte (80h to FFh) ................................................................................. 19
4. CPU Engine ................................................................................................................................................................. 20
4.1.
Accumulator ................................................................................................................................................. 20
4.2.
B Register .................................................................................................................................................... 20
4.3.
Program Status Word ................................................................................................................................... 21
4.4.
Stack Pointer ................................................................................................................................................ 21
4.5.
Data Pointer ................................................................................................................................................. 21
4.6.
Data Pointer 1 .............................................................................................................................................. 22
4.7.
Interface control register .............................................................................................................................. 22
5. GPIO............................................................................................................................................................................ 23
5.1.
SFR Setting Method ..................................................................................................................................... 23
5.2.
Software of Writer Setting Method ............................................................................................................... 23
6. Timer 0 and Timer 1 .................................................................................................................................................... 24
6.1.
Timer/counter mode control register (TMOD) .............................................................................................. 24
6.2.
Timer/counter control register (TCON) ........................................................................................................ 25
6.3.
Enhance Interrupt Trigger SFR(ENHIT) ....................................................................................................... 25
6.4.
T0、T1 signal swapping .............................................................................................................................. 26
7. Serial interface ............................................................................................................................................................ 27
7.1.
Mode 0 ......................................................................................................................................................... 28
7.2.
Mode 1 ......................................................................................................................................................... 28
7.3.
Mode 2 ......................................................................................................................................................... 29
7.4.
Mode 3 ......................................................................................................................................................... 29
7.5.
Multiprocessor communication .................................................................................................................... 29
7.6.
Baud rate generator ..................................................................................................................................... 30
8. Watchdog timer ........................................................................................................................................................... 31
9. Interrupt ....................................................................................................................................................................... 35
10. Power Management Unit ............................................................................................................................................. 40
10.1. Idle mode ..................................................................................................................................................... 40
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M067
Ver E SM39R08A5 06/30/2015
-1-
SM39R08A5
8-Bit Micro-controller
with 8KB Flash
& 256B RAM embedded
10.2. Stop mode .................................................................................................................................................... 40
11. PWM - Pulse Width Modulation .................................................................................................................................. 41
12. IIC function .................................................................................................................................................................. 44
13. LVI – Low Voltage Interrupt ......................................................................................................................................... 48
14. 10-bit Analog-to-Digital Converter (ADC) .................................................................................................................... 49
15. EEPROM ..................................................................................................................................................................... 52
16. Comparator ................................................................................................................................................................. 54
DC Characteristics ............................................................................................................................................................. 56
ADC Characteristics .......................................................................................................................................................... 58
Comparator Characteristics ............................................................................................................................................... 58
LVI& LVR Characteristics ................................................................................................................................................... 58
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M067
Ver E SM39R08A5 06/30/2015
-2-
SM39R08A5
8-Bit Micro-controller
with 8KB Flash
& 256B RAM embedded
Product List
SM39R08A5U10MP
Features
Operating Voltage: 1.8V ~ 5.5V
1~8T modes are software programmable.
Instruction-set compatible with MCS-51.
22.1184MHz Internal RC oscillator, with
programmable clock divider
8K Bytes on-chip flash program memory.
256 bytes RAM as standard 8052,
One serial peripheral interfaces in full duplex mode.
1.1 Synchronous mode, fixed baud rate,
1.2 8-bit UART mode, variable baud rate.
1.3 9-bit UART mode, fixed baud rate,
1.4 9-bit UART mode, variable baud rate.
Additional Baud Rate Generator
Two 16-bit Timer/Counters. (Timer 0, 1)
8 GPIOs(10L MSOP)
Programmable watchdog timer.
One IIC interface. (Master/Slave mode)
10 bit PWM x 4 channel
8 channel 10-bit analog-to-digital converter (ADC)
On-Chip Comparator x 1
On–chip flash memories support IAP/ICP and
EEPROM functions.
On-Chip in-circuit emulator (ICE) functions with
On-Chip Debugger (OCD).
EMI reduction mode (ALE output inhibited).
LVI/LVR.
IO PAD ESD over 4KV.
Enhance user code protection.
External interrupt 0, 1 with four priority levels.
Power management unit for IDLE and power down
modes.
Description
The SM39R08A5 is a 1T (one machine cycle per clock)
single-chip 8-bit microcontroller. It has 8K-byte
embedded Flash for program, and executes all ASM51
instructions fully compatible with MCS-51.
SM39R08A5 contains 256B on-chip RAM, up to 8 GPIOs
(10L package), 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 SM39R08A5 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
SM39R08A5ihhkL
YWW
i: process identifier {U = 1.8V ~ 5.5V}
hh: pin count
k: package type postfix {as table below }
L:PB Free identifier
{No text is Non-PB free,”P” is PB free}
Y: year
WW: week
Postfix
M
Package
MSOP (118 mil)
Pin / Pad
Configuration
Page 4
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M067
Ver E SM39R08A5 06/30/2015
-3-