SAMSUNG KS57P2916

KS57C2916/P2916 MICROCONTROLLER
1
PRODUCT OVERVIEW
PRODUCT OVERVIEW
OVERVIEW
The KS57C2916 single-chip CMOS microcontroller has been designed for high performance using Samsung's
newest 4-bit CPU core, SAM47 (Samsung Arrangeable Microcontrollers).
With an up-to-704-dot LCD direct drive capability, and flexible 8-bit timer/counter, the KS57C2916 offers an
excellent design solution for a mid-end LCD game.
Up to 8 pins of the 80-pin QFP package can be dedicated to I/O. Six vectored interrupts provide fast response to
internal and external events. In addition, the KS57C2916's advanced CMOS technology provides for low power
consumption.
OTP
The KS57C2916 microcontroller is also available in OTP (One Time Programmable) version, KS57P2916.
KS57P2916 microcontroller has an on-chip 16K-byte one-time-programable EPROM instead of masked ROM.
The KS57P2916 is comparable to KS57C2916, both in function and in pin configuration.
1-1
PRODUCT OVERVIEW
KS57C2916/P2916 MICROCONTROLLER
FEATURES
Memory
•
256 × 4-bit RAM (excluding LCD display RAM)
•
16,384 × 8-bit ROM
Memory-Mapped I/O Structure
•
Data memory bank 15
Power-Down Modes
8 I/O Pins
•
Idle mode (only CPU clock stops)
•
•
Stop mode (main system oscillation stops)
•
Sub system clock stop mode
I/O: 8 pins
LCD Controller/Driver
44 segments and 16 common terminals
Oscillation Sources
(8, 12 and 16 common selectable)
•
Crystal, ceramic, or RC for main system clock
•
Internal resistor circuit for LCD bias
•
Crystal oscillator for subsystem clock
•
Voltage doubler
•
•
All dot can be switched on/off
Main system clock frequency: 4.19 MHz
(typical)
•
Subsystem clock frequency: 32.768 kHz
•
CPU clock divider circuit (by 4, 8, or 64)
•
8-bit Basic Timer
•
4 interval timer functions
•
Watch-dog timer
8-bit Timer/Counter
•
Programmable 8-bit timer
•
Arbitrary clock output (TCLO0)
•
Inverted clock output (TCLO0)
Instruction Execution Times
•
0.95, 1.91, 15.3 µs at 4.19 MHz (main)
•
122 µs at 32.768 kHz (subsystem)
Operating Temperature
•
– 40 °C to 85 °C
Watch Timer
Operating Voltage Range
•
Time interval generation: 0.5 s, 3.9 ms
at 32768 Hz
•
•
Four frequency outputs to BUZ pin and BUZ pin
•
Clock source generation for LCD
Interrupts
•
Two internal vectored interrupts
•
Four external vectored interrupts
•
Two quasi-interrupts
1-2
2.2 V to 3.4 V (0.4 MHz to 4.19 MHz)
Package Type
•
80-pin QFP or pellet
KS57C2916/P2916 MICROCONTROLLER
PRODUCT OVERVIEW
BLOCK DIAGRAM
RESET
P0.3/BUZ/K3
P0.2/CLO/ BUZ /K2
P0.1/TCLO0 /K1
I/O PORT 0
INTERRUPT
CONTROL
BLOCK
Xin
XTin
Xout
XTout
CLOCK
INSTRUCTION
REGISTER
P0.0/TCLO0/K0
INTERNAL
INTERRUPT
P1.3/INT
P1.2/INT2
P1.1/INT1
I/O PORT 1
INSTRUCTION DECODER
P1.0/INT0
8-BIT
TIMER/
COUNTER
ARITHMETIC
AND
LOGIC UNIT
256 x 4-BIT
DATA
MEMORY
PROGRAM
COUNTER
PROGRAM
STATUS
WORD
STACK
POINTER
BASIC
TIMER
WATCH-DOG
TIMER
WATCH
TIMER
VOLTAGE
DOUBLER
LCD
DRIVER/
CONTROLLER
BIAS
CA
CB
SEG0-SEG43
COM0-COM15
VLC0
16K BYTES
PROGRAM
MEMORY
Figure 1-1. KS57C2916 Simplified Block Diagram
1-3
PRODUCT OVERVIEW
KS57C2916/P2916 MICROCONTROLLER
80
79
78
77
76
75
74
73
72
71
70
69
68
67
66
65
SEG40
SEG39
SEG38
SEG37
SEG36
SEG35
SEG34
SEG33
SEG32
SEG31
SEG30
SEG29
SEG28
SEG27
SEG26
SEG25
PIN ASSIGNMENTS
SEG41
SEG42
SEG43
P1.3/INT4
P1.2/INT2
P1.1/INT1
P1.0/INT0
P0.3/BUZ/K3
P0.2/CLO/BUZ /K2
P0.1/TCLO 0 /K1
P0.0/TCLO0/K0
VDD
VSS
Xout
Xin
TEST
XTin
XTout
RESET
KS57C2916
(TOP VIEW)
64
63
62
61
60
59
58
57
56
55
54
53
52
51
50
49
48
47
46
45
44
43
42
41
COM14
COM13
COM12
COM11
COM10
COM9
COM8
COM7
COM6
COM5
COM4
COM3
COM2
COM1
COM0
SEG0
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
CA
CB
VLC0
BIAS
COM15
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Figure 1-2. KS57C2916 80-QFP Pin Assignment Diagram
1-4
SEG24
SEG23
SEG22
SEG21
SEG20
SEG19
SEG18
SEG17
SEG16
SEG15
SEG14
SEG13
SEG12
SEG11
SEG10
SEG9
SEG8
SEG7
SEG6
SEG5
SEG4
SEG3
SEG2
SEG1
KS57C2916/P2916 MICROCONTROLLER
PRODUCT OVERVIEW
PIN DESCRIPTIONS
Table 1-1. KS57C2916 Pin Descriptions
Pin Name
Pin
Type
Description
P0.0
P0.1
P0.2
I/O
4-bit I/O port.
1-bit and 4-bit read/write and test are possible.
Individual pins are software configurable as input or
output.
Individual pins are software configurable as opendrain or push-pull output.
Individual pull-up resistors are software assignable;
pull-up resistors are automatically disabled for
output pins.
E-1
E-1
P0.3
Circuit Number
Type
Share Pin
11
10
9
TCLO0/K0
TCLO0/K1
CLO/BUZ/K2
8
BUZ/K3
7
6
5
4
INT0
INT1
INT2
INT4
P1.0
P1.1
P1.2
P1.3
I/O
Same as port 0.
INT0, INT1
I/O
External interrupts. The triggering edge for INT0
and INT1 is selectable.
7, 6
P1.0, P1.1
INT2
I/O
Quasi-interrupt with detection of rising or falling
edges
5
P1.2
INT4
I/O
External interrupt with detection of rising or falling
edges.
4
P1.3
BUZ
I/O
2 kHz, 4 kHz, 8 kHz or 16 kHz frequency output for
buzzer sound.
8
P0.3/K3
BUZ
I/O
Inverted BUZ signal
9
P0.2/CLO/K2
CLO
I/O
Clock output
9
P0.2/BUZ/K2
TCLO0
I/O
Inverted Timer/counter 0 clock output
10
P0.1/K1
TCLO0
I/O
Timer/counter 0 clock output
11
P0.0/K0
COM0–COM15
O
LCD common signal output
H-6
39–24
–
SEG0–SEG43
O
LCD segment signal output
H-6
40–80,
1–3
–
1-5
PRODUCT OVERVIEW
KS57C2916/P2916 MICROCONTROLLER
Table 1-1. KS57C2916 Pin Descriptions (Continued)
Pin Name
Pin
Type
K0–K3
I/O
VDD
–
VSS
Description
External interrupt (triggering edge is selectable)
Circuit Number Share Pin
Type
E-1
11–8
P0.0–P0.3
Power supply
–
12
–
–
Ground
–
13
–
RESET
I
Reset input (active low)
B
19
–
CA, CB
–
Capacitor terminal for voltage doubling
–
20, 21
–
VCL0
–
LCD power supply input
–
22
–
BIAS
O
Doubling voltage level output
–
23
–
Xin, Xout
–
Crystal, ceramic or RC oscillator pins for system
clock
–
15, 14
–
XTin, XTout
–
Crystal oscillator pins for subsystem clock
–
17, 18
–
TEST
I
Test input (must be connected to VSS)
–
16
–
NOTE: Pull-up resistors for all I/O ports are automatically disabled if they are configured to output mode.
1-6
KS57C2916/P2916 MICROCONTROLLER
PRODUCT OVERVIEW
PIN CIRCUIT DIAGRAMS
VDD
V DD
PULL-UP
RESISTOR
PNE
VDD
P-CH
P-CHANNEL
RESISTOR
ENABLE
I/O
DATA
IN
N -CH
N-CHANNEL
OUTPUT
DISABLE
SCHMITT TRIGGER
Figure 1-5. Pin Circuit Type E-1
Figure 1-3. Pin Circuit Type A
VLC0
VLC1
VDD
VLC2
PULL-UP
RESISTOR
SEG/COM DATA
OUT
IN
SCHMITT TRIGGER
VLC3
VLC4
VSS
Figure 1-4. Pin Circuit Type B
Figure 1-6. Pin Circuit Type H-6
1-7
PRODUCT OVERVIEW
KS57C2916/P2916 MICROCONTROLLER
NOTES
1-8
KS57C2916/P2916 MICROCONTROLLER
13
ELECTRICAL DATA
ELECTRICAL DATA
OVERVIEW
In this section, information on KS57C2916 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 Xin
— Clock timing measurement at XTin
— TCL timing
— Input timing for RESET
— Input timing for external interrupts
— Serial data transfer timing
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
13-1
ELECTRICAL DATA
KS57C2916/P2916 MICROCONTROLLER
Table 13-1. Absolute Maximum Ratings
(TA = 25 °C)
Parameter
Supply Voltage
Symbol
Conditions
Rating
Units
VDD
–
– 0.3 to + 4.5
V
– 0.3 to VDD + 0.3
V
– 0.3 to VDD + 0.3
V
mA
Input Voltage
VI
Output Voltage
VO
–
Output Current High
IOH
One I/O pin active
– 15
All I/O pins active
– 30
One I/O pin active
+ 30 (Peak value)
Output Current Low
Ports 0, 1
IOL
mA
+ 15(note)
Total for pins 0, 1
+ 100 (Peak value)
+ 60(note)
Operating Temperature
Storage Temperature
TA
–
– 40 to + 85
°C
Tstg
–
– 65 to + 150
°C
NOTE: The values for Output Current Low ( IOL ) are calculated as Peak Value ×
Duty .
Table 13-2. D.C. Electrical Characteristics
(TA = – 40 °C to + 85 °C, VDD = 2.2 V to 3.4 V)
Parameter
Symbol
Conditions
Min
Typ
Max
Units
0.8VDD
–
VDD
V
VIH1
Ports 0, 1, and RESET
VIH2
Xin, Xout, and XTin
VIL1
Ports 0, 1, and RESET
VIL2
Xin, Xout, and XTin
Output High
Voltage
VOH
VDD = 2.2 V to 3.4 V
IOH = – 1 mA
Ports 0, 1
VDD – 1.0
–
–
V
Output Low
Voltage
VOL
VDD = 2.2 V to 3.4 V
IOL = 5 mA
Ports 0, 1
–
–
1.0
V
Input High
Voltage
Input Low
Voltage
13-2
VDD – 0.1
–
VDD
–
0.2VDD
V
0.1
KS57C2916/P2916 MICROCONTROLLER
ELECTRICAL DATA
Table 13-2. D.C. Electrical Characteristics (Continued)
(TA = – 40 °C to + 85 °C, VDD = 2.2 V to 3.4 V)
Parameter
Symbol
Conditions
Min
Typ
Max
Units
–
–
3
µA
ILIH1
VI = VDD
All input pins except those
specified below for ILIH2
ILIH2
VI = VDD
Xin, Xout and XTin
ILIL1
VI = 0 V
All input pins except RESET
Xin, Xout and XTin
ILIL2
VI = 0 V
RESET, Xin, Xout and XTin
Output High
Leakage
Current
ILOH
VO = VDD
All output pins
–
–
3
µA
Output Low
Leakage
Current
ILOL
VO = 0 V
All output pins
–
–
–3
µA
Pull-Up
Resistor
RL1
VI = 0 V; VDD = 3V
50
100
200
kΩ
VI = 0 V; VDD = 3V; RESET
200
450
800
RLCD1
Ta = + 25 °C
50
100
150
RLCD2
Ta = + 25 °C
25
50
75
Input High
Leakage
Current
Input Low
Leakage
Current
–
–
–3
µA
– 20
Ports 0, 1
RL2
LCD Voltage
Dividing
Resistor (1)
20
VDD-COMi
Voltage Drop
(i = 0–15)
VDC
VLCD = 3.0 V
– 15 µA per common pin
–
–
120
VLCDSEGx
Voltage Drop
(x = 0–43)
VDS
VLCD = 3.0 V
– 15 µA per common pin
–
–
120
Middle Output
VLC0
VLC0 = 5.0 V
VLC0-0.2
VLC0
VLC0+0.2
Voltage (2)
VLC1
0.8VLC0-0.2
0.8VLC0
0.8VLC0+0.2
VLC2
0.6VLC0-0.2
0.6VLC0
0.6VLC0+0.2
VLC3
0.4VLC0-0.2
0.4VLC0
0.4VLC0+0.2
VLC4
0.2VLC0-0.2
0.2VLC0
0.2VLC0+0.2
kΩ
mV
V
NOTES:
1. RLCD1 is LCD voltage dividing resistor when LCON.2 = "0", and RLCD2 when LCON.2 = "1".
2. It is middle output voltage when 1/16 duty and 1/5 bias.
13-3
ELECTRICAL DATA
KS57C2916/P2916 MICROCONTROLLER
Table 13-2. D.C. Electrical Characteristics (Concluded)
(TA = – 40 °C to + 85 °C, VDD = 2.2 V to 3.4 V)
Parameter
Supply
Current (1)
Symbol
Conditions
IDD1
VDD = 3V ± 10%
4.19 MHz (PCON=3H) crystal oscillator
C1 = C2 = 22 pF
IDD2
Idle mode; VDD = 3 V ± 10%
4.19 MHz (PCON=3H) crystal oscillator
C1 = C2 = 22 pF
Min
Typ
Max
Units
–
1.3
3.0
mA
0.4
1.0
15
30
5
15
IDD3 (2)
VDD = 3 V ± 10%
32 kHz crystal oscillator
IDD4 (2)
Idle mode; VDD = 3 V ± 10%
32 kHz crystal oscillator
IDD5
Stop mode; VDD = 3 V ± 10%
SCMOD=0000B,
XTin=0V
0.5
3
Stop mode; VDD = 3 V ± 10%
SCMOD=0100B
0.2
2
–
NOTES:
1.
2.
3.
Current in the following circuits are not included; on-chip pull-up resistors, internal LCD voltage dividing resistors,
voltage doubler, and output port drive currents.
Data includes power consumption for subsystem clock oscillation.
When the system clock control register, SCMOD, is set to 1001B, main system clock oscillation stops and the
subsystem clock is used.
13-4
µA
KS57C2916/P2916 MICROCONTROLLER
ELECTRICAL DATA
Table 13-3. Main System Clock Oscillator Characteristics
(TA = – 40 °C to + 85 °C, VDD = 2.2 V to 3.4 V)
Oscillator
Ceramic
Oscillator
Clock
Configuration
Xin
Xout
Test Condition
Min
Typ
Max
Units
–
0.4
–
4.19
MHz
Stabilization time (2)
Stabilization occurs
when VDD is equal to
the minimum
oscillator voltage
range; VDD = 3.0 V
–
–
4
ms
Oscillation frequency
–
0.4
–
4.19
MHz
–
–
10
ms
Oscillation frequency
(1)
C1
Crystal
Oscillator
Parameter
Xin
C2
Xout
(1)
C1
C2
Stabilization time (2)
External
Clock
RC
Oscillator
Xin
Xout
Xin
Xout
VDD = 3.0 V
Xin input frequency (1)
–
0.4
–
4.19
MHz
Xin input high and low
level width (tXH, tXL)
–
83.3
–
1250
ns
0.4
–
1.5
MHz
Frequency
VDD = 3 V
R
NOTES:
1. Oscillation frequency and Xin input frequency data are for oscillator characteristics only.
2.
Stabilization time is the interval required for oscillator stabilization after a power-on occurs, or when stop mode is
terminated.
13-5
ELECTRICAL DATA
KS57C2916/P2916 MICROCONTROLLER
Table 13-4. Recommended Oscillator Constants
(TA = – 40 °C to + 85 °C, VDD = 2.2 V to 3.4 V)
Manufacturer
TDK
Series
Number (1)
Frequency Range
Load Cap (pF)
Oscillator Voltage
Range (V)
C1
C2
MIN
MAX
Remarks
FCR
M5
3.58 MHz–4.2 MHz
33
33
2.2
3.4
Leaded Type
FCR
MC5
3.58 MHz–4.2 MHz
(2)
(2)
2.2
3.4
On-chip C
Leaded Type
CCR
MC3
3.58 MHz–4.2 MHz
(3)
(3)
2.2
3.4
On-chip C
SMD Type
NOTES:
1. Please specify normal oscillator frequency.
2. On-chip C: 30pF built in.
3. On-chip C: 38pF built in.
Table 13-5. Subsystem Clock Oscillator Characteristics
(TA = – 40 °C to + 85 °C, VDD = 2.2 V to 3.4 V)
Oscillator
Crystal
Oscillator
Clock
Configuration
XTin
XTout
C1
Parameter
Test Condition
Min
Typ
Max
Units
Oscillation frequency (1)
–
32
32.768
35
kHz
–
1.0
3
s
C2
Stabilization time (2)
External
Clock
XTin
XTout
VDD = 2.2 V to 3.4 V
XTin input frequency (1)
–
32
–
100
kHz
XTin input high and low
level width (tXTL, tXTH)
–
5
–
15
µs
NOTES:
1. Oscillation frequency and XTin input frequency data are for oscillator characteristics only.
2.
Stabilization time is the interval required for oscillating stabilization after a power-on occurs.
13-6
KS57C2916/P2916 MICROCONTROLLER
ELECTRICAL DATA
Table 13-6. Input/Output Capacitance
(TA = 25 °C, VDD = 0 V )
Parameter
Symbol
Condition
Min
Typ
Max
Units
Input
Capacitance
CIN
f = 1 MHz; Unmeasured pins
are returned to VSS
–
–
15
pF
Output
Capacitance
COUT
–
–
15
pF
CIO
–
–
15
pF
Min
Typ
Max
Units
–
2 VDD
–
V
Min
Typ
Max
Units
VDD = 2.2 V to 3.4 V
0.95
–
64
µs
With subsystem clock (fxt)
114
122
125
I/O Capacitance
Table 13-7. Voltage Doubler Output
(TA = -40 °C to + 85 °C, VDD = 2.2 V to 3.4 V)
Parameter
Voltage Doubler
Output
Symbol
Vbias
Condition
VDD = 2.2 V to 3.4 V
Table 13-8. A.C. Electrical Characteristics
(TA = – 40 °C to + 85 °C, VDD = 2.2 V to 3.4 V)
Parameter
Instruction Cycle
Time (note)
Symbol
tCY
Conditions
Interrupt Input
High, Low Width
f INTH,
f INTL
INT0–INT2, INT4
K0–K3
10
–
–
RESET Input Low
tRSL
Input
10
–
–
Width
NOTE: Unless otherwise specified, Instruction Cycle Time condition values assume a main system clock ( fx ) source.
13-7
ELECTRICAL DATA
KS57C2916/P2916 MICROCONTROLLER
CPU CLOCK
Main OSC frequency (Divided by 4)
1.05 MHz
4.2 MHz
15.6 kHz
1
2
3
4
5
6
7
2.2V
SUPPLY VOLTAGE (V)
CPU CLOCK = 1/n x oscillator frequency (n = 4, 8, 64)
Figure 13-1. Standard Operating Voltage Range
Table 13-9. RAM Data Retention Supply Voltage in Stop Mode
(TA = – 40 °C to + 85 °C)
Parameter
Symbol
Conditions
Min
Typ
Max
Unit
Data retention supply voltage
VDDDR
–
2.2
–
3.4
V
Data retention supply current
IDDDR
–
0.1
10
µA
Release signal set time
tSREL
0
–
–
µs
Oscillator stabilization wait
time (1)
tWAIT
Released by RESET
–
217 / fx
–
ms
Released by interrupt
–
(2)
–
VDDDR = 2.2 V
–
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.
13-8
KS57C2916/P2916 MICROCONTROLLER
ELECTRICAL DATA
TIMING WAVEFORMS
RESET
INTERNAL
OPERATION
~
IDLE MODE
STOP MODE
DATA RETENTION MODE
~
VDD
NORMAL MODE
VDDDR
EXECUTION OF
STOP INSTRUCTION
RESET
tWAIT
tSREL
Figure 13-2. Stop Mode Release Timing When Initiated by RESET
IDLE MODE
~
NORMAL MODE
STOP MODE
DATA RETENTION MODE
~
VDD
EXECUTION OF
STOP INSTRUCTION
VDDDR
POWER-DOWN MODE TERMINATING SIGNAL
(INTERRUPT REQUEST)
tSREL
t WAIT
Figure 13-3. Stop Mode Release Timing When Initiated by Interrupt Request
13-9
ELECTRICAL DATA
KS57C2916/P2916 MICROCONTROLLER
0.8 VDD
0.2 VDD
MEASUREMENT
POINTS
0.8 VDD
0.2 VDD
Figure 13-4. A.C. Timing Measurement Points (Except for Xin and XTin)
1 / fx
tXL
tXH
Xin
VDD-0.5 V
0.4 V
Figure 13-5. Clock Timing Measurement at Xin
1 / f xt
t XTL
t XTH
VDD - 0.5 V
XTin
0.4 V
Figure 13-6. Clock Timing Measurement at XT in
13-10
KS57C2916/P2916 MICROCONTROLLER
ELECTRICAL DATA
tRSL
RESET
0.2 VDD
Figure 13-7. Input Timing for RESET Signal
tINTL
INT0, 1, 2, 4, K0 to K3
t INTH
0.8 VDD
0.2 VDD
Figure 13-8. Input Timing for External Interrupts
13-11
ELECTRICAL DATA
KS57C2916/P2916 MICROCONTROLLER
NOTES
13-12
KS57C2916/P2916 MICROCONTROLLER
ELECTRICAL 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.
(TA = 25 °C, fx = 4.2 MHz)
5.0
4.5
IDD1, CPU Clock = fx/4
IDD1, IDD2 (mA)
4.0
3.5
3.0
2.5
2.0
IDD1, CPU Clock = fx/64
1.5
1.0
IDD2
0.5
0
2.7
4.0
4.5
6.0
VDD (V)
Figure 13-11. IDD1, IDD2 VS. VDD
13-13
ELECTRICAL DATA
KS57C2916/P2916 MICROCONTROLLER
(T A = 25 °C, fx = 32.768 kHz)
50
45
I DD3
40
IDD3, 4, 5 (µA)
35
30
25
20
15
I DD4
10
5
I DD5
0
2.0
2.5
3.0
3.5
4.0
4.5
5.0
VDD (V)
Figure 13-12. IDD3, IDD4, IDD5 VS. VDD
13-14
5.5
6.0
6.5
KS57C2916/P2916 MICROCONTROLLER
ELECTRICAL DATA
(TA = 25 °C, CPU CLOCK = fx/4)
4.5
VDD = 6.0 V
4.0
IDD1 (mA)
3.5
3.0
VDD = 4.5 V
2.5
2.0
1.5
1.0
0.5
0
0.5
1.0
1.5
2.0
2.5
3.0
3.5
4.0
4.5
Main System Clock Frequency (MHz)
Figure 13-13. IDD1 VS. Main System Clock Frequency
(TA = 25 °C)
1.6
VDD = 6.0 V
1.4
I DD2 (mA)
1.2
1.0
VDD = 4.5 V
0.8
0.6
0.4
0.2
0
0.5
1.0
1.5
2.0
2.5
3.0
3.5
4.0
4.5
Main System Clock Frequency (MHz)
Figure 13-13. IDD2 VS. Main System Clock Frequency
13-15
ELECTRICAL DATA
KS57C2916/P2916 MICROCONTROLLER
(TA = 25 °C, Ports 0, 2, 3, 4, 5, 6, 7)
–25.0
–22.5
–20.0
IOH (mA)
–17.5
–15.0
–12.5
–10.0
–7.5
–5.0
–2.5
VDD = 4.5 V
VDD = 6.0 V
0
0.5
1.0
1.5
2.0
2.5
3.0
3.5
4.0
VOH (V)
Figure 13–15. IOH VS. VOH (P0, 2, 3, 4, 5, 6, 7)
13-16
4.5
5.0
5.5
6.0
KS57C2916/P2916 MICROCONTROLLER
ELECTRICAL DATA
(TA = 25 °C, Ports 8, 9)
–25.0
–22.5
–20.0
IOH (mA)
–17.5
–15.0
–12.5
–10.0
–7.5
–5.0
–2.5
VDD = 4.5 V
VDD = 6.0 V
0
0.5
1.0
1.5
2.0
2.5
3.0
3.5
4.0
4.5
5.0
5.5
6.0
VOH (V)
Figure 13–16. IOH VS. VOH (P8, 9)
13-17
ELECTRICAL DATA
KS57C2916/P2916 MICROCONTROLLER
(TA = 25 °C, Ports 0, 2, 3, 4, 5, 6, 7)
55.0
VDD = 6.0 V
50.0
45.0
IOL (mA)
40.0
VDD = 4.5 V
35.0
30.0
25.0
20.0
15.0
10.0
5.0
0
0.5
1.0
1.5
2.0
2.5
3.0
3.5
4.0
VOL (V)
Figure 13–17. IOL VS. VOL (P0, 2, 3, 4, 5, 6, 7)
13-18
4.5
5.0
5.5
6.0
KS57C2916/P2916 MICROCONTROLLER
ELECTRICAL DATA
(TA = 25 °C, Ports 8, 9)
55.0
VDD = 6.0 V
50.0
45.0
IOL (mA)
40.0
VDD = 4.5 V
35.0
30.0
25.0
20.0
15.0
10.0
5.0
0
0.5
1.0
1.5
2.0
2.5
3.0
3.5
4.0
4.5
5.0
5.5
6.0
VOL (V)
Figure 13–18. IOL VS. VOL (P8, 9)
13-19
ELECTRICAL DATA
KS57C2916/P2916 MICROCONTROLLER
NOTES
13-20
KS57C2916/P2916 MICROCONTROLLER
14
MECHANICAL DATA
MECHANICAL DATA
OVERVIEW
This section contains the following information about the device package:
— Package dimensions in millimetersD
— Pad diagram
— Pad/pin coordinate data table
14-1
MECHANICAL DATA
KS57C2916/P2916 MICROCONTROLLER
NOTES
14-2
KS57C2916/P2916 MICROCONTROLLER
MECHANICAL DATA
20.00 TYP
C
14.00 TYP
D
100 QFP
B
(Top View)
0.65 TYP
0.30 ± 0.1
0.15
+ 0.1
– 0.05
A
E
Package
Item
A
B
C
D
+ 0.1
– 0.05
100-QFP-1420A 25.00 ± 0.3 19.00 ± 0.3
2.45 MAX
0.15
100-QFP-1420C 23.20 ± 0.3 17.20 ± 0.3
3.00 MAX
0.15 ± 0.1
E
1.20 ± 0.2
0.80 ± 0.2
NOTE: Typical dimensions are in millimeters.
Figure 14-1. 100-QFP Package Dimensions
14-3
KS57C2916/P2916 MICROCONTROLLER
15
KS57P2916 OTP
KS57P2916 OTP
OVERVIEW
The KS57P2916 single-chip CMOS microcontroller is the OTP (One Time Programmable) version of the
KS57C2916 microcontroller. It has an on-chip OTP ROM instead of masked ROM. The EPROM is accessed by
serial data format.
The KS57P2916 is fully compatible with the KS57C2916, both in function and in pin configuration. Because of its
simple programming requirements, the KS57P2916 is ideal for use as an evaluation chip for the KS57C2916.
15-1
KS57C2916/P2916 MICROCONTROLLER
80
79
78
77
76
75
74
73
72
71
70
69
68
67
66
65
SEG40
SEG39
SEG38
SEG37
SEG36
SEG35
SEG34
SEG33
SEG32
SEG31
SEG30
SEG29
SEG28
SEG27
SEG26
SEG25
KS57P2916 OTP
SEG41
SEG42
SEG43
P1.3/INT4
P1.2/INT2
P1.1/INT1
P1.0/INT0
P0.3/BUZ/K3
P0.2/CLO/ BUZ /K2
SDAT /P0.1/TCLO 0 /K1
SCLK /P0.0/TCLO0/K0
VDD/VDD
VSS/VSS
Xout
Xin
VPP/TEST
XTin
XTout
RESET
/ RESET
KS57P2916
(TOP VIEW)
64
63
62
61
60
59
58
57
56
55
54
53
52
51
50
49
48
47
46
45
44
43
42
41
COM14
COM13
COM12
COM11
COM10
COM9
COM8
COM7
COM6
COM5
COM4
COM3
COM2
COM1
COM0
SEG0
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
CA
CB
VLC0
BIAS
COM15
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Figure 15-1. KS57P2916 Pin Assignments (80-QFP Package)
15-2
SEG24
SEG23
SEG22
SEG21
SEG20
SEG19
SEG18
SEG17
SEG16
SEG15
SEG14
SEG13
SEG12
SEG11
SEG10
SEG9
SEG8
SEG7
SEG6
SEG5
SEG4
SEG3
SEG2
SEG1
KS57C2916/P2916 MICROCONTROLLER
KS57P2916 OTP
Table 15-1. Descriptions of Pins Used to Read/Write the EPROM
Main Chip
During Programming
Pin Name
Pin Name
Pin No.
I/O
Function
P0.1
SDAT
10
I/O
Serial data pin. Output port when reading and
input port when writing. Can be assigned as a
Input/push-pull output port.
P0.0
SCLK
11
I/O
Serial clock pin. Input only pin.
TEST
VPP(TEST)
16
I
Power 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. (Option)
RESET
RESET
19
I
Chip initialization
VDD/VSS
VDD/VSS
12/13
I
Logic power supply pin. VDD should be tied to
+5 V during programming.
Table 15-2. Comparison of KS57P2916 and KS57C2916 Features
Characteristic
KS57P2916
KS57C2916
Program Memory
16 Kbyte EPROM
16 Kbyte mask ROM
Operating Voltage (VDD)
2.2 V to 3.4 V
2.2 V to 3.4 V
OTP Programming Mode
VDD = 5 V, VPP(TEST)=12.5V
Pin Configuration
80 QFP
80 QFP
EPROM Programmability
User Program 1 time
Programmed at the factory
OPERATING MODE CHARACTERISTICS
When 12.5 V is supplied to the VPP(TEST) pin of the KS57P2916, 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 15–3 below.
Table 15-3. Operating Mode Selection Criteria
VDD
VPP (TEST)
REG/MEM
Address
(A15–A0)
R/W
Mode
5V
5V
0
0000H
1
EPROM read
12.5 V
0
0000H
0
EPROM program
12.5 V
0
0000H
1
EPROM verify
12.5 V
1
0E3FH
0
EPROM read protection
NOTE: "0" means Low level; "1" means High level.
15-3
KS57P2916 OTP
KS57C2916/P2916 MICROCONTROLLER
Table 15-4. D.C. Electrical Characteristics
(TA = – 40 °C to + 85 °C, VDD = 2.2 V to 3.4 V)
Parameter
Supply
Current (1)
Symbol
Conditions
IDD1
VDD = 3V ± 10%
4.19 MHz (PCON=3H) crystal oscillator
C1 = C2 = 22 pF
IDD2
Idle mode; VDD = 3 V ± 10%
4.19 MHz (PCON=3H) crystal oscillator
C1 = C2 = 22 pF
Min
Typ
Max
Units
–
1.3
3.0
mA
0.4
1.0
15
30
5
15
IDD3 (2)
VDD = 3 V ± 10%
32 kHz crystal oscillator
IDD4 (2)
Idle mode; VDD = 3 V ± 10%
32 kHz crystal oscillator
IDD5
Stop mode; VDD = 3 V ± 10%
SCMOD=0000B,
XTin=0V
0.5
3
Stop mode; VDD = 3 V ± 10%
SCMOD=0100B
0.2
2
–
NOTES:
1. Data includes power consumption for subsystem clock oscillation.
2. When the system clock control register, SCMOD, is set to 1001B, main system clock oscillation stops and the
subsystem clock is used.
3. Current in the following circuits are not included; on-chip pull-up resistors, internal LCD voltage dividing resistors,
voltage doubler, and output port drive currents.
CPU CLOCK
Main OSC frequency (Divided by 4)
1.05 MHz
4.2 MHz
15.6 kHz
1
2
3
4
5
6
7
2.2V
SUPPLY VOLTAGE (V)
CPU CLOCK = 1/n x oscillator frequency (n = 4, 8, 64)
Figure 15-2. Standard Operating Voltage Range
15-4
µA