ML63295A User’s Manual
Chapter 10
Ports (INPUT, OUTPUT, I/O PORT)
10 – 24
(3) Port 8, Port 9, Port A control registers (P8CON0, P8CON1, P9CON0, P9CON1, PACON0, PACON1)
The port 8 control registers 0/1 (P8CON0, P8CON1), port 9 control registers 0/1 (P9CON0, P9CON1) and
port A control registers 0/1 (PACON0, PACON1) are 4-bit special function registers (SFRs) used to select
port input/output mode.
The input mode may be pull-down resistor input, pull-up resistor input or high-impedance input.
The output mode may be CMOS output, N-channel open drain output, P-channel open drain output or high-
impedance output.
Port 8
P81MD1
P81MD0
P80MD1
P80MD0
P8CON0 (023H)
(R/W)
bit 3
bit 2
bit 1
bit 0
Port 8.1 input/output mode select
Input mode
bit 3
0
1
×
bit 2
0 : Input with pull-up resistor
1 : High-impedance input
Port 8.0 input/output mode select
Input mode
bit 1
0
1
×
bit 0
0 : Input with pull-down resistor
1 : High-impedance input
Output mode
bit 3
0
1
bit 2
0 : CMOS output (initial value)
1 : High-impedance output
Output mode
bit 1
0
1
bit 0
0 : CMOS output (initial value)
1 : N-channel open drain output
0 : P-channel open drain output
1 : High-impedance output
1 : N-channel open drain output
0 : P-channel open drain output
0 : Input with pull-down resistor (initial value)
0 : Input with pull-up resistor (initial value)
P83MD1
P83MD0
P82MD1
P82MD0
P8CON1 (024H)
(R/W)
bit 3
bit 2
bit 1
bit 0
Port 8.3 input/output mode select
Input mode
bit 3
0
1
×
bit 2
Port 8.2 input/output mode select
Input mode
bit 1
0
1
×
bit 0
Output mode
bit 3
0
1
bit 2
Output mode
bit 1
0
1
bit 0
0 : Input with pull-up resistor
1 : High-impedance input
0 : Input with pull-up resistor
1 : High-impedance input
0 : Input with pull-down resistor (initial value)
0 : CMOS output (initial value)
1 : High-impedance output
0 : CMOS output (initial value)
1 : N-channel open drain output
0 : P-channel open drain output
1 : High-impedance output
1 : N-channel open drain output
0 : P-channel open drain output