SM89516B
8-Bit Micro-controller
64KB Flash
& 1KB RAM embedded
FOSVOS TEL: 021-58998693
Product List...................................................................................................................................................................3
Description....................................................................................................................................................................3
Ordering Information.....................................................................................................................................................3
Features........................................................................................................................................................................3
Pin Configuration ..........................................................................................................................................................4
Block Diagram...............................................................................................................................................................7
Special Function Register (SFR) ..................................................................................................................................9
Function Description...................................................................................................................................................12
1.
General Features...........................................................................................................................................12
Embedded Flash...................................................................................................................................12
IO Pads .................................................................................................................................................12
System Control Register (SCONF).......................................................................................................12
Instruction Set................................................................................................................................................13
Memory Structure ..........................................................................................................................................17
Program Memory ..................................................................................................................................17
Data Memory.........................................................................................................................................18
Data memory - lower 128 byte (00h to 7Fh).........................................................................................18
Data memory - higher 128 byte (80h to FFh)........................................................................................18
Data memory - Expanded 768 bytes ($0000 to $02FF) .......................................................................18
CPU Engine...................................................................................................................................................22
Accumulator ..........................................................................................................................................22
B Register .............................................................................................................................................22
Program Status Word............................................................................................................................23
Stack Pointer.........................................................................................................................................23
Data Pointer ..........................................................................................................................................23
GPIO..............................................................................................................................................................24
Timer 0 and Timer 1.......................................................................................................................................25
Timer/counter mode control register (TMOD).......................................................................................25
Timer/counter control register (TCON) .................................................................................................26
Mode 0 (13-bit Counter/Timer)..............................................................................................................26
Mode 1 (16-bit Counter/Timer)..............................................................................................................27
Mode 2 (8-bit auto-reload Counter/Timer) ............................................................................................27
Mode 3 (Timer 0 acts as two independent 8 bit Timers / Counters) .....................................................27
Timer 2...........................................................................................................................................................29
Capture mode .......................................................................................................................................30
Auto-reload (Up or Down Counter) .......................................................................................................31
Programmable clock out .......................................................................................................................32
Serial interface – UART.................................................................................................................................34
Serial interface ......................................................................................................................................34
1.1
1.2
1.3
2.
3.
3.1
3.2
3.3
3.4
3.5
4.
4.1
4.2
4.3
4.4
4.5
5.
6.
6.1
6.2
6.3
6.4
6.5
6.6
7.
8.
7.1
7.2
7.3
8.1
8.1.1
8.1.2
8.1.3
8.1.4
Mode 0..........................................................................................................................................35
Mode 1..........................................................................................................................................35
Mode 2..........................................................................................................................................36
Mode 3..........................................................................................................................................36
8.2
8.3
Multiprocessor Communication of Serial Interface ...............................................................................36
Baud Rate Generator............................................................................................................................37
8.3.1
8.3.2
8.3.3
Serial interface Mode 0 ................................................................................................................37
Serial interface Mode 2 ................................................................................................................37
Serial interface Mode 1 and 3 ......................................................................................................37
9.
10.
11.
Interrupt..........................................................................................................................................................38
Watch Dog Timer ...........................................................................................................................................40
Power Management Unit ...............................................................................................................................42
11.1
11.2
Idle mode ..............................................................................................................................................42
Power Down mode................................................................................................................................42
12.
13.
Pulse Width Modulation (PWM).....................................................................................................................44
Two-Wire Series Interface (TWSI).................................................................................................................46
Operating Conditions..................................................................................................................................................49
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M087
Ver A SM89516B 3/7/2014
- 1 -