English
Language : 

SM8958B Datasheet, PDF (1/49 Pages) SyncMOS Technologies,Inc – 256 bytes SRAM as standard 8052
SM8958B
8-Bit Micro-controller
32KB Flash
& 1KB RAM embedded
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
1.1
Embedded Flash ...................................................................................................................................12
1.2
IO Pads .................................................................................................................................................12
1.3
System Control Register (SCONF) .......................................................................................................12
2.
Instruction Set ................................................................................................................................................13
3.
Memory Structure ..........................................................................................................................................17
3.1
Program Memory ..................................................................................................................................17
3.2
Data Memory.........................................................................................................................................18
3.3
Data memory - lower 128 byte (00h to 7Fh) .........................................................................................18
3.4
Data memory - higher 128 byte (80h to FFh)........................................................................................18
3.5
Data memory - Expanded 768 bytes ($0000 to $02FF) .......................................................................18
4.
CPU Engine ...................................................................................................................................................22
4.1
Accumulator ..........................................................................................................................................22
4.2
B Register .............................................................................................................................................22
4.3
Program Status Word............................................................................................................................23
4.4
Stack Pointer .........................................................................................................................................23
4.5
Data Pointer ..........................................................................................................................................23
5.
GPIO ..............................................................................................................................................................24
6.
Timer 0 and Timer 1.......................................................................................................................................25
6.1
Timer/counter mode control register (TMOD) .......................................................................................25
6.2
Timer/counter control register (TCON) .................................................................................................26
6.3
Mode 0 (13-bit Counter/Timer)..............................................................................................................26
6.4
Mode 1 (16-bit Counter/Timer)..............................................................................................................27
6.5
Mode 2 (8-bit auto-reload Counter/Timer) ............................................................................................27
6.6
Mode 3 (Timer 0 acts as two independent 8 bit Timers / Counters) .....................................................27
7.
Timer 2...........................................................................................................................................................29
7.1
Capture mode .......................................................................................................................................30
7.2
Auto-reload (Up or Down Counter) .......................................................................................................31
7.3
Programmable clock out .......................................................................................................................32
8.
Serial interface – UART .................................................................................................................................34
8.1
Serial interface ......................................................................................................................................34
8.1.1 Mode 0..........................................................................................................................................35
8.1.2 Mode 1..........................................................................................................................................35
8.1.3 Mode 2..........................................................................................................................................36
8.1.4 Mode 3..........................................................................................................................................36
8.2
Multiprocessor Communication of Serial Interface ...............................................................................36
8.3
Baud Rate Generator ............................................................................................................................37
8.3.1 Serial interface Mode 0 ................................................................................................................37
8.3.2 Serial interface Mode 2 ................................................................................................................37
8.3.3 Serial interface Mode 1 and 3 ......................................................................................................37
9.
Interrupt .......................................................................................................................................................... 38
10. Watch Dog Timer ...........................................................................................................................................40
11. Power Management Unit ...............................................................................................................................42
11.1 Idle mode ..............................................................................................................................................42
11.2 Power Down mode................................................................................................................................42
12. Pulse Width Modulation (PWM).....................................................................................................................44
13. 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-M085
Ver D SM8958B 08/07/2015
-1-