The KS57C3204 single-chip CMOS microcontroller has been designed for high performance using Samsung's
newest 4-bit CPU core, SAM47 (Samsung Arrangeable Microcontrollers).
With features such as LCD direct drive capability, 4-channel A/D converter, 24-bit AM/FM frequency counter and
watch timer, the KS57C3204 offers an excellent design solution for a wide variety of applications that require
LCD functions and audio applications.
Up to 32 pins of the 64-pin QFP package, it can be dedicated to I/O. Five vectored interrupts provide fast
response to internal and external events. In addition, the KS57C3204 's advanced CMOS technology provides for
low power consumption and a wide operating voltage range.
OTP
The KS57C3204 microcontroller is also available in OTP (One Time Programmable) version, KS57P3204 . The
KS57P3204 microcontroller has an on-chip 4-Kbyte one-time-programmable EPROM instead of masked ROM.
The KS57P3204 is comparable to KS57C3204, both in function and in pin configuration.
AMF
INT4IExternal interrupt input with detection of
IExternal FM/AM frequency inputs3
20P1.3InputA-4
P2.2
4
P2.3
InputB-4
rising or falling edges.
INT2IQuasi-interrupt with detection of rising
19P1.2InputA-4
edge signals.
INT1
INT0
IExternal interrupt. The triggering edges
for INT0 and INT1 are able to be
18
17
P1.1
P1.0
InputA-4
selected. Only INT0 is synchronized with
the system clock.
BUZO2, 4, 8, or 16 kHz frequency output for
29P6.0InputD-2
buzzer sound with 4.19 MHz main
system clock.
KS0–KS2IQuasi-interrupt input with falling edge
30–32P6.1–P6.3InputD-4
detection.
RESET
TEST–System test pin(must be connected to
ISystem reset signal16–InputB
13–––
V
SS)
NOTE: Pull-up resistors for all I/O ports automatically disabled if they are configured to output mode.
1-6
Page 7
KS57C3204/P3204PRODUCT OVERVIEW
PIN CIRCUIT DIAGRAMS
V
DD
V
P-CHANNEL
IN
DD
Figure 1-3. Pin Circuit Type A
V
DD
Pull-up
Enable
In
N-CHNNEL
IN
Figure 1-5. Pin Circuit Type B
Type A
Feedback
Enable
Pull-down
Enable
Figure 1-4. Pin Circuit Type A-4
Figure 1-6. Pin Circuit Type B-4
1-7
Page 8
PRODUCT OVERVIEWKS57C3204/P3204
V
DD
V
DD
Pull-up
Data
Enable
Output
Disable
Figure 1-7. Pin Circuit Type C
V
DD
Pull-up
Enable
Data
Output
Disable
Circuit
TYPE C
I/O
Out
Data
Output
Disable
Data
Output
Circuit
TYPE C
Disable
Figure 1-9. Pin Circuit Type D-4
V
DD
PNE
V
DD
I/O
Pull-up
Enable
I/O
1-8
Figure 1-8. Pin Circuit Type D-2
Figure 1-10. Pin Circuit Type E-2
Page 9
KS57C3204/P3204PRODUCT OVERVIEW
V
DD
Pull-up Enable
Data
ADCEN
ADC Select
To ADC
Figure 1-11. Pin Circuit Type F-13
In
1-9
Page 10
PRODUCT OVERVIEWKS57C3204/P3204
V
DD
V
LC0
V
LC1
SEG/COM
and Port Data
V
LC2
Figure 1-12. Pin Circuit Type H-16
Out
1-10
Page 11
KS57C3204/P3204ELECTRICAL DATA
15ELECTRICAL DATA
OVERVIEW
In this section, information on KS57C3204 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
— Main system clock oscillator characteristics
— Subsystem clock oscillator characteristics
— I/O capacitance
— A.C. electrical characteristics
— Operating voltage range
Miscellaneous Timing Waveforms
— A.C timing measurement point
— Clock timing measurement at X
— Clock timing measurement at XT
— Input timing for RESET
— Input timing for external interrupts
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
IN
IN
15-1
Page 12
ELECTRICAL DATAKS57C3204/P3204
Table 15-1. Absolute Maximum Ratings
(TA = 25 °C)
ParameterSymbolConditionsRatingUnits
Supply Voltage
Input Voltage
Output Voltage
Output Current High
V
DD
I
V
V
IN
O
OH
All I/O ports
One I/O port active– 15mA
–– 0.3 to + 6.5V
– 0.3 to V
–
– 0.3 to VDD + 0.3
DD
+ 0.3
All I/O ports active– 30
Output Current Low
I
OL
One I/O port active+ 30 (Peak value)
(note)
+ 15
Total value for ports 1, 4, 5 and 6+ 100 (Peak value)
(note)
+ 60
Operating Temperature
Storage Temperature
T
A
T
stg
–– 40 to + 85
–– 65 to + 150
°
C
NOTE: The values for Output Current Low ( IOL ) are calculated as Peak Value × Duty .
2.Stabilization time is the interval required for oscillator stabilization after a power-on occurs.
XTINXT
C1C2
XTINXT
OUT
OUT
Oscillation frequency
(1)
(2)
Stabilization time
V
DD
V
DD
XTIN input frequency
(1)
XTIN input high and
low level width (t
t
)
XTH
input frequency data are for oscillator characteristics only.
IN
XTL
,
–3232.76835kHz
= 2.7 V to 5.5 V
= 1.8 V to 2.7 V
–32–100kHz
–5–15
–1.02s
––10
µs
15-7
Page 18
ELECTRICAL DATAKS57C3204/P3204
Table 15-5. Input/Output Capacitance
(TA = 25 °C, V
DD
=0 V )
ParameterSymbolConditionMinTypMaxUnits
Input
capacitance
Output
C
C
IN
OUT
f
= 1 MHz; Unmeasured
CLK
pins are returned to V
––15pF
SS
––15pF
capacitance
I/O capacitance
C
IO
––15pF
Table 15-6. A.C. Electrical Characteristics
(T
= – 40 °C to + 85 °C, V
A
= 1.8 V to 5.5 V)
DD
ParameterSymbolConditionsMinTypMaxUnits
Instruction cycle
(1)
time
Interrupt input
t
INTH
t
CY
, t
V
= 2.7 V to 5.5 V
DD
VDD = 1.8 V to 5.5 V
INT0
INTL
0.67–64
1.364
(2)
––
high, low widthINT1, INT2, INT4, KS0–KS210
RESET Input Low
t
RSL
Input10––
Width
µs
µs
µs
NOTES:
1.Unless otherwise specified, Instruction Cycle Time condition values assume a main system clock/4 (fx/4) source.
2.Minimum value for INT0 is based on a clock of 2t
or 128/fxx as assigned by the IMOD0 register setting.
CY
Table 15-6. A.C. Electrical Characteristics (continued)
(T
= – 10 °C to + 70 °C, V
A
= 3.5 V to 5.5 V)
DD
ParameterSymbolConditionsMinTypMaxUnits
A/D converting
––888bits
Resolution
Absolute accuracy––––
AD conversion
t
CON
–17
34/fxx
(note)
± 2
–
LSB
time
Analog input
V
IAN
–
V
SS
–
V
DD
voltage
Analog input
R
AN
–21000–
MΩ
impedance
NOTE: fxx stands for the system clock (fx or fxt).
µs
V
15-8
Page 19
KS57C3204/P3204ELECTRICAL DATA
Table 15-6. A.C. Electrical Characteristics (continued)
(T
= – 40 °C to + 85 °C, V
A
= 3.0 V to 5.5 V)
DD
ParameterSymbolConditionsMinTypMaxUnits
Input voltage
(peak to peak)
Frequency
V
f
AMF
f
FMF
IN
AMF/FMF mode, sine
0.3–
wave input
AMF mode, sine wave
input; VIN = 300mV
P-P
FMF mode, sine wave
input; VIN = 300mV
P-P
0.5–10MHz
30150
V
DD
V
CPU CLOCK
1.5 MHz
1.0475 MHz
750 kHz
500 kHz
250 kHz
15.6 kHz
Main OSC. Freq.
6 MHz
4.19 MHz
3 MHz
400 kHz
1
CPU CLOCK = 1/n x oscillator frequency (n = 4, 8, 64)
When FC operates, operating voltage range is 3.0 V to 5.5 V.
2 34 5 6 7
SUPPLY VOLTAGE (V)
Figure 15-1. Standard Operating Voltage Range
Table 15-7. RAM Data Retention Supply Voltage in Stop Mode
(TA = – 40 °C to + 85 °C)
ParameterSymbolConditionsMinTypMaxUnit
Data retention supply voltage
Data retention supply current
V
DDDR
I
DDDR
Normal operation1.8–5.5V
V
DDDR
= 1.8 V
–0.11
µA
15-9
Page 20
ELECTRICAL DATAKS57C3204/P3204
TIMING WAVEFORMS
INTERNAL RESET
OPERATION
V
RESET
V
DD
DD
STOP MODE
DATA RETENTION MODE
V
EXECUTION OF
STOP INSTRUCTION
DDDR
t
SREL
Figure 15-2. Stop Mode Release Timing When Initiated by RESET
IDLE MODE
STOP MODE
DATA RETENTION MODE
IDLE MODE
t
WAIT
NORMAL
OPERATING
MODE
OPERATING
MODE
15-10
V
EXECUTION OF
DDDR
STOP INSTRUCTION
POWER-DOWN MODE TERMINATING SIGNAL
(INTERRUPT REQUEST)
t
SREL
t
WAIT
Figure 15-3. Stop Mode Release Timing When Initiated by an Interrupt Request
Page 21
KS57C3204/P3204ELECTRICAL DATA
0.8 V
0.2 V
DD
DD
MEASUREMENT
POINTS
0.8 V
0.2 V
DD
DD
Figure 15-4. A.C. Timing Measurement Points (Except for Xin and XTin)
1 / f
x
t
XL
X
in
t
XH
V
DD
0.1 V
– 0.1 V
XT
Figure 15-5. Clock Timing Measurement at X
1 / f
xt
t
XTL
in
t
Figure 15-6. Clock Timing Measurement at XT
XTH
in
in
V
DD
0.1 V
– 0.1 V
15-11
Page 22
ELECTRICAL DATAKS57C3204/P3204
t
RSL
RESET
0.2 V
DD
Figure 15-7. Input Timing for RESET Signal
INT0, 1, 2, 4
KS0 to KS2
t
INTL
0.8 V
0.2 V
DD
DD
t
INTH
Figure 15-8. Input Timing for External Interrupts and Quasi-Interrupts
15-12
Page 23
KS57C3204/P3204MECHANICAL DATA
16MECHANICAL DATA
OVERVIEW
The KS57C3204 microcontroller is available in a 64-pin QFP package (Samsung: 64-QFP-1420F).
Package dimensions are shown in Figure 16-1.
23.90 ± 0.3
14.00 ± 0.2
17.90 ± 0.3
#64
1.00
#1
20.00 ± 0.2
64-QFP-1420F
+0.10
0.40
- 0.05
± 0.15MAX
(1.00)
)
(1.00
0-8°
+0.10
0.15
- 0.05
0.10 MAX
0.80 ± 0.20
0.05~0.25
2.65 ± 0.10
3.00 MAX
NOTE: Dimensions are in millimeters.
Figure 16-1. 64-QFP-1420F Package Dimensions
0.80 ± 0.20
16-1
Page 24
MECHANICAL DATAKS57C3204/P3204
NOTES
16–2
Page 25
KS57C3204/P3204KS57P3204 OTP
17KS57P3204 OTP
OVERVIEW
The KS57P3204 single-chip CMOS microcontroller is the OTP (One Time Programmable)version of the
KS57C3204microcontroller. It has an on-chip EPROM instead of masked ROM. The EPROM is accessed by a
serial data format.
The KS57P3204 is fully compatible with the KS57C3204, both in function and in pin configuration. Because of its
simple programming requirements, the KS57P3204 is ideal for use as an evaluation chip for the KS57C3204.
Table 17-1. Pin Descriptions Used to Read/Write the EPROM
Main ChipDuring Programming
Pin NamePin NamePin No.I/OFunction
P3.2SDAT7I/OSerial data pin. Output port when reading and
input port when writing. Can be assigned as a
Input or push-pull output port.
P3.3SCLK8I/OSerial clock pin. Input only pin.
V
TEST
PP
(TEST)
13IPower supply pin for EPROM cell writing
(indicates that OTP enters into the writing mode).
When 12.5 V is applied, OTP is in writing mode
and when 5 V is applied, OTP is in reading mode.
RESETRESET
V
DD
/ V
SS
VDD / V
SS
16IChip initialization
9/10I
Logic power supply pin. VDD should be tied to +5
V during programming.
Table 17-2. Comparison of KS57P3204 and KS57C3204 Features
CharacteristicKS57P3204KS57C3204
Program Memory4K bytes EPROM4K bytes mask ROM
Operating Voltage (VDD)
OTP Programming Mode
2.0 V to 5.5 V at 4.19 MHz
1.8 V to 5.5 V at 3 MHz
VDD = 5 V, VPP (TEST) = 12.5 V
2.0 V to 5.5 V at 4.19 MHz
1.8 V to 5.5 V at 3 MHz
–
Pin Configuration64 QFP64 QFP
EPROM ProgrammabilityUser Program 1 timeProgrammed at the factory
OPERATING MODE CHARACTERISTICS
When 12.5 V is supplied to the Vpp (TEST) pin of the KS57P3204, the EPROM programming mode is entered.
The operating mode (read, write, or read protection) is selected according to the input signals to the pins listed in
Table 17-3 below.