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
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
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.