86
CHAPTER 4 PORT FUNCTIONS
Preliminary User’s Manual U16035EJ1V0UM
Figure 4-13. Format of Port Mode Register (PM0, PM2 to PM5, PM7)
Address: FF20H After reset: FFH R/W
Symbol
7
6
5
4
3
2
1
0
PM0
1
1
1
1
PM03
PM02
PM01
PM00
Address: FF22H After reset: FFH R/W
Symbol
7
6
5
4
3
2
1
0
PM2
1
1
PM25
PM24
PM23
PM22
PM21
PM20
Address: FF23H After reset: FFH R/W
Symbol
7
6
5
4
3
2
1
0
PM3
1
PM36
PM35
PM34
1
Note
1
Note
1
Note
1
Note
Address: FF24H After reset: FFH R/W
Symbol
7
6
5
4
3
2
1
0
PM4
PM47
PM46
PM45
PM44
PM43
PM42
PM41
PM40
Address: FF25H After reset: FFH R/W
Symbol
7
6
5
4
3
2
1
0
PM5
PM57
PM56
PM55
PM54
PM53
PM52
PM51
PM50
Address: FF27H After reset: FFH R/W
Symbol
7
6
5
4
3
2
1
0
PM7
1
1
PM75
PM74
PM73
PM72
PM71
PM70
PMmn
Pmn pin I/O mode selection (m = 0, 2 to 5, 7; n = 0 to 7)
0
Output mode (Output buffer on)
1
Input mode (Output buffer off)
Note
Since the lower 4 bits (PM33 to PM30) of PM3 are not fixed to 1, be sure to set the lower 4 bits to 1 when
setting by an 8-bit memory manipulation instruction.