KS57C4104/P4104/C4204/P4204/C4304/P4304
PRODUCT OVERVIEW
1
OVERVIEW
PRODUCT OVERVIEW
The KS57C4104/KS57C4204/KS57C4304 single-chip CMOS microcontroller has been designed for very high
performance using Samsung's newest 4-bit CPU core, SAM47 (Samsung Arrangeable Microcontroller).
With an A/D converter, LED direct drive pins, an 8-bit serial I/O interface, and an 8-bit timer/counter, the
KS57C4104/KS57C4204/KS57C4304 offers you an excellent design solution for a wide variety of home
appliance applications — electric fans, cookers, boilers, and air conditioners, for example.
Up to 35 pins of the 42-pin SDIP or 44-pin QFP package can be dedicated to I/O. Seven vectored interrupts
provide fast response to internal and external events.
In addition, the KS57C4104/KS57C4204/KS57C4304's advanced CMOS technology provides for low power
consumption and a wide operating voltage range.
OTP
The KS57C4104/KS57C4204/KS57C4304 microcontroller is also available in OTP (One Time Programmable)
version, KS57P4104/KS57P4204/KS57P4304. KS57P4104/KS57P4204/KS57P4304 microcontroller has an on-
chip 4-Kbyte one-time-programmable EPROM instead of masked ROM. The
KS57P4104/KS57P4204/KS57P4304 is comparable to KS57C4104/KS57C4204/KS57C4304, in function, in D.C.
electrical characteristics and in pin configuration.
DEVELOPMENT SUPPORT
The Samsung Microcontroller Development System, SMDS, provides you with a complete PC-based develop-
ment environment for KS57-series microcontrollers that is powerful, reliable, and portable. In addition to its
window-based 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
hex files that also contain program control data for SMDS compatibility.
1-1
PRODUCT OVERVIEW
KS57C4104/P4104/C4204/P4204/C4304/P4304
FEATURES SUMMARY
Memory
•
•
256
×
4-bit RAM
4,096
×
8-bit ROM
Built-in reset circuit (KS57C4304 only)
•
Built-in power-on reset circuit
Interrupts
•
•
•
Five internal vectored interrupts
(INTB, INTT0, INTT1, INTS, INTAD)
Three external vectored interrupts
(INT0, INT1, INT4)
Two quasi-interrupts (INT2, INTW)
35 I/O Pins
•
I/O: 31 pins including 8 LED direct drive pins
(KS57C4104/C4304)
18 pins including 8 LED direct drive pins
(KS57C4204)
Input only: 4 pins
•
Bit Sequential Carrier
A/D Converter
•
•
6-channel with 8-bit resolution
22.89 µs conversion speed at 4.19 MHz
•
Supports 16-bit serial data transfer in
arbitrary format
Memory-Mapped I/O Structure
•
Data memory bank 15
Basic Timer
•
•
•
One 8-bit basic timer
Watchdog timer functions
Four interval clock selection
Two Power-Down Modes
•
•
Idle mode (only CPU clock stops)
Stop mode (system oscillation stops)
Timer/Counters
•
•
•
•
•
Two 8-bit timer/counter (TC0, TC1)
Programmable 8-bit timer
External event counter
Arbitrary clock frequency output
PWM output mode (TC1)
Oscillation Sources
•
•
•
•
Crystal, Ceramic, or RC for system clock
Crystal, Ceramic: 0.4–6.0 MHz
RC: 4 MHz (typ)
CPU clock divider circuit (by 4, 8, or 64)
Instruction Execution Times
Watch Timer
•
•
•
One watch timer 8-bit
Time interval generation: 0.5 s, 3.9 ms at
4.19 MHz
Four frequency outputs to BUZ pin
•
•
0.95, 1.91, 15.3 µs at 4.19 MHz
0.67, 1.33, 10.7 µs at 6.0 MHz
Operating Temperature
•
– 40
°
C to 85
°
C
8-bit Serial I/O Interface
•
•
•
•
8-bit transmit/receive mode
8-bit receive mode
LSB-first or MSB-first transmission selectable
Internal or external clock source
Operating Voltage Range
•
•
1.8 V to 5.5 V (KS57C4104/C4204)
2.5 V to 5.5 V (KS57C4304)
Package Type
•
42-pin SDIP, 44-pin QFP (KS57C4104/C4304)
30-pin SDIP, 28-pin SOP (KS57C4204)
1-2
KS57C4104/P4104/C4204/P4204/C4304/P4304
ELECTRICAL DATA
14
OVERVIEW
ELECTRICAL DATA
In this section, information on KS57C4104/C4204/C4304 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
— System clock oscillator characteristics
— Operating voltage range
— A.C. electrical characteristics
— A/D converter electrical characteristics
— I/O capacitance
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
Miscellaneous Timing Waveforms
— A.C timing measurement points (except for X
IN
)
— Clock timing measurement at X
IN
— TCL0/1 timing
— Input timing for
RESET signal
— Input timing for external interrupts and quasi-interrupts
— KS57C4304 power-on
RESET
timing
— Serial data transfer timing
14-1
ELECTRICAL DATA
KS57C4104/P4104/C4204/P4204/C4304/P4304
Table 14-1. KS57C4104/C4204 Absolute Maximum Ratings
(T
A
= 25
°
C)
Parameter
Supply Voltage
Input Voltage
Output Voltage
Output Current High
Symbol
V
DD
V
I
V
O
I
OH
I
OL
One pin
All output pins
Output Current Low
One pin
peak value
(note)
rms value
All pins
Operating Temperature
Storage Temperature
T
A
T
stg
peak value
(note)
rms value
–
–
Duty .
Conditions
–
All I/O ports
–
Rating
– 0.3 to + 6.5
– 0.3 to V
DD
+ 0.3
– 0.3 to V
DD
+ 0.3
– 15
– 35
+ 30
+ 15
+ 100
+ 60
– 40 to + 85
– 65 to + 150
Units
V
V
V
mA
mA
°
C
°
C
NOTE:
The values for Output Current Low (I
OL
) are calculated as Peak Value
×
14-2
KS57C4104/P4104/C4204/P4204/C4304/P4304
ELECTRICAL DATA
Table 14-2. KS57C4104/C4204 D.C. Electrical Characteristics
(T
A
= – 40
°
C to + 85
°
C, V
DD
= 1.8 V to 5.5 V)
Parameter
Input High
Voltage
Symbol
V
IH1
V
IH2
V
IH3
Input Low
Voltage
V
IL1
V
IL2
V
IL3
Output High
Voltage
Output Low
Voltage
V
OH
Conditions
All input pins except those specified
below for V
IH2
–V
IH3
Ports 0, 1, 3, 6 and
RESET
X
IN,
X
OUT
All input pins except those specified
below for V
IL2
–V
IL3
Ports 0, 1, 3, 6 and
RESET
X
IN,
X
OUT
V
DD
= 4.5 V to 5.5 V
I
OH
= – 1 mA
Ports 0, 2–8
V
DD
= 4.5 V to 5.5 V
I
OL
= 15 mA
Ports 4 and 5 only
I
OL
= 4 mA
All output ports except ports 4 and 5
V
I
= V
DD
All input pins except those specified
below for I
LIH2
V
I
= V
DD
X
IN
and X
OUT
only
V
I
= 0 V
All input pins except X
IN
and X
OUT
,
RESET
Min
0.7 V
DD
0.8 V
DD
V
DD
– 0.1
–
Typ
–
Max
V
DD
V
DD
V
DD
Units
V
–
0.3 V
DD
0.2 V
DD
0.1
V
V
DD
– 1.0
–
–
V
V
OL
–
0.4
2
V
0.2
–
–
3
µA
Input High
Leakage Current
I
LIH1
I
LIH2
Input Low
Leakage Current
I
LIL1
20
–
–
–3
µA
I
LIL2
Output High
Leakage Current
Output Low
Leakage Current
Pull-up Resistor
I
LOH
I
LOL
R
L1
R
L2
V
I
= 0 V
X
IN
and X
OUT
only
V
O
= V
DD
All output pins
V
O
= 0 V
All output pins
V
I
= 0 V; V
DD
= 5 V except
RESET
V
I
= 0 V; V
DD
= 3 V except
RESET
V
I
= 0 V; V
DD
= 5 V;
RESET
V
I
= 0 V; V
DD
= 3 V;
RESET
–
–
25
50
100
200
–
–
50
100
250
500
– 20
3
–3
100
200
400
800
kΩ
µA
µA
kΩ
Pull-up Resistor
14-3