82
CHAPTER 4 PORT FUNCTIONS
Preliminary User’s Manual U16035EJ1V0UM
4.2.6 Port 5
Port 5 is an 8-bit I/O port with output latch. The P50 to P57 pins can specify the input mode/output mode in 1-
bit units with port mode register 5 (PM5). An on-chip pull-up resistor of P50 to P57 pins can be used for them in 1-
bit units with pull-up resistor option register 5 (PU5).
Port 5 can drive LEDs directly.
RESET input sets port 5 to input mode.
Figure 4-10 shows a block diagram of port 5.
Figure 4-10. Block Diagram of P50 to P57
RD
P50/A8 to
P57/A15
P-ch
WR
PU
WR
PORT
WR
PM
PU50 to PU57
Output latch
(P50 to P57)
PM50 to PM57
Selector
V
DD0
Internal bus
Selector
Memory expansion
mode register
(MEM)
PU:
Pull-up resistor option register
PM: Port mode register
RD: Port 5 read signal
WR: Port 5 write signal