21-S3-C826A/P826A-112002
USER'S MANUAL
S3C826A/P826A
8-Bit CMOS
Microcontroller
Revision 1
S3C826A/P826A
PRODUCT OVERVIEW
1
PRODUCT OVERVIEW
S3C8-SERIES MICROCONTROLLERS
Samsung's S3C8 series of 8-bit single-chip CMOS microcontrollers offers a fast and efficient CPU, a wide range
of integrated peripherals, and various mask-programmable ROM sizes. Among the major CPU features are:
— Efficient register-oriented architecture
— Selectable CPU clock sources
— Idle and Stop power-down mode release by interrupt
— Built-in basic timer with watchdog function
A sophisticated interrupt structure recognizes up to eight interrupt levels. Each level can have one or more
interrupt sources and vectors. Fast interrupt processing (within a minimum of four CPU clocks) can be assigned
to specific interrupt levels.
S3C826A MICROCONTROLLER
The S3C826A single-chip microcontroller are fabricated using the highly advanced CMOS process. Its design is
based on the powerful SAM88RC CPU core. Stop and idle (power-down) modes were implemented to reduce
power consumption.
The S3C826A is a microcontroller with a 48K-byte mask-programmable ROM embedded.
The S3P826A is a microcontroller with a 48K-byte one-time-programmable ROM embedded.
Using the SAM88RC modular design approach, the following peripherals were integrated with the SAM88RC
CPU core:
— Large number of programmable I/O ports (Total 128 pins)
— Synchronous SIO module
— Three 8-bit timer/counters
— One 16-bit timer/counter
— LCD controller/driver
— A/D converter with 4 selectable input pins
OTP
The S3C826A microcontroller is also available in OTP (One Time Programmable) version, S3P826A.
The S3P826A microcontroller has an on-chip 48K-byte one-time-programmable EPROM instead of masked
ROM. The S3P826A is comparable to S3C826A, both in function and in pin configuration.
1-1
PRODUCT OVERVIEW
S3C826A/P826A
FEATURES
CPU
•
SAM88RC CPU core
Watch Timer
•
•
Interval Time: 3.19ms, 0.25s, 0.5s, 1.0s at
32.768 kHz
0.5/1/2/4 kHz buzzer output selectable
Memory
•
•
2064-byte internal register file (including LCD
display RAM)
48K-byte internal program memory area
Analog to Digital Converter
•
•
•
4-channel analog input
8-bit conversion resolution
25µs conversion time
Instruction Set
•
•
78 instructions
Idle and Stop instructions
Serial I/O Interface
•
•
•
8-bit transmit/receive mode
8-bit receive mode
Selectable baud rate or external clock source
128 I/O Pins
•
•
32 normal I/O pins
96 pins sharing with LCD signals
LCD Controller/Driver
Interrupts
•
•
8 interrupt levels and 21 internal sources
Fast interrupt processing feature
•
•
•
80 segments and 16 common terminals
8, 12, and 16 common selectable
Internal resistor circuit for LCD bias
8-Bit Basic Timer
•
•
Watchdog timer function
4 kinds of clock source
Two Power-Down Modes
•
•
Idle mode: only CPU clock stops
Stop mode: system clock and CPU clock stop
Timer/Counter 0
•
•
•
Programmable 8-bit internal timer
External event counter function
PWM and capture function
Oscillation Source
•
•
Crystal, ceramic, or RC for main clock
Crystal for sub clock (32.768 kHz)
Instruction Execution Time
Timer/Counter 1
•
•
•
One 16-bit timer/counter mode
Two 8-bit timer/counters A/B mode
External event counter function
•
•
400 ns at fx=10 MHz (minimum, main clock)
122µs at fxt=32.768 kHz (sub clock)
–25
°C
to +85
°C
Operating Temperature Range
•
Timer/Counter 2
•
•
Programmable 8-bit interval timer
External event counter function
Operating Voltage Range
•
•
•
•
2.0 V to 5.5 V at 4 MHz (main clock)
2.4 V to 5.5 V at 8 MHz (main clock)
2.7 V to 5.5 V at 10 MHz (main clock)
2.0 V to 5.5 V at 32.768 kHz (sub clock)
Timer/Counter 3
•
•
•
Programmable 8-bit interval timer
External event counter function
PWM and capture function
Package Type
•
Pellet only
1-2
S3C826A/P826A
PRODUCT OVERVIEW
BLOCK DIAGRAM
RESET
X
IN
X
OUT
XT
IN
XT
OUT
P2.0/T0CLK
P2.1/T0CAP
P2.1/T0OUT/T0PWM
P2.2/T1CLK
P2.3/TAOUT
P2.4/TBOUT
P3.0/T2CLK
P3.1/T2OUT
P3.2/T3CLK
P3.3/T3CAP
P3.3/T3OUT/T3PWM
P1.4/SCK
P1.6/SI
P1.5/SO
Watchdog
Timer
P0.0-P0.7/
INT0-INT7
P3.4-P3.7/
INT8-INT11
P0.0-P0.7/
INT0-INT7
P1.0/AD0
P1.1/AD1
P1.2/AD2
P1.3/AD3
P1.4/SCK
P1.5/SO
P1.6/SI
P1.7/BUZ
P2.0/T0CLK
P2.1/T0OUT/
T0PWM/T0CAP
P2.2/T1CLK
P2.3/TAOUT
P2.4/TBOUT
P2.5
P2.6
P2.7
P3.0/T2CLK
P3.1/T2OUT
P3.2/T3CLK
P3.3/T3OUT/
T3PWM/T3CAP
P3.4-P3.7/INT8-INT11
P4.0-P4.7/
SEG79-SEG72
P5.0-P5.7/
SEG71-SEG64
P6.0-P6.7/
SEG63-SEG56
P7.0-P7.7/
SEG55-SEG48
P8.0-P8.7/
SEG47-SEG40
P9.0-P9.7/
SEG39-SEG32
P10.0-P10.7/
SEG31-SEG24
P11.0-P11.7/
SEG23-SEG16
P12.0-P12.7/
SEG15-SEG8
P13.0-P13.7/
SEG7-SEG0
P14.0-P14.7/COM15-COM8/
SEG80-SEG87
Main OSC
Port 0
Sub OSC
Port 1
8-Bit
Timer/Counter0
Timer 1
I/O Port and Interrupt Control
8-bit Timer A
8-bit Timer B
Port 2
8-Bit
Timer/Counter2
Port 3
8-Bit
Timer/Counter3
SAM88RC Core
SIO
Port 4
Port 5
Port 6
Basic Timer
Port 7
Port 8
P1.7/BUZ
Watch Timer
Port 9
AVDD
P1.0-P1.3/AD0-AD3
8-Bit ADC
Port 10
Port 11
Port 12
Port 13
Port 14
Port 15
P15.7-P15.0/
COM0-COM7
P14.7-P14.0/
COM8-COM15/
SEG87-SEG80
P13.7-P4.0/
SEG0-SEG79
V
LC1
-V
LC5
LCD
Driver/
Controller
48K-byte ROM
2064-byte
Register File
P15.0-P15.7/
COM7-COM0
TEST
V
DD1
/V
DD2
V
SS1
/V
SS2
Figure 1-1. Block Diagram
1-3
PRODUCT OVERVIEW
S3C826A/P826A
PIN ASSIGNMENT
COM0/P15.7
P2.0/T0CLK
P2.1/T0OUT/T0PWM/T0CAP
P2.2/T1CLK
P2.3/TAOUT
P2.4/TBOUT
P2.5
P2.6
P2.7
P3.0/T2CLK
P3.1/T2OUT
P3.2/T3CLK
P3.3/T3OUT/T3PWM/T3CAP
INT8/P3.4
INT9/P3.5
INT10/P3.6
INT11/P3.7
V
DD1
V
SS1
X
OUT
X
IN
TEST
XT
IN
XT
OUT
RESET
P0.0/INT0
P0.1/INT1
P0.2/INT2
P0.3/INT3
P0.4/INT4
P0.5/INT5
P0.6/INT6
P0.7/INT7
P1.0/AD0
P1.1/AD1
P1.2/AD2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
144
143
142
141
140
139
138
137
136
135
134
133
132
131
130
129
128
127
126
125
124
123
122
121
120
119
118
117
116
115
114
113
112
111
110
109
COM1/P15.6
COM2/P15.5
COM3/P15.4
COM4/P15.3
COM5/P15.2
COM6/P15.1
COM7/P15.0
SEG87/COM8/P14.7
SEG86/COM9/P14.6
SEG85/COM10/P14.5
SEG84/COM11/P14.4
SEG83/COM12/P14.3
SEG82/COM13/P14.2
SEG81/COM14/P14.1
SEG80/COM15/P14.0
SEG0/P13.7
SEG1/P13.6
SEG2/P13.5
SEG3/P13.4
SEG4/P13.3
SEG5/P13.2
SEG6/P13.1
SEG7/P13.0
SEG8/P12.7
SEG9/P12.6
SEG10/P12.5
SEG11/P12.4
SEG12/P12.3
SEG13/P12.2
SEG14/P12.1
SEG15/P12.0
SEG16/P11.7
SEG17/P11.6
SEG18/P11.5
SEG19/P11.4
SEG20/P11.3
S3C826A
(144-QFP-2828-AN)
108
107
106
105
104
103
102
101
100
99
98
97
96
95
94
93
92
91
90
89
88
87
86
85
84
83
82
81
80
79
78
77
76
75
74
73
SEG21/P11.2
SEG22/P11.1
SEG23/P11.0
SEG24/P10.7
SEG25/P10.6
SEG26/P10.5
SEG27/P10.4
SEG28/P10.3
SEG29/P10.2
SEG30/P10.1
SEG31/P10.0
SEG32/P9.7
SEG33/P9.6
SEG34/P9.5
SEG35/P9.4
SEG36/P9.3
SEG37/P9.2
SEG38/P9.1
V
DD2
V
SS2
SEG39/P9.0
SEG40/P8.7
SEG41/P8.6
SEG42/P8.5
SEG43/P8.4
SEG44/P8.3
SEG45/P8.2
SEG46/P8.1
SEG47/P8.0
SEG48/P7.7
SEG49/P7.6
SEG50/P7.5
SEG51/P7.4
SEG52/P7.3
SEG53/P7.2
SEG54/P7.1
Figure 1-2. S3C826A Pin Assignments (144-QFP-2828-AN)
1-4
P1.3/AD3
P1.4/SCK
P1.5/SO
P1.6/SI
P1.7/BUZ
V
LC1
V
LC2
V
LC3
V
LC4
V
LC5
AVDD
SEG79/P4.0
SEG78/P4.1
SEG77/P4.2
SEG76/P4.3
SEG75/P4.4
SEG74/P4.5
SEG73/P4.6
SEG72/P4.7
SEG71/P5.0
SEG70/P5.1
SEG69/P5.2
SEG68/P5.3
SEG67/P5.4
SEG66/P5.5
SEG65/P5.6
SEG64/P5.7
SEG63/P6.0
SEG62/P6.1
SEG61/P6.2
SEG60/P6.3
SEG59/P6.4
SEG58/P6.5
SEG57/P6.6
SEG56/P6.7
SEG55/P7.0
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
NOTE:
The package of S3C826A is only for engineer sample.