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-
SM8958B
8-Bit Micro-controller
32KB Flash
& 1KB RAM embedded
Product List
SM8958BW40PP,
SM8958BW44JP,
SM8958BW44QP,
Features
Main Flash ROM 32KB.
Working voltage 2.4V~5.5V runs up to
40MHz
General 8052 family compatible with 12
clocks in one machine cycle.
256 bytes SRAM as standard 8052.
On-chip 768 bytes expanded RAM.
16-bit Data Pointers (DPTR).
One serial peripheral interfaces in full duplex
mode (UART).
Description
The SM8958B series product is an 8 - bit single chip
micro controller with 32KB flash & 1KB SRAM
embedded.
SM8958B is a versatile and cost effective controller for
those applications which demand up to 36 I/O pins, or
applications which need up to 32K byte flash memory
either for program or for data or mixed.
To program the on-chip flash memory, a commercial
writer is available to do it in parallel programming
method.
-
-
-
-
Synchronous mode, fixed baud rate.
8-bit UART mode, variable baud rate.
9-bit UART mode, fixed baud rate.
9-bit UART mode, variable baud rate.
Ordering Information
SM8958BihhkL YWW
i: process identifier { W = 2.4V ~ 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 Code
WW: Week Code (01-52)
Postfix
P
J
Q
Package
PDIP
PLCC
PQFP
Three 16-bit Timer/Counters (Timer 0, 1, 2).
One watch dog timer (WDT).
One IIC interface (Master / Slave mode).
Two 8-bit/5-bit configurable PWM output
channels.
Seven interrupt sources with two priority
levels.
Four 8-bit I/O ports and additional one 4-bit
I/O ports.
IO PAD ESD over 4KV.
Enhance user code protection.
Power management unit for IDLE and power
down modes.
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M085
Ver D SM8958B 08/07/2015
-3-