SM39R08A5
8-Bit Micro-controller
with 8KB Flash
& 256B RAM embedded
FOSVOS TEL: 021-58998693
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.
1.2.
1.3.
1.4.
1.5.
Embedded Flash.....................................................................................................................................10
IO Pads ..................................................................................................................................................10
Instruction timing Selection .....................................................................................................................10
The Clock Output Selection.....................................................................................................................10
RESET ................................................................................................................................................... 11
1.5.1.
Hardware RESET function.......................................................................................................... 11
Software RESET function ........................................................................................................... 11
Reset status ............................................................................................................................... 11
Time Access Key register (TAKEY).............................................................................................12
Software Reset register (SWRES) ..............................................................................................12
Example of software reset ..........................................................................................................12
1.5.2.
1.5.3.
1.5.4.
1.5.5.
1.5.6.
1.6.
Clocks.....................................................................................................................................................12
2. Instruction Set .......................................................................................................................................................13
3. Memory Structure..................................................................................................................................................17
3.1.
3.2.
Program Memory....................................................................................................................................17
Data Memory ..........................................................................................................................................18
3.2.1.
3.2.2.
Data memory - lower 128 byte (00h to 7Fh)................................................................................18
Data memory - higher 128 byte (80h to FFh)...............................................................................18
4. CPU Engine ..........................................................................................................................................................19
4.1.
4.2.
4.3.
4.4.
4.5.
4.6.
4.7.
Accumulator............................................................................................................................................19
B Register...............................................................................................................................................19
Program Status Word..............................................................................................................................20
Stack Pointer...........................................................................................................................................20
Data Pointer............................................................................................................................................20
Data Pointer 1.........................................................................................................................................21
Interface control register..........................................................................................................................21
5. GPIO.....................................................................................................................................................................22
6. Timer 0 and Timer 1...............................................................................................................................................23
6.1.
6.2.
6.3.
Timer/counter mode control register (TMOD)...........................................................................................23
Timer/counter control register (TCON).....................................................................................................24
T0、T1 signal swapping..........................................................................................................................24
7. Serial interface ......................................................................................................................................................25
7.1.
7.2.
7.3.
7.4.
7.5.
7.6.
Mode 0 ...................................................................................................................................................26
Mode 1 ...................................................................................................................................................26
Mode 2 ...................................................................................................................................................27
Mode 3 ...................................................................................................................................................27
Multiprocessor communication................................................................................................................27
Baud rate generator................................................................................................................................28
8. Watchdog timer .....................................................................................................................................................29
9. Interrupt.................................................................................................................................................................33
10. Power Management Unit .......................................................................................................................................38
10.1. Idle mode................................................................................................................................................38
10.2. Stop mode ..............................................................................................................................................38
11. PWM - Pulse Width Modulation..............................................................................................................................39
12. IIC function............................................................................................................................................................42
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M067
Ver B SM39R08A5 04/22/2013
- 1 -