CHAPTER 4 PORT FUNCTIONS
User's Manual U11919EJ3V0UM00
82
Figure 4-12. Port Mode Register Format
(2)
Pull-up resistor option register (PUO)
The pull-up resistor option register (PUO) sets whether an on-chip pull-up resistor on each port is used or
not.
On the port which is specified to use the on-chip pull-up resistor in the PUO, the pull-up resistor can be
internally used only for the bits set in the input mode. No on-chip pull-up resistors can be used for the bits
set in the output mode in spite of setting the PUO. On-chip pull-up resistors cannot be used either when the
pins are used as the alternate-function output pins.
PUO is set with a 1-bit or 8-bit memory manipulation instruction.
RESET input clears PUO to 00H.
Figure 4-13. Pull-Up Resistor Option Register Format
PMmn
0
Output mode (output buffer ON)
Input mode (output buffer OFF)
1
Pmn Pin Input/Output Mode Selection
m = 0, 1, 4 : n = 0 to 7
m = 2, 3 : n = 0 to 2
m = 5 : n = 0 to 3
PM07
PM06
PM05
PM04
PM03
PM02
PM01
PM00
PM0
7
6
5
4
Symbol
Address
After Reset
R/W
FF20H
FFH
R/W
3
2
1
0
PM17
PM16
PM15
PM14
PM13
PM12
PM11
PM10
PM1
FF21H
FFH
R/W
1
1
1
1
1
PM22
PM21
PM20
PM2
FF22H
FFH
R/W
1
1
1
1
1
PM32
PM31
PM30
PM3
FF23H
FFH
R/W
PM47
PM46
PM45
PM44
PM43
PM42
PM41
PM40
PM4
FF24H
FFH
R/W
1
1
1
1
PM53
PM52
PM51
PM50
PM5
FF25H
FFH
R/W
PUOm
0
1
Port m On-Chip Pull-Up Resistor Selection
(m = 0 to 5)
On-chip pull-up resistor not used
On-chip pull-up resistor used
0
0
PUO5
PUO4
PUO3
PUO2
PUO1
PUO0
PUO
7
6
<5>
<4>
Symbol
Address
After Reset
R/W
FFF7H
00H
R/W
<3>
<2>
<1>
<0>
Summary of Contents for mPD789022
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 ...