The SM8958A series product is an 8 - bit single chip micro
controller with 32KB on-chip flash and 1K byte RAM
embedded. It is a derivative of the 8052 micro controller
family. It has 5-channel SPWM build-in. User can access
on-chip expanded RAM with easier and faster way by its
‘bank mapping direct addressing mode’ scheme. With its
hardware features and powerful instruction set, it’s
straight forward to make it a versatile and cost effective
controller for those applications which demand up to 32 I/
O pins for PDIP package or up to 36
I/O pins for PLCC/QFP package, or applications which
need up to 32K byte flash memory for program data.
To program the on-chip flash memory, a commercial writer
is available to do it in parallel programming method.
Ordering Information
yywwv
SM8958Aihhk
yy: year, ww:week
v: version identifier {, A, B,...}
i: process identifier {L=3.0V ~ 3.6V, C=4.5V ~ 5.5V}
hh: working clock in MHz {25, 40}
k: package type postfix {as below table}
v: version identifier
General 8052 family compatible
12 clocks per machine cycle
32K byte on chip program flash
1024 byte on-chip data RAM
Three 16 bit Timers/Counters
One Watch Dog Timer
Four 8-bit I/O ports for PDIP package
Four 8-bit I/O ports + one 4-bit I/O ports for PLCC or QFP package
Full duplex serial channel
Bit operation instruction
Page free jumps
8-bit Unsigned Division
8-bit Unsigned Multiply
BCD arithmetic
Direct Addressing
Indirect Addressing
Nested Interrupt
Two priority level interrupt
NFIDENT
A serial I/O port
Power save modes: Idle mode and Power down mode
Code protection function
Low EMI (inhibit ALE)
Bank mapping direct addressing mode for access on-chip RAM
5 channel SPWM function with P1.3 ~ P1.7
C
T
O
AL
I
PY
NO
Ta iw a n
4F, No. 1 Creation Road 1,
Science-based Industrial Park,
Hsinchu, Taiwan 30077
Specifications subject to change without notice,contact your sales representatives for the most recent information.
1/25 Preliminary Ver 0.2 PID 8958A 09/02
Pin Configurations
SPWM2/P1.5
SPWM3/P1.6
SPWM4/P1.7
RES
RXD/P3.0
P4.3
TXD/P3.1
#INT0/P3.2
#INT1/P3.3
T0/P3.4
T1/P3.5
SyncMOS Technologies Inc. SM8958A
Preliminary
September 2002
P0.0/AD0
181716151413
VDD
19
P0.1/AD1
P0.2/AD2
P0.3/AD3
33
P0.4/AD4
32
P0.5/AD5
31
P0.6/AD6
30
P0.7/AD7
29
#EA
28
P4.1
27
ALE
26
#PSEN
25
P2.7/A15
24
P2.6/A14
23
22
2120
P2.5/A13
P1.2
P1.3/SPWM0
P1.4/SPWM1
6
7
8
9
10
11
12
13
14
15
16
17
19
18
P1.1/T2EX
3
5
4
SM8958A
ihhJ
44L PLCC(Top View)
22
20
21
VDD
P0.0/AD0
P4.2
P1.0/T2
144434241 40
2
26
25
23
24
P0.1/AD1
P0.2/AD2
2827
P0.3/AD3
39
38
37
36
35
34
33
32
31
30
29
P0.4/AD4
P0.5/AD5
P0.6/AD6
P0.7/AD7
#EA
P4.1
ALE
#PSEN
P2.7/A15
P2.6/A14
P2.5/A13
SPWM2/P1.5
SPWM3/P1.6
SPWM4/P1.7
RES
RXD/P3.0
P4.3
TXD/P3.1
#INT0/P3.2
#INT1/P3.3
T0/P3.4
T1/P3.5
P1.3/SPWM0
P1.4/SPWM1
P1.2
44 43 42 4138 37 36 35 3440 39
1
2
3
4
5
6
7
8
9
10
11
SM8958A
ihhQ
44L QFP
(Top View)
12
P4.2
P1.1/T2EX
P1.0/T2
AL
I
T2/P1.0
T2EX/P1.1
P1.2
SPWM0/P1.3
SPWM1/P1.4
SPWM2/P1.5
SPWM3/P1.6
SPWM4/P1.7
RES
RXD/P3.0
TXD/P3.1
#INT0/P3.2
#INT1/P3.3
T0/P3.4
T1/P3.5
#WR/P3.6
#RD/P3.7
XTAL2
XTAL1
VSS
VSS
XTAL1
XTAL2
#RD/P3.7
#WR/P3.6
1
2
3
4
5
6
7
8
9
10
11
12
DR
13
14
15
16
17
18
19
20
P4.0
(Top View)
40L PDIP
AF
P2.1/A9
P2.0/A8
P2.3/A11
P2.4/A12
P2.2/A10
VDD
40
P0.0/AD0
39
P0.1/AD1
38
P0.2/AD2
37
P0.3/AD3
36
T,C
P0.4/AD4
35
SM8958A ihhP
34
P0.5/AD5
P0.6/AD6
33
32
P0.7/AD7
#EA
31
30
ALE
D
#PSEN
29
P2.7/A15
28
P2.6/A14
27
P2.5/A13
26
P2.4/A12
25
P2.3/A11
24
P2.2/A10
23
P2.1/A9
22
21
P2.0/A8
NFIDENT
O
NO
O
C
T
PY
O
XTAL2
#RD/P3.7
#WR/P3.6
VSS
P4.0
XTAL1
P2.0/A8
P2.1/A9
P2.3/A11
P2.2/A10
P2.4/A12
Specifications subject to change without notice,contact your sales representatives for the most recent information.
2/25 Preliminary Ver 0.2 PID 8958A 09/02
SyncMOS Technologies Inc. SM8958A
September 2002
Block Diagram
Stack
Pointer
Buffer2
RES
Vdd
Vss
Timer 2
WDT
Reset
Circuit
Power
Circuit
Timer 1
Timer 0
to pertinent blocks
to whole chip
Preliminary
Decoder &
Register
Acc
Buffer1
1024 bytes
RAM
AL
I
Incrementer
Buffer
DPTR
PC
XTAL2
XTAL1
#EA
ALE
#PSEN
SPWM
Interrupt
Circuit
Timing
Generator
Instruction
Register
AF
Port 0
Latch
DR
5
Port 0
Driver & Mux
to pertinent blocks
to whole system
T,C
Port 1
Latch
D
Port 1
Driver & Mux
ALU
NFIDENT
PSW
O
NO
O
Port 2
Latch
Port 2
Driver & Mux
T
Port 3
Latch
Port 3
Driver & Mux
O
C
Port 4
Latch
Port 4
Driver & Mux
PY
2
Program
Counter
Register
Memory
32K
bytes
Flash
7FFFH
0000H
8
Specifications subject to change without notice,contact your sales representatives for the most recent information.
3/25 Preliminary Ver 0.2 PID 8958A 09/02
8
8
8
4
SyncMOS Technologies Inc. SM8958A
September 2002
Pin Descriptions
40L
44L
44L
PDIP
QFP
PLCC
Pin#
Pin#
Pin#
1 40 2T2/P1.0 i/o timer 2 clock out & bit 0 of port 1
2 41 3T2EX/P1.1 i/o timer 2 control & bit 1 of port 1
3 42 4P1.2 i/o bit 2 of port 1
4 43 5SPWM0/P1.3 i/o SPWM channel 0, bit 3 of port 1
5 44 6SPWM1/P1.4 i/o SPWM channel 1, bit 4 of port 1
6 1 7SPWM2/P1.5 i/o SPWM channel 2, bit 5 of port 1
7 2 8SPWM3/P1.6 i/o SPWM channel 3, bit 6 of port 1
8 3 9SPWM4/P1.7 i/o SPWM channel 4, bit 7 of port 1
9 4 10RES H i Reset
10 5 11RXD/P3.0 i/o Receive data & bit 0 of port 3
11 7 13TXD/P3.1 i/o Transmit data & bit 1 of port 3
12 8 14#INT0/P3.2 L/ - i/o low true interrupt 0 & bit 2 of port 3
13 9 15#INT1/P3.3 L/ - i/o low true interrupt 1 & bit 3 of port 3
14 10 16T0/P3.4 i/o Timer 0 & bit 4 of port 3
15 11 17T1/P3.5 i/o Timer 1 & bit 5 of port 3
16 12 18#WR/P3.6 i/o ext. memory write & bit 6 of port 3
17 13 19#RD/P3.7 i/o ext. mem. read & bit 7 of port 3
18 14 20XTAL2 o Crystal out
19 15 21XTAL1 iCrystal in
20 16 22VSSSink Voltage, Ground
21 18 24P2.0/A8 i/o bit 0 of port 2 & bit 8 of ext. memory address
22 19 25P2.1/A9 i/o bit 1 of port 2 & bit 9 of ext. memory address
23 20 26P2.2/A10 i/o bit 2 of port 2 & bit 10 of ext. memory address
24 21 27P2.3/A11 i/o bit 3 of port 2 & bit 11 of ext. memory address
25 22 28P2.4/A12 i/o bit 4 of port 2 & bit 12 of ext. memory address
26 23 29P2.5/A13 i/o bit 5 of port 2 & bit 13 of ext. memory address
27 24 30P2.6/A14 i/o bit 6 of port 2 & bit 14 of ext. memory address
28 25 31P2.7/A15 i/o bit 7 of port 2 & bit 15 of ext. memory address
29 26 32#PSEN o program storage enable
30 27 33ALE o address latch enable
31 29 35#EAL i external access & VPP
32 30 36P0.7/AD7 i/o bit 7 of port 0 & data/address bit 7 of ext. memory
33 31 37P0.6/AD6 i/o bit 6 of port 0 & data/address bit 6 of ext. memory
34 32 38P0.5/AD5 i/o bit 5 of port 0 & data/address bit 5 of ext. memory
35 33 39P0.4/AD4 i/o bit 4 of port 0 & data/address bit 4 of ext. memory
36 34 40P0.3/AD3 i/o bit 3 of port 0 & data/address bit 3 of ext. memory
37 35 41P0.2/AD2 i/o bit 2 of port 0 & data/address bit 2 of ext. memory
38 36 42P0.1/AD1 i/o bit 1 of port 0 & data/address bit 1 of ext. memory
39 37 43P0.0/AD0 i/o bit 0 of port 0 & data/address bit 0 of ext. memory
40 38 44VDDDrive Voltage, +5 Vcc
17 23P4.0 i/o bit 0 of Port 4
28 34P4.1 i/o bit 1 of Port 4
39 1P4.2 i/o bit 2 of Port 4
6 12P4.3 i/o bit 3 of Port 4
SymbolActive I/O Names
NFIDENT
O
T,C
NO
AF
O
D
DR
Preliminary
AL
I
PY
O
C
T
Specifications subject to change without notice,contact your sales representatives for the most recent information.
4/25 Preliminary Ver 0.2 PID 8958A 09/02
SyncMOS Technologies Inc. SM8958A
September 2002
Special Function Register (SFR)
The address $80 to $FF can be accessed by direct addressing mode only.
Address $80 to $FF is SFR area.
The following table lists the SFRs which are identical to general 8052, as well as SM8958A Extension SFRs.
Special Function Register (SFR) Memory Map
$F8
$F0
$E8
$E0
$D8
$D0
$C8
$C0
$B8
$B0
$A8
$A0
$98
$90
$88
$80
Note: The text of SFRs with bold type characters are Extension Special Function Registers for
Specifications subject to change without notice,contact your sales representatives for the most recent information.
5/25 Preliminary Ver 0.2 PID 8958A 09/02
SyncMOS Technologies Inc. SM8958A
September 2002
Extension Function Description
1. Memory Structure
The SM8958A is the general 8052 hardware core as a single chip micro controller. Its memory structure follows general 8052
structure.
1.1 Program Memory
The SM8958A has 32K byte on-chip flash memory which used as general program memory. The address range for the 32K
byte is $0000 to $7FFF.
32K Program
memory space
7FFF
Preliminary
AL
I
PY
0000
Note: The single flash block address structure for doing as well as program ROM flash.
1.2 Data Memory
NFIDENT
O
C
O
T
The SM8958A has 1K bytes on-chip RAM, 256 bytes of it are the same as general 8052 internal memory structure while the
expanded 768 bytes on-chip RAM can be accessed by external memory addressing method (by instruction MOVX), or by
‘Bank mapping direct addressing mode’ as described in next page.
T,C
02FF
NO
AF
O
Expanded 768 bytes RAM
(Accessed by direct external
addressing mode, by instruction
MOVX, or by Bank mapping
direct addressing mode)
FF
( OME = 1 )
80
0000
DR
FF
Higher 128 bytes (Access by
indirect addressing mode only)
80
7F
Lower 128 bytes (Accessed by
direct & indirect
00
addressing mode)
D
SFR (Accessed by direct
addressing mode only)
On-chip expanded RAM address structure.
Specifications subject to change without notice,contact your sales representatives for the most recent information.
6/25 Preliminary Ver 0.2 PID 8958A 09/02
SyncMOS Technologies Inc. SM8958A
September 2002
1.2.1 Data Memory - Lower 128 byte ($00 to $7F, Bank 0 & Bank 1)
Data Memory $00 to $FF is the same as 8052.
The address $00 to $7F can be accessed by direct and indirect addressing modes.
Address $00 to $1F is register area.
Address $20 to $2F is memory bit area.
Address $30 to $7F is for general memory area.
1.2.2 Data Memory - Higher 128 byte ($80 to $FF, Bank 2 & Bank 3)
The address $80 to $FF can be accessed by indirect addressing mode or by bank mapping direct addressing mode.
Address $80 to $FF is data area.
1.2.3 Data Memory - Expanded 768bytes ($0000 to $02FF, Bank 4 ~ Bank 15)
From external address $0000 to $02FF is the on-chip expanded RAM area, total 768 bytes. This area can be accessed by
external direct addressing mode (by instruction MOVX) or by bank mapping direct addressing mode as described below:
Preliminary
AL
I
1.3 Bank mapping direct addressing mode
We provide RAM bank address ‘40H~7FH’ as mapping window which allow user access all the 1KB on-chip RAM through
this RAM bank address.
:
PY
O
NFIDENT
That means using direct addressing mode can access all the 1KB on-chip RAM. Please see next page for the mapping
mode table.
O
C
T
T,C
NO
AF
O
D
DR
Specifications subject to change without notice,contact your sales representatives for the most recent information.
7/25 Preliminary Ver 0.2 PID 8958A 09/02
SyncMOS Technologies Inc. SM8958A
September 2002
BS3BS2BS1BS0040h~07fh map-
ping address
0000000h~03fh lower 128 byte RAM
0001040h~07fh lower 128 byte RAM
0010080h~0bfh higher 128 byte RAM
00110c0h~0ffh higher 128 byte RAM
01000000h~003fhon-chip expanded 768 byte RAM
01010040h~007fh“
01100080h~00bfh“
011100c0h~00ffh“
10000100h~013fh“
10010140h~017fh“
10100180h~01bfh“
101101c0h~01ffh“
11000200h~023fh“
11010240h~027fh“
11100280h~02bfh“
111102c0h~02ffh“
NFIDENT
O
With this bank mapping scheme, user can access entire 1K byte on-chip RAM with direct addressing method. That means
using the window area ($040~$07F), user can access any bank (64 byte) data of 1K byte on-chip RAM space which is
selected by BS[3:0] of data bank control register (DBANK, $86).
Preliminary
Note
AL
I
PY
O
C
T
T,C
For example, user write #30h to $101 address:
MOV DBANK, #88H ; set bank mapping $040~$07f to $0100~$013f
MOV A, # 30H ; store #30H to A
MOV 41H, A ; write #30H to $0101 address
AF
NO
O
D
DR
Specifications subject to change without notice,contact your sales representatives for the most recent information.
8/25 Preliminary Ver 0.2 PID 8958A 09/02
Loading...
+ 17 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.