CHAPTER 5 PORT FUNCTIONS
User’s Manual U13045EJ2V0UM00
84
Figure 5-10. Port Mode Register Format
(2) Pull-up resistor option register 0 (PU0)
The pull-up resistor option register (PU0) sets whether to use on-chip pull-up resistors at each port or not.
At a port where use of on-chip pull-up resistors has been specified by PU0, the pull-up resistors can be internally
used only for the bits set in input mode. No on-chip pull-up resistors can be used for the bits set in output
mode, in spite of setting PU0. On-chip pull-up resistors can also not be used when the pins are used as the
alternate-function output pins.
PU0 is set with a 1-bit or 8-bit memory manipulation instruction.
RESET input clears PU0 to 00H.
Figure 5-11. Pull-Up Resistor Option Register 0 Format
(3) Pull-up resistor option register B2 (PUB2)
This register specifies whether an on-chip pull-up resistor is connected to each pin of port 2. The pin so
specified by PUB2 is connected to on-chip pull-up resistor regardless of the setting of the port mode register.
PUB2 is set with a 1-bit or 8-bit manipulation instruction.
RESET input sets this register to 00H.
Figure 5-12. Pull-Up Resistor Option Register B2 Format
PMmn
0
Output mode (output buffer ON)
Input mode (output buffer OFF)
1
1
1
1
1
1
1
1
1
1
1
PM25
1
1
1
PM24
1
PM03
1
PM23
PM53
PM02
1
PM22
PM52
PM01
PM11
PM21
PM51
PM00
PM10
PM20
PM50
PM0
PM1
PM2
PM5
7
Symbol
Address
After reset
6
5
4
3
2
1
0
R/W
FF20H
FF21H
FF22H
FF25H
FFH
FFH
FFH
FFH
R/W
R/W
R/W
R/W
Pmn pin input/output mode selection (m = 0 to 2, 5, n = 0 to 7)
PU0m
0
1
0
0
0
0
0
0
PU01 PU00
PU0
Symbol
Address
Pm on-chip pull-up resistor selection (m = 0, 1)
On-chip pull-up resistor not used
On-chip pull-up resistor used
After reset
7
6
5
4
R/W
FFF7H
00H
R/W
3
2
<1>
<0>
PUB2n
0
1
0
0
PUB25 PUB24 PUB23 PUB22 PUB21 PUB20
PUB2
Symbol
Address
P2n on-chip pull-up resistor selection (n = 0 to 5)
On-chip pull-up resistor not used
On-chip pull-up resistor used
After reset
7
6
<5>
<4>
R/W
FF32H
00H
R/W
<3>
<2>
<1>
<0>
Summary of Contents for mPD789101
Page 2: ...2 User s Manual U13045EJ2V0UM00 MEMO...
Page 10: ...10 User s Manual U13045EJ2V0UM00 MEMO...
Page 16: ...User s Manual U13045EJ2V0UM00 16 MEMO...
Page 46: ...User s Manual U13045EJ2V0UM00 46 MEMO...
Page 72: ...72 User s Manual U13045EJ2V0UM00 MEMO...
Page 86: ...User s Manual U13045EJ2V0UM00 86 MEMO...
Page 94: ...User s Manual U13045EJ2V0UM00 94 MEMO...
Page 102: ...User s Manual U13045EJ2V0UM00 102 MEMO...
Page 128: ...User s Manual U13045EJ2V0UM00 128 MEMO...
Page 148: ...User s Manual U13045EJ2V0UM00 148 MEMO...
Page 162: ...User s Manual U13045EJ2V0UM00 162 MEMO...
Page 218: ...User s Manual U13045EJ2V0UM00 218 MEMO...
Page 238: ...User s Manual U13045EJ2V0UM00 238 MEMO...
Page 240: ...User s Manual U13045EJ2V0UM00 240 MEMO...
Page 256: ...User s Manual U13045EJ2V0UM00 256 MEMO...
Page 258: ...258 User s Manual U13045EJ2V0UM00 MEMO...