The S3C7031/7032 single-chip CMOS microcontroller has been designed for high performance using Samsung's
newest 4-bit CPU core.
With comparator inputs, high-current LED direct-drive pins, serial I/O interface, and a versatile 8-bit
timer/counter, the S3C7031/7032 offers an excellent design solution for a wide range of applications such as
mouse controllers, subsystem controllers, and toys.
Up to 15 pins of the 20-pin DIP or 20-pin SOP package can be dedicated to I/O. Pull-up resistors are assignable
to all of the pins by software. Four vectored interrupts provide fast response to internal and external events.
In addition, the S3C7031/7032's advanced CMOS technology provides for very low power consumption and a
wide operating voltage range.
DEVELOPMENT SUPPORT
The Samsung Microcontroller Development System, SMDS, provides you with a complete PC-based
development environment for KS57-series microcontrollers that is powerful, reliable, and portable. In addition to
its easy to use window-oriented program development structure, the SMDS toolset includes versatile debugging,
trace, instruction timing, and performance measurement applications.
The Samsung Generalized Assembler (SAMA) has been designed specifically for the SMDS environment and
accepts assembly language sources in a variety of microprocessor formats.
SAMA generates industry-standard object files that also contain program control data for SMDS compatibility.
1-1
Page 2
PRODUCT OVERVIEWS3C7031/7032
FEATURES
Memory
— 1024 × 8-bit program memory (S3C7031)
(ROM)
— 2048 × 8-bit program memory (S3C7032)
(ROM)
— 128 × 4-bit data memory (S3C7031) (RAM)
— 256 × 4-bit data memory (S3C7032) (RAM)
I/O Pins
— Up to 15 pins for 20-DIP and 20-SOP package
Comparator Inputs
— 4-channel mode
Internal reference: 4-bit resolution
— 3-channel mode
External reference
8-Bit Basic Timer
— Programmable interval timer
8-Bit Serial I/O Interface
— 8-bit transmit/receive mode
— 8-bit receive-only mode
— LSB-first or MSB-first transmission selectable
— Internal or external clock source
Interrupts
— One external interrupt vector
— Three internal interrupt vectors
— Two quasi-interrupts
Memory-Mapped I/O Structure
Two Power-Down Modes
— Idle mode: Only the CPU clock stops
— Stop mode: Main system clock stops
On-Chip Crystal, Ceramic, Or RC Oscillator
— Crystal/ceramic: 4.19 MHz (typical)
— RC: 1 MHz (typical)
— CPU clock divider circuit (by 4, 8, or 64)
8-Bit Timer/Counter
— Programmable interval timer
— External event counter function
— Timer clock output to TIO pin
Watch Timer
— Time interval generation: 0.5 s, 3.9 ms at
4.19 MHz
— Four frequency outputs to BUZ pin
Bit Sequential Carrier
— 16-bit serial data transfer in arbitrary format
Frequency Outputs
— Eight frequency outputs to the CLO pin
Instruction Execution Times
— 0.95, 1.91, 15.3 µs at 4.19 MHz (5 V),
4 µs at 1 MHz (2.7 V)
Operating Temperature:
— – 40°C to 85°C
Operating Voltage Range:
— 2.7 V to 6.0 V
Package Type:
— 20-DIP, 20-SOP
1-2
Page 3
S3C7031/7032PRODUCT OVERVIEW
BLOCK DIAGRAM
X
RESET
X
OUT
IN
P2.0 - P2.3
P3.0/SCK
P3.1/SO
P3.2/SI
P3.3/BUZ
Basic
Timer
Watch
Timer
I/O Port 2
I/O Port 3
Serial I/O Port
Interrupt
Control
Block
Internal
Interrupts
Instruction Decoder
Arithmetic
Logic Unit
Data
Memory
NOTES:
1. Program Memory is 1-KByte (S3C7031) and 2-KByte (S3C7032).
2. Data Memory is 128 x 4bit (S3C7031) and 256 x 4bit (S3C7032).
1-bit or 3-bit read/write and test is possible.
Pull-up resistors are individually assignable to input
pins by software and are automatically disabled for
output pins.
Pins are individually configurable as input or output.
I/OSame as port 0 except that port 1 is a 4-bit I/O port.4
I/O4-bit I/O port. 1-bit, 4-bit or 8-bit read/write and test is
possible. Pins are individually configurable as input
or output.
Pull-up resistors are individually assignable to input
pins by software and are automatically disabled for
12-15
16
17
18
19
–-
SCK
SO
SI
BUZ
output pins. Ports are software configurable as
n-channel open-drain outputs or push-pull output by
software.
Ports 2 and 3 can be paired to enable 8-bit data
transfer.
CLOI/OEight frequency outputs1P0.0
TIOI/OExternal clock input or timer clock output2P0.1
INT1I/OExternal interrupts with rising or falling edge
3P0.2
detection
KS0-KS3I/OQuasi-interrupts with falling edge detection4-7P1.0-P1.3
CIN0-CIN3I/O4-channel comparator input.
SOI/OSerial data output17P3.1
SII/OSerial data input18P3.2
BUZI/O2 kHz, 4 kHz, 8 kHz, or 16 kHz frequency output at
19P3.3
4.19 MHz for buzzer sound
XIN, X
RESET
V
DD
V
SS
OUT
–-Crystal, ceramic, or RC signal for system clock9, 8–-
IReset signal11––-Power supply20––-Ground10–-
Table 1-2. Overview of S3C7031/7032 Pin Data
Pin NumbersPin NamesShare PinsI/O TypeReset ValueCircuit Type
1-3P0.0-P0.2CLO, TIO, INT1I/OInput2
4-7P1.0-P1.3KS0/CIN0-KS3/CIN3I/OInput4
12-5P2.0-P2.3–I/OInput3
16-19P3.0-P3.3
11
20, 10
9, 8
RESET
VDD, V
XIN, X
SS
OUT
SCK, SO, SI, BUZ
–-I–-1
–-–-–-––-–-–-–-
I/OInput3
1-5
Page 6
PRODUCT OVERVIEWS3C7031/7032
PIN CIRCUIT DIAGRAMS
In
Schmitt Trigger
Figure 1-3. Pin Circuit Type 1
VDD
Data
Output DIsable
Pull-up
Registor
Pull-up Enable
VDD
VSS
Schmit Trigger
Figure 1-4. Pin Circuit Type 2
Typical 50 KΩ
(VDD = 5V)
I/O
1-6
Page 7
S3C7031/7032PRODUCT OVERVIEW
VDD
Data
Open-drain
Output Disable
Pull-up
Registor
Pull-up Enable
VDD
Schmit Trigger
Figure 1-5. Pin Circuit Type 3
Typical 50 KΩ
(VDD =5V)
I/O
VSS
1-7
Page 8
PRODUCT OVERVIEWS3C7031/7032
VDD
Output Disable
(Digital)
Data
Open-drain
In
Intk
(Quasi)
In
Pull-up Enable
Schmit Trigger
REF
(P1.3 Only)
+
Pull-up
Registor
VDD
VSS
Typical 50 KΩ
(VDD =5V)
P-CH
I/O
(Analog)Comparator
Digital or Analog
Selectable by Software
Figure 1-6. Pin Circuit Type 4
REF
1-8
Page 9
S3C7031/7032ELECTRICAL DATA
14ELECTRICAL DATA
OVERVIEW
In this section, information on S3C7031/7032 electrical characteristics is presented as tables and graphics. The
information is arranged in the following order:
Standard Electrical Characteristics
— Absolute maximum ratings
— D.C. electrical characteristics
— Oscillators characteristics
— I/O capacitance
— Comparator electrical characteristics
— A.C. electrical characteristics
— Operating voltage range
Oscillation Characteristics
— System clock oscillator frequencies and stabilization time
Stop Mode Characteristics and Timing Waveforms
— RAM data retention supply voltage in stop mode
— Stop mode release timing when initiated by RESET
— Stop mode release timing when initiated by an interrupt request
14-1
Page 10
ELECTRICAL DATAS3C7031/7032
Miscellaneous Timing Waveforms
— Clock timing measurement at X
IN
— TIO timing
— Input timing for RESET
— Input timing for external interrupts and quasi-interrupts
— Serial data transfer timing
Characteristic Curves
— IDD vs Frequency
— IDD vs V
DD
— IOL vs VOL (P0.0)
— IOL vs VOL (P1.1)
— IOL vs VOL (P2.0)
— IOH vs VOH (P0.0)
— IOH vs VOH (P1.1)
14-2
Page 11
S3C7031/7032ELECTRICAL DATA
Table 14-1. Absolute Maximum Ratings
(TA = 25 °C)
ParameterSymbolConditionsRatingUnits
Supply Voltage
Input Voltage
Output Voltage
Output Current High
1.D.C. electrical values for Supply Current (IDD1 to IDD3) do not include current drawn through internal pull-up resistors.
2.For high-speed controller operation, set the PCON register to 0011B.
3.For low-speed controller operation, set the PCON register to 0000B.
14-4
Page 13
S3C7031/7032ELECTRICAL DATA
Table 14-3. Oscillators Characteristics
(T
= - 40 °C to + 85 °C, VDD = 5 V)
A
OscillatorClock
Configuration
Ceramic
Oscillator
XINXOUT
C1
Crystal
Oscillator
XINXOUT
C1
External
Clock
XINXOUT
Oscillation frequency
C2
Stabilization time
Oscillation frequency
C2
Stabilization time
X
input frequency
IN
ParameterTest ConditionMinTypMaxUnits
(2)
(1)
After VDD reaches
–0.4–4.5MHz
––4ms
the minimum level
of its variable range
(2)
(1)
VDD = 2.7 V to 4.5 V
VDD = 4.5 V to 6.0 V
(1)
–0.44.194.5MHz
––30ms
––10
–0.4–4.5MHz
XIN input high and low
–111–1250ns
level width (tXH, tXL)
RC
Oscillator
NOTES:
1.Oscillation frequency and XIN input frequency data are for oscillator characteristics only.
2.Stabilization time is the interval required for oscillating stabilization after a power-on occurs, or when stop mode is
terminated.
XINXOUT
R
Frequency
VDD = 5 V
VDD = 3 V
0.612.3MHz
0.40.81.5
14-5
Page 14
ELECTRICAL DATAS3C7031/7032
Table 14-4. Input/Output Capacitance
(TA = 25 °C, V
DD
=0 V )
ParameterSymbolConditionMinTypMaxUnits
C
C
OUT
IN
f = 1 MHz; Unmeasured pins
are returned to V
SS
––15pF
––15pF
Input
Capacitance
Output
Capacitance
I/O Capacitance
C
IO
––15pF
Table 14-5. Comparator Electrical Characteristics
(T
= - 40 °C to + 85 °C, VDD = 4.0 V to 6.0 V)
A
ParameterSymbolConditionMinTypMaxUnits
Input Voltage Range––0–
Reference Voltage
V
REF
–0–
V
DD
V
DD
Range
V
Input
Voltage
Internal
Reference
CIN
1
–––- 150mV
Accuracy
V
External
CIN
2
–––- 50
Reference
I
Input Leakage Current
CIN
I
,
REF
–- 3–3
V
V
µA
14-6
Page 15
S3C7031/7032ELECTRICAL DATA
Table 14-6. A.C. Electrical Characteristics
(T
= - 40 °C to + 85 °C, V
A
= 2.7 V to 6.0 V)
DD
ParameterSymbolConditionsMinTypMaxUnits
Instruction Cycle Time
t
CY
V
= 4.5 V to 6.0 V
DD
VDD = 2.7 V to 4.5 V
0.95–64µs
3.8
TIO Input Frequency
TIO Input High, Low
Width
SCK Cycle Time
SCK High, Low Width
SI Setup Time to
SCK High
SI Hold Time to SCK
High
Output Delay for SCK
to SO
f
t
TIH
t
KCY
tKH, t
t
SIK
t
KSI
t
KSO
TI
, t
VDD = 4.5 V to 6.0 V
0–1MHz
VDD = 2.7 V to 4.5 V
VDD = 4.5 V to 6.0 V
TIL
VDD = 2.7 V to 4.5 V
VDD = 4.5 V to 6.0 V; Input
VDD = 4.5 V to 6.0 V; Output
VDD = 2.7 V to 4.5 V; Input
VDD = 2.7 V to 4.5 V; Output
VDD = 4.5 V to 6.0 V; Input
KL
VDD = 4.5 V to 6.0 V; Outputt
VDD = 2.7 V to 4.5 V; Input
VDD = 2.7 V to 4.5 V; Output
0.48––µs
1.8
800––ns
950
3200
3800
400––ns
/2-50
KCY
1600
t
/2-50
KCY
Input100––ns
Output150
Input400––ns
Output400
VDD = 4.5 V to 6.0 V; Input
––300ns
VDD = 4.5 V to 6.0 V; Output
275kHz
250
Interrupt Input
High, Low Width
RESET Input Low
Width
t
INTH
t
RSL
, t
V
= 2.7 V to 4.5 V; Input
DD
V
= 2.7 V to 4.5 V; Output
DD
INT1, KS0-KS310––µs
INTL
1000
1000
Input10––µs
14-7
Page 16
ELECTRICAL DATAS3C7031/7032
CPU Clock
1.0475MHz
1.00MHz
750kHz
500kHz
250kHz
15.6kHz
1234567
Supply Voltage (V)
CPU Clock = 1/n x oscillator frequency (n =4, 8 or 64)
Figure 14-1. Standard Operating Voltage Range
Table 14-7. RAM Data Retention Supply Voltage in Stop Mode
(TA = - 40 °C to + 85 °C)
ParameterSymbolConditionMinTypMaxUnits
Data Retention Supply voltage
Data Retention Supply Current
Release Signal Set Time
Oscillation Stabilization Wait
(1)
Time
V
DDDR
I
DDDR
t
SREL
t
WAIT
–2.0—6.0V
V
DDDR
= 2.0 V
–0—–µs
Released by RESET
–0.110µA
–
217 / fx
–ms
Released by interrupt–(2)–
NOTES:
1.During oscillator stabilization wait time, all CPU operations must be stopped to avoid instability during oscillator start-up.
2.Use the basic timer mode register (BMOD) interval timer to delay execution of CPU instructions during the wait time.
14-8
Page 17
S3C7031/7032ELECTRICAL DATA
TIMING WAVEFORMS
Internal RESET
Operation
~
~
Stop Mode
Idle Mode
VDD
RESET
VDD
Data Retention Mode
VDDDR
tSREL
tWAIT
Execution Of
Stop Instrction
~
~
Figure 14-2.Stop Mode Release Timing When Initiated By RESETRESET
Idle Mode
~
Execution Of
Stop Instrction
~
~
~
Stop Mode
Data Retention Mode
VDDDR
Normal Mode
tSREL
Operating
Mode
Power - Down Mode Terminating Signal
(Interrupt Request)
tWAIT
Figure 14-3. Stop Mode Release Timing When Initiated By Interrupt Request
14-9
Page 18
ELECTRICAL DATAS3C7031/7032
0.7 VDD0.7 VDD
Measurement
Points
0.3 VDD
0.3 VDD
Figure 14-4. A.C. Timing Measure Points (Except for XIN)
1/fx
tXLtXH
XIN
TIO
Figure 14-5. Clock Timing Measurement at X
1/fTCL
tTILtTIH
Figure 14-6. TIO Timing
VDD - 0.5V
0.4 V
IN
0.7 VDD
0.3 VDD
14-10
Page 19
S3C7031/7032ELECTRICAL DATA
tRSL
RESET
0.3 VDD
Figure 14-7. Input Timing for RESETRESET Signal
t
t
INTL
INTH
INT1
KS0 to KS3
0.7 V
DD
0.3 V
DD
Figure 14-8. Input Timing for External Interrupts
14-11
Page 20
ELECTRICAL DATAS3C7031/7032
tKCY
tKLtKH
SCK
SI
SO
tKSOtKIS
0.7 VDD
Input Data
0.3 VDD
tKSO
Output Data
0.7 VDD
0.3 VDD
Figure 14-9. Serial Data Transfer Timing
14-12
Page 21
S3C7031/7032ELECTRICAL DATA
CHARACTERISTIC CURVES
NOTE
The characteristic values shown in the following graphs are based on actual test measurements. They do not,
however, represent guaranteed operating values.
70
63
54
49
42
35
IOL (mA)
28
21
14
7
0.00.61.21.82.43.03.64.24.85.46.0
VOL (V)
VDD = 4.5V
VDD = 6.0V
Figure 14-10. IOL vs. VOL (Port 0,1,2,3)
14-13
Page 22
ELECTRICAL DATAS3C7031/7032
100
90
80
70
60
50
IOL (mA)
40
30
20
10
0.00.61.21.82.43.03.64.24.85.46.0
VOL (V)
VDD = 4.5V
VDD = 6.0V
Figure 14-11. IOL vs. VOL (Port 0.0)
-30.0
-27.0
-24.0
-21.0
-18.0
-15.0
IOL (mA)
-12.0
-9.0
-6.0
-3.0
0.00.61.21.82.43.03.64.24.85.46.0
VDD = 4.5V
VOL (V)
VDD = 6.0V
14-14
Figure 14-12. IOH vs. VOH (Port 0,1,2,3except P0.0)
Page 23
S3C7031/7032ELECTRICAL DATA
3.0
2.5
2.5
1.5
2
1.5
IDD (mA)
1
0.5
~
0
~
0
3.0
Figure 14-13. IDD vs. V
2
VDD = 5.5V(/4)
IDD1 (/4)
IDD2
4.05.06.0
VDD (V)
DD
IDD1(mA)
0.5
1
0
0
2.0
fx (MHz)
3.0
4.05.01.0
Figure 14-14. IDD vs. Frequency
14-15
Page 24
S3C7031/7032MECHANICAL DATA
15MECHANICAL DATA
This section contains the following information about the device package:
— A 20-pin DIP package is available for S3C7031/7032.
— A 20-pin SOP package is available for S3C7031/7032.
#20
±
6.40 0.20
(1.77)
0.46 0.10±1.52 0.10±
NOTE: Dimensions are in millimeters
20-DIP-300A
26.40 0.20±
#11
#10#1
2.54
3.52 0.20±0.51 MIN
5.08 MAX
3.30 0.30±
7.62
0-15
0.25
+ 0.10
-
0.05
Figure 15-1. 20-pin DIP-300A Package Dimensions
15-1
Page 25
MECHANICAL DATAS3C7031/7032
#11#20
±
7.50 0.20
±
20-SOP-375
10.30 0.30
#1#10
±
12.74 0.20
(0.66)
+ 0.10
0.40
-
0.05
NOTE: Dimensions are in millimeters
Figure 15-2. 20-pin SOP-375 Package Dimensions
1.27
0.203
2.30 0.10±
0.05 MIN
+ 0.10
-
0.05
0.85 0.20±
2.50 MAX
9.53
0-8
15-2
Loading...
+ 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.