The SM8954A series product is an 8 - bit single chip micro
controller with 16KB 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 16 I/
O pins for PDIP package or up to 36
I/O pins for PLCC/QFP package, or applications which
need up to 16K 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
SM8954Aihhk
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
8 - Bit Micro-controller
with 16KB flash & 1KB RAM embedded
Features
Working voltage: 3.0V ~ 3.6V For L Version
4.5V ~ 5.5V For C Version
General 8052 family compatible
12 clocks per machine cycle
16K 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
Industrial Level
8-bit Unsigned Division
8-bit Unsigned Multiply
BCD arithmetic
Direct Addressing
Indirect Addressing
Nested Interrupt
Two priority level interrupt
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
Specifications subject to change without notice,contact your sales representatives for the most recent information.
2/25 Ver 1.0 SM8954A 10/03
SyncMOS Technologies Inc. SM8954A
October 2003
Block Diagram
XTAL2
XTAL1
#EA
ALE
#PSEN
RES
Vdd
Vss
Timer 2
Timer 1
WDT
Reset
Circuit
Power
Circuit
Interrupt
Circuit
Timing
Generator
Instruction
Register
Timer 0
to pertinent blocks
to whole chip
to pertinent blocks
to whole system
Stack
Pointer
Buffer2
PSW
ALU
Decoder &
Register
Acc
Buffer1
1024 bytes
RAM
Buffer
DPTR
PC
Incrementer
Program
Counter
Register
3FFFH
16K
bytes
Port 0
Latch
5
SPWM
Port 0
Driver & Mux
8
Specifications subject to change without notice,contact your sales representatives for the most recent information.
3/25 Ver 1.0 SM8954A 10/03
Port 1
Latch
Port 1
Driver & Mux
8
Port 2
Latch
Port 2
Driver & Mux
8
Port 3
Latch
Port 3
Driver & Mux
8
Port 4
Latch
Port 4
Driver & Mux
4
Flash
Memory
0000H
SyncMOS Technologies Inc. SM8954A
October 2003
Pin Descriptions
40L
44L
44L
PDIP
QFP
PLCC
Pin#
Pin#
Pin#
1 40 2P1.0/T2 i/o bit 0 of port 1 & timer 2 clock out
2 41 3P1.1/T2EX i/o bit 1 of port 1 & timer 2 control
3 42 4P1.2 i/o bit 2 of port 1
4 43 5P1.3/SPWM0 i/o bit 3 of port 1 & SPWM channel 0
5 44 6P1.4/SPWM1 i/o bit 4 of port 1 & SPWM channel 1
6 1 7P1.5/SPWM2 i/o bit 5 of port 1 & SPWM channel 2
7 2 8P1.6/SPWM3 i/o bit 6 of port 1 & SPWM channel 3
8 3 9P1.7/SPWM4 i/o bit 7 of port 1 & SPWM channel 4
9 4 10RES H i Reset
10 5 11P3.0/RXD i/o bit 0 of port 3 & Receive data
11 7 13P3.1/TXD i/o bit 1 of port 3 & Transmit data
12 8 14P3.2/#INT0 L/ - i/o bit 2 of port 3 & low true interrupt 0
13 9 15P3.3/#INT1 L/ - i/o bit 3 of port 3 & low true interrupt 1
14 10 16P3.4/T0 i/o bit 4 of port 3 & Timer 0
15 11 17P3.5/T1 i/o bit 5 of port 3 & Timer 1
16 12 18P3.6/#WR i/o bit 6 of port 3 & ext. memory write
17 13 19P3.7/#RD i/o bit 7 of port 3 & ext. mem. read
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
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
Specifications subject to change without notice,contact your sales representatives for the most recent information.
4/25 Ver 1.0 SM8954A 10/03
SyncMOS Technologies Inc. SM8954A
October 2003
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 SM8954A Extension SFRs.
Special Function Register (SFR) Memory Map
$F8
$F0
$E8
$E0
$D8
$D0
$C8
B
ACC
P4
PSW
T2CONT2MODRCAP2L RCAP2HTL2TH2
$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 Ver 1.0 SM8954A 10/03
SyncMOS Technologies Inc. SM8954A
October 2003
Extension Function Description
1. Memory Structure
The SM8954A is the general 8052 hardware core as a single chip micro controller. Its memory structure follows general 8052
structure.
1.1 Program Memory
The SM8954A has 16K byte on-chip flash memory which used as general program memory. The address range for the 16K
byte is $0000 to $3FFF.
3FFF
16K Program
memory space
0000
Note: The single flash block address structure for doing as well as program ROM flash.
1.2 Data Memory
The SM8954A 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.
02FF
Expanded 768 bytes RAM
(Accessed by direct external
addressing mode, by instruction
FF
Higher 128 bytes (Access by
indirect addressing mode only)
80
7F
Lower 128 bytes (Accessed by
direct & indirect
00
addressing mode)
SFR (Accessed by direct
addressing mode only)
MOVX, or by Bank mapping
direct addressing mode)
FF
( OME = 1 )
80
0000
On-chip expanded RAM address structure.
Specifications subject to change without notice,contact your sales representatives for the most recent information.
6/25 Ver 1.0 SM8954A 10/03
SyncMOS Technologies Inc. SM8954A
October 2003
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:
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.
That means using direct addressing mode can access all the 1KB on-chip RAM. Please see next page for the mapping
mode table.
Specifications subject to change without notice,contact your sales representatives for the most recent information.
7/25 Ver 1.0 SM8954A 10/03
SyncMOS Technologies Inc. SM8954A
October 2003
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“
Note
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).
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
Specifications subject to change without notice,contact your sales representatives for the most recent information.
8/25 Ver 1.0 SM8954A 10/03
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.