![](http://datasheet.mmic.net.cn/300000/KS57C21116_datasheet_16200489/KS57C21116_5.png)
PRODUCT OVERVIEW
KS57C21116/C21124/C21132/P21132 MICROCONTROLLER
1--5
PIN DESCRIPTIONS
Table 1-1. KS57C21116/C21124/C21132 Pin Descriptions
Pin Name
P0.0
P0.1
P0.2
P0.3
Pin Type
I/O
Description
Number
16
17
18
19
Share Pin
SCK
/K0
SO/K1
SI/K2
BUZ/K3
4-bit I/O port.
1-bit and 4-bit read/write and test is possible.
4-bit unit pull-up resisters are assignable to input pins
by software and are automatically disabled for output
pins. Each bit pin can be allocated as input or output
(1-bit unit). The N-ch open drain or push-pull output
may be selected by software (1-bit unit).
4-bit input port.
1-bit and 4-bit read and test is possible.
4-bit unit pull-up resistors are assignable to input pins
by software.
4-bit I/O port. 1-bit and 4-bit read/write and test is
possible. I/O function is same as port 0.
P1.0
P1.1
P1.2
P1.3
P2.0
P2.1
P2.2
P2.3
P3.0
P3.1
P3.2
P3.3
P4.0
P4.1
P4.2
P6.0
P6.1
P6.2
P6.3
P7.0–P7.3
I
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
INT0
INT1
INT2
INT4
M
LCDFR
CLO1
CLO2
TCLO0/CL
TCLO1
TCL0
TCL1
CIN0
CIN1
CIN2
K4/SEG79
K5/SEG78
K6/SEG77
K7/SEG76
SEG75–72
I/O
I/O
4-bit I/O port. 1-bit and 4-bit read/write and test is
possible. I/O function is same as port 0.
I/O
3-bit I/O port. I/O function is same as port 0 except
that port 4 is 3-bit I/O port.
I/O
4-bit I/O port. 1-, 4-bit and 8-bit read/write and test is
possible. 4-bit unit pull-up resisters are assignable to
input pins by software and are automatically disabled
for output pins. Each bit pin can be allocated as input
or output (1-bit unit). The N-ch open drain or push-
pull output may be selected by software (4-bit unit).
4-bit I/O port. 1-, 4-bit and 8-bit read/write and test is
possible. I/O function is same as port 6, 7.
4-bit I/O port. 1-, 4-bit and 8-bit read/write and test is
possible. I/O function is same as port 6, 7.
4-bit I/O port. 1-, 4-bit and 8-bit read/write and test is
possible. I/O function is same as port 6, 7.
Serial I/O interface clock signal
Serial data output
Serial data input
2, 4, 8, 16 kHz frequency output for buzzer sound
External interrupts with rising/falling edge detection
47–50
P8.0–P8.3
P9.0–P9.3
P10.0–P10.3
P11.0–P11.3
P12.0–P12.3
P13.0–P13.3
SCK
SO
SI
BUZ
K0–K3
K4–K7
I/O
51–54
55–58
59–62
63–66
67–70
71–74
16
17
18
19
16–19
43–46
SEG71–68
SEG67–64
SEG63–60
SEG59–56
SEG55–52
SEG51–48
P0.0
P0.1
P0.2
P0.3
P0.0–P0.3
P6.0–P6.3
I/O
I/O
I/O
I/O
I/O
I/O
I/O