The KS57C21408/C21418/P21408 is a SAM47 core-based 4-bit CMOS single-chip microcontroller. It has a
timer/counter and LCD drivers.
The KS57P21408 is especially suited for use in data bank, telephone and LCD general purpose.
It is built around the SAM47 core CPU and contains ROM, RAM, 39 I/O lines, programmable timer/counter,
buzzer output, enough LCD dot matrix, and segment drive pins.
The KS57C21408/C21418/P21408 can be used for dedicated control functions in a variety of applications, and is
especially designed for multi data bank, telephone and LCD game.
OTP
The KS57C21408/C21418 microcontroller is also available in OTP (One Time Programmable) version,
KS57P21408. KS57P21408 microcontroller has an on-chip 8 K-byte one-time-programable EPROM instead of
masked ROM. The KS57P21408 is comparable to KS57C21408/C21418, both in function and in pin
configuration.
1-1
PRODUCT OVERVIEWKS57C21408/C21418/P21408
FEATURES SUMMARY
Memory
•8192 × 8 bit program memory
•5120 × 4 bit data memory in KS57C21408
•2560 x 4 bit data memory in KS57C21418
•108 x 5 bit display memory
39 I/O Pins
•Input: 6 pins
•I/O: 17 pins
•Output: maximum 16 pins for 1-bit level output
(sharing with segment driver outputs)
8-Bit Basic Timer
•Four internal timer functions
8-Bit Timer/Counter 0
•Programmable 8-bit timer
•External event counter
•Arbitrary clock frequency output
•External clock signal divider
LCD Display
•12 characters dot matrix display (5 x 7)
•12 digit display (8 segments)
•60 segments and 9 common pins
Power-Down Modes
•Idle mode (only CPU clock stops)
•Stop mode (Main-System clock and CPU clock
stops)
Oscillation Sources
•Crystal, ceramic, or External RC for system clock
•Main-system clock frequency: 0.4 MHz - 6MHz
•Sub-system clock frequency: 32,768kHz
•CPU clock divider circuit (by 4,8, or 64)
Instruction Execution Times
•0.67, 1.33, 10.7 µs at 6MHz
•0.95, 1.91, 15.3 µs at 4.19 MHz
•122 µs at 32.768 kHz
Watch Timer
•Time interval generation: 0,5ms, 3,9ms at
32768Hz
K0-K3
1 and 4-bit read, and test are possible.
Pull-up registers.
P1.0
P1.1
2-bit Input port.
I
1 and 4-bit read, and test are possible, 2-bit pull-up
A-337
36
INT0
INT1
resistors are assignable by software.
P2.0
P2.1
2-bit I/O port. 1 and 4-bit read/write, and test are
I/O
possible.
D23
24
BUZ
CLO
Each individual pin can be specified as input or
output.
2-bit pull-up resistors are assignable by software.
Pull-up resistors are automatically disabled for
output pins.
P4.0
P4.1
P4.2
P5.0 - P5.3
4-bit I/O port. 1, 4, and 8-bit read/write, and test are
I/O
possible.
4-pin unit can be specified as input or output.
4-bit pull-up resistors are assignable by software.
E
E-1
E-1
E-1
29
30
31
25-28
TCL0
TCLO0
Pull-up resistors are automatically disabled for
output pins.
Individual pins are software configurable as opendrain or push-pull output.
P6.0 - P6.3
4-bit I/O port. 1, 4,and 8-bit read/write, and test are
I/O
D-17-10KS0 - KS3
possible.
Each individual pin can be specified as input or
output.
4-bit pull-up resistors are assignable by software.
Pull-up resistors are automatically disabled for
output pins.
P7.0 - P7.34-bit I/O port. 1, 4, and 8-bit read/write, and test are
11-14KS4 - KS7
possible.
4-pin unit can be specified as input or output.
4-bit pull-up resistors are assignable by software.
Pull-up resistors are automatically disabled for
output pins.
P8.0 - P8.15O4-bit controllable output.
(Dual function as segment output pins)
SEG16-SEG59LCD segment display signal output.H-1058-100
H-942-57SEG0 -
SEG15
-
,1
SEG0 - SEG15LCD segment display signal output.H-942-57P8.0 - P8.15
COM0 - COM8LCD common signal output.H-1138-41
-
2-6
INT0 - INT1IExternal interrupts. The triggering edge for INT0,