3 - 2
N ame
N o .
I / O
Ot her Func t ion
Func tion
Des c ription
P20
P21
P22
P23
38
39
40
41
Input
IRQ0
IRQ1, SENS
IRQ2
IRQ3
Input port 2
4-bit input port.
A p ull-up re si sto r fo r e a ch b i t ca n b e se le cte d
individually by the P2PLU register. At reset, pull-up
resistors are disabled.
P27
32
Input
NRST
Input port 2
P27 has an n-channel open-drain configuration. When
"0" is written and the reset is initiated by software, a
low level will be output.
P40
P41
P42
P43
P44
P45
P46
P47
42
43
44
45
46
47
48
49
I/O
KEY0
KEY1
KEY2
KEY3
KEY4
KEY5
KEY6
KEY7
I/O port 4
8-bit CMOS tri-state I/O port.
Each bit can be set individually as either an input or
output by the P4DIR register. A pull-up resistor for each
bit can be selected individually by the P4PLU register.
At reset, the i nput mode i s selected and pull-up
resistors are disabled (high impedance output).
P50
P51
P52
P53
P54
50
51
52
53
54
I/O
NWE, LED0
NRE, LED1
NCS, LED2
A16, LED3, SEG27
A17, LED4, SEG26
I/O port 5
5-bit CMOS tri-state I/O port.
Each bit can be set individually as either an input or
output by the P5DIR register. A pull-up resistor for each
bit can be selected individually by the P5PLU register.
At reset, when single chip mode is selected, the input
mode is selected and pull-up resistors for P50 to P54
are disabled (high impedance output).
When output mode is selected, P50 to P54 can be
used for LED direct drive, and P53 and P54 can be
used for segment drive.
P60
P61
P62
P63
P64
P65
P66
P67
55
56
57
58
59
60
61
62
I/O
A0, SEG25
A1, SEG24
A2, SEG23
A3, SEG22
A4, SEG21
A5, SEG20
A6, SEG19
A7, SEG18
I/O port 6
8-bit CMOS tri-state I/O port.
Each bit can be set individually as either an input or
output by the P6DIR register. A pull-up resistor for each
bit can be selected individually by the P6PLU register.
At reset, when single chip mode is selected, the input
mode is selected and pull-up resistors for P60 to P67
are disabled (high impedance output).
When output mode is selected, these pins can be used
for segment drive.
P70
P71
P72
P73
P73
P75
P76
P77
63
64
65
66
67
68
69
70
I/O
A8, SD0O, SEG17
A9, SDO1, SEG16
A10, SDO2, SEG15
A11, SDO3, SEG14
A12, SDO4, SEG13
A13, SDO5, SEG12
A14, SDO6, SEG11
A15, SDO7, SEG10
I/O port 7
8-bit CMOS tri-state I/O port.
Each bit can be set individually as either an input or
output by the P7DIR register. A pull-up or pull-down
resistor for each bit can be selected individually by the
P7PLUD register. However, pull-up and pull-down
resistors cannot be mixed.
This port have a synchronous output function for
external 2 interrupt, timer 1 interrupt, timer 2 interrupt
and timer 4 interrupt.
At reset, when single-chip mode is selected, the input
mode is selected and pull-up resistors for P70 to P77
are disabled (high impedance output).
When output mode is selected, these pins can be used
for segment drive.
PIN DESCRIPTIONS OF IC
MCU MN101C39C_399