CHAPTER 4 PORT FUNCTIONS
User's Manual U11919EJ3V0UM00
77
4.2.5 Port 4
This is an 8-bit I/O port with output latch. Port 4 can be specified in the input or output mode in 1-bit units by
using port mode register 4 (PM4). When using P40 to P47 pins as input port pins, on-chip pull-up resistors can be
connected in 8-bit units by using the pull-up resistor option register (PUO).
The pins of this port are also used as the key return input.
RESET input sets port 4 to input mode.
Figure 4-8 shows the block diagram of port 4.
Caution
When using port 4 for the key return function, it is necessary to set key return mode register 00.
For details of the settings, see Section 10.3 (5).
Figure 4-8. Block Diagram of P40 to P47
WR
KRM00
Internal Bus
V
DD0
P40/KR0 to
P47/KR7
WR
PUO
RD
WR
PORT
WR
PM
PUO4
Alternate
Function
Output Latch
(P40 to P47)
PM40 to PM47
KRM000 to KRM007
Selector
P-ch
KRM00 : Key return mode register 00
PUO
: Pull-up resistor option register
PM
: Port mode register
RD
: Port 4 read signal
WR
: Port 4 write signal
Summary of Contents for mPD789026 Subseries
Page 2: ...User s Manual U11919EJ3V0UM00 2 MEMO...
Page 8: ...User s Manual U11919EJ3V0UM00 8 MEMO...
Page 12: ...User s Manual U11919EJ3V0UM00 12 MEMO...
Page 22: ...User s Manual U11919EJ3V0UM00 22 MEMO...
Page 32: ...User s Manual U11919EJ3V0UM00 32 MEMO...
Page 84: ...User s Manual U11919EJ3V0UM00 84 MEMO...
Page 92: ...User s Manual U11919EJ3V0UM00 92 MEMO...
Page 104: ...User s Manual U11919EJ3V0UM00 104 MEMO...
Page 166: ...User s Manual U11919EJ3V0UM00 166 MEMO...
Page 178: ...User s Manual U11919EJ3V0UM00 178 MEMO...
Page 184: ...User s Manual U11919EJ3V0UM00 184 MEMO...
Page 204: ...User s Manual U11919EJ3V0UM00 204 MEMO...
Page 206: ...User s Manual U11919EJ3V0UM00 206 MEMO...