13
MITSUBISHI MICROCOMPUTERS
7480/7481 GROUP
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
PRELIMINARY
Notice: This is not a final specification.
Some parametric limits are subject to change.
[Pull-up Control Registers]
Ports P0 and P1 are provided with a programmable pull-up tran-
sistor. When “1” is written to the pull-up control register and the
direction register is in the input mode, the pull-up transistor turns
on, and the port is pulled up.
I
Notes on Use for STP Instruction
When the 7480/7481 group is executing an STP instruction, apply
0 V or the same voltage as Vcc to the following pins.
If an intermediate voltage is applied to these pins, a through-cur-
rent flows to the input gates and the power current increases.
P4, P5, P3, P1
6
, P1
4
[Port P4P5 Input Control Register]
When ports P4
2
, P4
3
and P5 of the 7481 group are selected for in-
put, clear the corresponding direction register to “0” and set “1” to
the corresponding bit of the port P4P5 input control register.
Ports P4
2
, P4
3
and P5 are not included in the 7480 group. Fix
each bit of the port P4P5 input control register to “0”.
Fig. 10 Structure of pull-up control register
I/O Ports
[Direction Registers]
The I/O ports have direction registers which determine the input/
output direction of each pin in units of bit. When a bit of the direc-
tion register is set to “1”, the corresponding pin becomes an output
port. When the bit is cleared to “0”, it becomes an input port.
If data is read from a pin configured as output, the value of the
port latch is read rather than the value of this pin.
A pin configured as input becomes floating and its value can be
read. If data is written to a pin, it is written to the port latch, but the
pin remains floating.
Fig. 11 Structure of port P4P5 input control register
Port P4P5 input control register
(P4P5CON : address 00D2
16
)
P4
2
, P4
3
input control bit
P5 input control bit
(For the 7480 group) Set this bit to “0”.
(For the 7481 group) Set this bit to “1”.
b7
b0
Not used (“0” at read)
Port P1 pull-up control register
(P1PCON : address 00D1
16
)
P1
3
– P1
0
pull-up control bit
P1
7
– P1
4
pull-up control bit
b7
b0
Port P0 pull-up control register
(P0PCON
: address 00D0
16
)
P0
0
pull-up control bit
P0
1
pull-up control bit
P0
2
pull-up control bit
P0
3
pull-up control bit
P0
4
pull-up control bit
P0
5
pull-up control bit
P0
6
pull-up control bit
P0
7
pull-up control bit
b7
b0
0 : Pull-up transistor OFF
1 : Pull-up transistor ON
0 : Pull-up transistor OFF
1 : Pull-up transistor ON
Not used (undefined at read)