
14
3874 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
MITSUBISHI MICROCOMPUTERS
P30–P37
Pin
Name
Input/Output
I/O Structure
Non-Port Function
Ref.No.
Table 5 I/O port function (1)
Related SFRs
I/O PORTS
The I/O ports P0–P8 have direction registers which determine the
input/output direction of each individual pin. Each bit in a direction
register corresponds to one pin, and each pin can be set to be in-
put port or output port.
When “0” is written to the bit corresponding to a pin, that pin be-
comes an input pin. When “1” is written to that bit, that pin
becomes an output pin.
If data is read from a pin which is set to output, the value of the
port output latch is read, not the value of the pin itself. Pins set to
input are floating. If a pin set to input is wr itten to, only the port
output latch is written to and the pin remains floating.
P00–P07
Port P0
Input/output,
individual bits
CMOS compatible
input level
CMOS 3-state output
Key input (key-on
wake-up) interrupt in-
put
PULL UP register
(1)
(2)
CMOS compatible
input level
CMOS 3-state output
CMOS compatible
input level
CMOS 3-state output
CMOS compatible
input level
CMOS 3-state output
CMOS compatible
input level
CMOS 3-state output
CMOS compatible
input level
CMOS 3-state output
CMOS compatible
input level
CMOS 3-state output
Input/output,
individual bits
Input/output,
individual bits
Input/output,
individual bits
Input/output,
individual bits
Input/output,
individual bits
Input/output,
individual bits
Por t P1
Port P2
Port P3
Port P4
Por t P5
Port P6
P10–P17
P20–P27
P40/XCOUT
P41/XCIN
P42/INT1,
P43/INT2
Sub-clock generating
circuit I/O
External interrupt input
Serial I/O1 function I/O
CPU mode register
Interrupt edge selection
register
Serial I/O1 control reg-
ister
Serial I/O1 status regis-
ter
UART control register
PULL UP register
P44/RXD
P45/TXD
P46/SCLK1
Timer 123 mode regis-
ter
Timer 2 output
P50/TOUT
P51/INT3,
P52/INT4,
P53/INT5
P54/CNTR0
P55/CNTR1
P56/RTP0
P57/RTP1
External interrupt input
Interrupt edge selection
register
Timer X function I/O
Timer X mode register
Timer Y function I/O
Real time port function
output
Real time port function
output
A-D converter input
Timer Y mode register
Timer X mode register
Timer Y mode register
(1)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(5)
(11)
(12)
(13)
(14)
A-D control register
P60/AN0–
P67/AN7
P47/SRDY1