
27
MB90640A Series
s PERIPHERAL RESOURCES
1. Parallel Port
The MB90640A series has 75 I/O pins, and 8 open-drain output pins.
Ports 0 to 5 and ports 7 to 9 and A are I/O ports. The ports are inputs when the corresponding direction register
bit is “0” and outputs when the corresponding bit is “1”.
Port 0 is only available in single-chip mode.
Port 1 is only available when in data bus 8-bit mode of non-multiplex mode or in single-chip mode.
Ports 2 and 3 are only available when the address/data bus is in multiplex mode and single-chip mode.
Port 6 is an open-drain port.
(1) Register Details
Port data registers
Note: No register bit is provided for bits 0, 7 of port 7.
No register bit is provided for bit 7 of port 8.
No register bits are provided for bits 7, 6 of port 9.
Port 0 is only available in single-chip mode.
Bits 7, 6 of port 5 and bit 0 of port A are only available in single-chip mode.
Port 1 is only available when the external data bus is in 8-bit mode and single-chip mode.
Ports 2, 3 are only available in multiplex mode and single-chip mode.
Each port pin except port 6 can be specified as either an input or output by its corresponding direction register
when the pin is not set for use by a peripheral. When a port is set as an input, reading the data register always
reads the value corresponding to the pin level. When a port is set as an output, reading the data register reads the
data register latch value. The same applies when reading using a read-modify-write instruction.
When used as control outputs, reading the data register reads the control output value, irrespective of the direction
register value.
Address : PDR1
PDR3
PDR5
PDR7
PDR9
PDR0
PDR2
PDR4
PDR6
PDR8
PDRA
PDx7
PDx6
PDx5
PDx4
PDx3
PDx2
PDx1
PDx0
bit 15
bit 14
bit 13
bit 12
bit 11
bit 10
bit 9
bit 8
R/W
Initial value
: 000001H
: 000003H
: 000005H
: 000007H
: 000009H
: 000000H
: 000002H
: 000004H
: 000006H
: 000008H
: 00000AH
XXXXXXXXB
Address :
PDx7
PDx6
PDx5
PDx4
PDx3
PDx2
PDx1
PDx0
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
R/W
Initial value
XXXXXXXXB
R/W
X
: Readable and writable
: Indeterminate
Port data register