English
Language : 

Z86L972 Datasheet, PDF (69/91 Pages) Zilog, Inc. – Low-Voltage Microcontrollers
Z86L972/Z86L973/Z86L974
Low-Voltage Microcontrollers
62
A bit set to 1 in the P2M Register configures the corresponding bit in Port 2 as an
input, while a bit set to 0 configures an output line.
Port 4 Control and Mode Registers (P4 and P4M)
Port 4 is a general-purpose 8-bit, bidirectional I/O port, as shown in Table 26.
Each of the eight Port 4 I/O lines can be independently programmed as either
input or output using the Port 4 Mode Register (see Table 27.)
Table 26. P4 Register [Group/Bank 00h, Register 4 (R4)]
Bit
7
6
5
Bit/Field Port 4 Data
R/W
R/W R/W R/W
Reset
X
X
X
R = Read, W = Write, X = Indeterminate
Bit
Position Bit/Field
R/W
76543210 Port 4 Data
R/W
4
R/W
X
Value
Data
3
2
1
0
R/W R/W R/W R/W
X
X
X
X
Description
Port 4 Input/Output Register
.
Table 27. P4M Register (Group/Bank 0Fh, Register 2)
Bit
7
6
5
Bit/Field P47M P46M P45M
R/W
R/W R/W R/W
Reset
1
1
1
R = Read, W = Write, X = Indeterminate
Bit
Position Bit/Field
R/W
7654_210 Port 4 Mode
R/W
(by bit)
Select
____3___ P43
R/W
Mode Select
4
P44M
R/W
1
Value
1
0
0
1
3
P43M
R/W
1
2
P42M
R/W
1
1
P41M
R/W
1
Description
Input
Output
Output
Tristate High Impedance
0
P40M
R/W
1
A bit set to 1 in the P4M Register configures the corresponding bit in Port 4 as an
input, while a bit set to 0 configures an output line.
Note: P43, the controlled current output pad, cannot be configured as
an input. (P43 read = P43 out)
Port 5 Control and Mode Registers (P5 and P5M)
Port 5 is a general-purpose 8-bit, bidirectional I/O port, as shown in Table 28.
Each of the eight Port 5 I/O lines can be independently programmed as either
input or output using the Port 5 Mode Register (see Table 29.)
PS010504-1002
PRELIMINARY