SyncMOS Technologies Inc.
January 2003
Preliminary
SM79108
8 - Bit Micro-controller
with 8KB flash & 256 Bytes RAM embedded
Product List
SM79108L25, 25 MHz 8KB internal memory MCU
SM79108C40, 40 MHz 8KB internal memory MCU
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
8 KB internal flash memory
256 bytes on-chip data RAM
Three 16 bit timers/counters
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
A14 x 4 LCD driver (P0, P2, ALE, PSEN)
1 Channel SPWM (P1.2)
1 Channel PWM (P1.5)
Full duplex serial channel
Bit operation instruction
Industrail 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
One watch dog timer (WDT)
Low EMI (inhibit ALE)
Description
The SM79108 series product is an 8 - bit single chip micro
controller with 8 KB flash & 256 bytes RAM embedded. It
has 4-channel, 8-bit ADC function build-in, 1-channel
SPWM and 1-channel PWM build-in and A14(segment) x
4(common) LCD driver. It provides hardware features and
a powerful instruction set necessary to make it a versatile
and cost effective controller for those applications 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 64K
byte flash memory for program and/or for data.
To program the flash block, a commercial programmer
is capable to do it.
Ordering Information
yywwv: production date code identifier
SM79108ihhk
yy: year, ww: weak, v: version
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}
Pin/Pad
Configuration
page 2
page 2
page 2
Postfix
P
J
Q
Package
40L PDIP
44L PLCC
44L QFP
Dimension
page 22
page 23
page 24
Taiwan
4F, No. 1 Creation Road 1,
Science-based Industrial Park,
Hsinchu, Taiwan 30077
TEL: 886-3-578-3344 #2667
886-3-579-2987
FAX: 886-3-5792960
886-3-5780493
Specifications subject to change without notice,contact your sales representatives for the most recent information.
1/26
Preliminary
Ver 1.0
SM79108 01/03
SyncMOS Technologies Inc.
January 2003
Preliminary
SM79108
Pin Configurations
P0.4/AD4/SEG9
P0.5/AD5/SEG8
P0.6/AD6/SEG7
P0.7/AD7/SEG6
#EA
P2.7/A15/SEG3
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
VDD
P0.0/AD0/SEG13
P0.1/AD1/SEG12
P0.2/AD2/SEG11
P0.3/AD3/SEG10
P0.4/AD4/SEG9
P0.5/AD5/SEG8
P0.6/AD6/SEG7
P0.7/AD7/SEG6
#EA
ALE/SEG5
#PSEN/SEG4
P2.7/A15/SEG3
P2.6/A14/SEG2
P2.5/A13/SEG1
P2.4/A12/SEG0
P2.3/A11/COM3
P2.2/A10/COM2
P2.1/A9/COM1
P2.0/A8/COM0
SEG10/AD3/P0.3
SEG11/AD3/P0.2
SEG12/AD3/P0.1
SEG13/AD3/P0.0
VDD
P4.2
T2/P1.0
T2EX/P1.1
SPWM/P1.2
P1.3
P1.4
T2EX/P1.1
SPWM/P1.2
P1.3
P1.4
PWM/P1.5
P1.6
P1.7
RES
RXD/P3.0
TXD/P3.1
#INT/P3.2
#INT1/P3.3
ADC0/T0/P3.4
ADC1/T1/P3.5
ADC2/#WR/P3.6
ADC3/#RD/P3.7
XTAL2
XTAL1
VSS
2
3
4
5
6
7
34
35
36
37
38
39
40
41
42
43
44
33 32 31 30 29 28 27 26 25 24 23
22
21
20
19
18
17
16
15
14
13
12
1
2
3
4
5
6
7
8
9
10 11
P4.1
ALE/SEG5
T2/P1.0
1
P2.6/A14/SEG2
P2.5/A13/SEG1
#PSEN/SEG4
P2.4/A12/SEG0
P2.3/A11/COM3
P2.2A10/COM2
P2.1/A9/COM1
P2.0A8/COM0
P4.0
VSS
XTAL1
XTAL2
P3.7/#RD/ADC3
P3.6/#WR/ADC2
8
9
10
11
SM79108 jhhQ
44L QFP
(Top View)
SM79108 ihhP
40L PDIP
(Top View)
P1.3
P1.2/SPWM
5
12
13
14
15
16
17
18
19
20
PWM/P1.5
P1.6
P1.7
RES
RXD/P3.0
TXD/P3.1
#INT1/P3.3
ADC0/T0/P3.4
#INT0/P3.2
P1.1/T2EX
P1.0/T2
P4.2
VDD
P0.0/AD0/SEG13
P0.1/AD1/SEG12
P1.4
6
4
3
2
1 44 43 42 41 40
P0.2/AD2/SEG11
P0.3/AD3/SEG10
PWM/P1.5
P1.6
P1.7
RES
RXD/P3.0
P4.3
TXD/P3.1
#INT0/P3.2
#INT1/P3.3
ADC0/T0/P3.4
ADC1/T1/P3.5
7
8
9
10
11
12
13
39
38
37
P0.4/AD4/SEG9
P0.5/AD5/SEG8
P0.6/AD6/SEG7
P0.7/AD7/SEG6
#EA
P4.1
ALE/SEG5
#PSEN/SEG4
P2.7/A15/SEG3
P2.6/A14/SEG2
P2.5/A13/SEG1
SM79108 jhhJ
44L PLCC
(Top View)
36
35
34
33
32
31
30
29
14
15
16
17
18 19 20 21 22 23 24 25 26 27 28
ADC2/#WR/P3.6
ADC3/#RD/P3.7
XTAL2
XTAL1
VSS
P4.0
COM2/A10/P2.2
Specifications subject to change without notice,contact your sales representatives for the most recent information.
COM3/A11/P2.3
SEG0/A12/P2.4
COM0/A8/P2.0
COM1/A9/P2.1
2/26
Preliminary
Ver 1.0
ADC1/T1/P3.5
P4.3
SM79108 01/03
SyncMOS Technologies Inc.
January 2003
Block Diagram
Stack
Pointer
Preliminary
SM79108
Timer 2
Timer 1
Timer 0
Decoder &
Register
256
bytes RAM
WDT
RES
Reset
Circuit
to pertinent blocks
Acc
to whole chip
Buffer2
Buffer1
Buffer
DPTR
Vdd
Vss
Power
Circuit
PC
Incrementer
Interrupt
Circuit
to pertinent blocks
ALU
Program
Counter
XTAL2
XTAL1
#EA
ALE/SEG5
#PSENSEG4
Timing
Generator
to whole system
PSW
Register
Instruction
Register
8K
bytes
ADC
Port 0
Latch
SPWM
PWM
LCD
Driver
(14 x 4)
Port 1
Latch
Port 2
Latch
Port 3
Latch
Flash
Memory
Port 0
Driver & Mux
8
Port 2
Port 3
Driver & Mux Driver & Mux Driver & Mux
8
8
8
Port 1
Specifications subject to change without notice,contact your sales representatives for the most recent information.
3/26
Preliminary
Ver 1.0
SM79108 01/03
SyncMOS Technologies Inc.
January 2003
Pin Descriptions
40L
44L
44L
PDIP QFP PLCC
Symbol
Pin# Pin# Pin#
1
40
2
P1.0/T2
2
41
3
P1.1/T2EX
3
42
4
P1.2/SPWM
4
43
5
P1.3
5
44
6
P1.4
6
1
7
P1.5/PWM
7
2
8
P1.6
8
3
9
P1.7
9
4
10
RES
10
5
11
P3.0/RXD
11
7
13
P3.1/TXD
12
8
14
P3.2/#INT0
13
9
15
P3.3/#INT1
14
10
16
P3.4/T0/ADC0
15
11
17
P3.5/T1/ADC1
16
12
18
P3.6/#WR/ADC2
17
13
19
P3.7/#RD/ADC3
18
14
20
XTAL2
19
15
21
XTAL1
20
16
22
VSS
21
18
24
P2.0/A8/COM0
22
19
25
P2.1/A9/COM1
23
20
26
P2.2/A10/COM2
24
21
27
P2.3/A11/COM3
25
22
28
P2.4/A12/SEG0
26
23
29
P2.5/SEG1
27
24
30
P2.6/SEG2
28
25
31
P2.7/SEG3
29
26
32
#PSEN/SEG4
30
27
33
ALE/SEG5
31
29
35
#EA
32
30
36
P0.7/AD7/SEG6
33
31
37
P0.6/AD6/SEG7
34
32
38
P0.5/AD5/SEG8
35
33
39
P0.4/AD4/SEG9
36
34
40
P0.3/AD3/SEG10
37
35
41
P0.2/AD2/SEG11
38
36
42
P0.1/AD1/SEG12
39
37
43
P0.0/AD0/SEG13
40
38
44
VDD
17
23 P4.0
28
34 P4.1
39
1 P4.2
6
12 P4.3
Active
I/O
(GPIO)
i/o
i/o
i/o
i/o
i/o
i/o
i/o
i/o
i
i/o
i/o
i/o
i/o
i/o
i/o
i/o
i/o
o
i
i/o
i/o
i/o
i/o
i/o
i/o
i/o
i/o
o
o
i
i/o
i/o
i/o
i/o
i/o
i/o
i/o
i/o
i
i/o
i/o
i/o
i/o
Names
Preliminary
SM79108
H
-/L
-/L
L
bit 0 of port 1 & timer 2 clock out
bit 1 of port 1 & timer 2 control
bit 2 of port 1 & SPWM channel
bit 3 of port 1
bit 4 of port 1
bit 5 of port 1 & PWM channel
bit 6 of port 1
bit 7 of port 1
Reset
bit 0 of port 3 & receive data
bit 1 of port 3 & transmit data
bit 2 of port 3 & low true interrupt 0
bit 3 of port 3 & low true interrupt 1
bit 4 of port 3 & ADC channel 0 & Timer 0
bit 5 of port 3 & ADC channel 1 &Timer 1
bit 6 of port 3 & ADC channel 2 & external memory write
bit 7 of port 3 & ADC channel 3 & external memory read
Crystal out
Crystal in
Sink Voltage, Ground
bit 0 of port 2 & bit 8 of external memory address & LCCD common 0 output
bit 1 of port 2 & bit 9 of external memory address & LCCD common 1 output
bit 2 of port 2 & bit 10 of external memory address & LCCD common 2 output
bit 3 of port 2 & bit 11 of external memory address & LCCD common 3 output
bit 4 of port 2 & bit 12 of external memory address & LCCD seg 0 output
bit 5 of port 2 & LCCD seg 1 output
bit 6 of port 2 & LCCD seg 2 output
bit 7 of port 2 & LCCD seg 3 output
program storage enable & LCCD seg 4 output
address latch enable & LCCD seg 5 output
external access
bit 7 of port 0 & data/address bit 7 of external memory & LCCD seg 6 output
bit 6 of port 0 & data/address bit 6 of external memory & LCCD seg7 output
bit 5 of port 0 & data/address bit 5 of external memory & LCCD seg 8 output
bit 4 of port 0 & data/address bit 4 of external memory & LCCD seg 9 output
bit 3 of port 0 & data/address bit 3 of external memory & LCCD seg 10 output
bit 2 of port 0 & data/address bit 2 of external memory & LCCD seg 11 output
bit 1 of port 0 & data/address bit 1 of external memory & LCCD seg 12 output
bit 0 of port 0 & data/address bit 0 of external memory & LCCD seg 13 output
Drive Voltage, Vcc
bit 0 of Port 4
bit 1 of Port 4
bit 2 of Port 4
bit 3 of Port 4
Specifications subject to change without notice,contact your sales representatives for the most recent information.
4/26
Preliminary
Ver 1.0
SM79108 01/03
SFR Memory MAP
SyncMOS Technologies Inc.
January 2003
Preliminary
SM79108
SFR Memory MAP
0F8H
0F0H
0E8H
0E0H
0D8H
0D0H
0C8H
0C0H
0B8H
0B0H
0A8H
0A0H
98H
90H
88H
80H
B
ACC
P4
PSW
T2CON
IP
P3
IE
P2
SCON
P1
TCON
P0
TMOD
SP
TL0
DPL
TL1
DPH
TH0
(Reserved)
TH1
ADSCR
SBUF
P0CON
IE1
IFR
SPWMC
P1CON
SPWMD0
P2CON
P3CON
WDTC
WDTKEY
ADCD
PCON
T2MOD
IP1
PWMD0
RCAP2L
PWMC0
RCAP2H
TL2
TH2
SCONF
LCDB0
LCDB1
LCDB2
LCDB3
LCDB4
LCDB5
LCDB6
LCDCON
0FFH
0F7H
0EFH
0E7H
0DFH
0D7H
0CFH
0C7H
0BFH
0B7H
0AFH
0A7H
9FH
97H
8FH
87H
Note: The text of SFRs with bold type characters are Extension Special Function Registers for SM79108
Addr
8EH
8FH
97H
9AH
9BH
9CH
9DH
9FH
0A3H
0A4H
0A9H
0AAH
0B3H
0B9H
0BFH
0D3H
0D8H
0DFH
0E1H
SFR
ADSCR
ADCD
WDTKEY
P0CON
P1CON
P2CON
P3CON
WDTC
SPWMD0
IE1
IFR
PWMD0
IP1
SCONF
PWMC0
P4
LCDB0
Reset
0000_00**
00H
00H
00H
**0*_*0**
00H
00H
000*_*000
00H
****_0***
****_0***
00H
****_0***
0***_***0
****_*000
****_1111
Lout_en
SEG0
Lcd_en
SEG0
SEG
SEG0
SEG0
SEG1
00H
P4.3
WDR
PWMD07
PWMD06
PWMD05
PWMD04
SEG3
ADCE3
WDTE
SEG2
ADCE2
R
7
COM
AD7
SEG6
6
CON
AD6
SEG7
5
ADCSS1
AD5
SEG8
PWME0
SEG1
ADCE1
CLEAR
SEG0
ADCE0
PS2
BRM02
PS1
SPFS1
SPWMD04 SPWMD03 SPWMD02 SPWMD01 SPWMD00
EADC
ADCIF
PWMD03
PADC
Reserved
PBS
P4.2
LS2
SEG1
PFS1
P4.1
LS1
SEG1
ALEI
PFS0
P4.1
LS0
SEG1
PWMD02
PWMD01
PWMD00
BRM01
PS0
SPFS0
BRM00
COME3
4
ADCSS0
AD4
SEG9
3
CH1
AD3
SEG10
2
CH0
AD2
SEG11
SPWME0
COME2
COME1
COME0
1
Reserved
AD1
SGE12
0
Reserved
AD0
SEG13
WDTKEY7 WDTKEY6 WDTKEY5 WDTKEY4 WDTKEY3 WDTKEY2 WDTKEY1 WDTKEY0
SPWMC0
****_**00
LCDCON
000*_*000
Specifications subject to change without notice,contact your sales representatives for the most recent information.
5/26
Preliminary
Ver 1.0
SM79108 01/03