152

CHAPTER 6 PORT FUNCTIONS

Figure 6-19. Port Mode Register Format
PM0
PM1
PM2
1 PM06 PM03 PM02 PM01 1
76543210Symbol
PM3
PM5
FF20H
FF21H
FF22H
FF23H
FF25H
FFH
FFH
FFH
FFH
FFH
R/W
R/W
R/W
R/W
R/W
Address After
Reset R/W
PM17 PM16 PM15 PM14 PM13 PM12 PM11 PM10
PM27 PM26 PM25 PM24 PM23 PM22 PM21 PM20
PM37 PM36 PM35 PM34 PM33 PM32 PM31 PM30
PM57 PM56 PM55 PM54 PM53 PM52 PM51 PM50
PM6
PM7
FF26H
FF27H
FFH
FFH
R/W
R/W
PM67 PM66 PM65 PM64 PM63 PM62 PM61 PM60
1 1 1 1 1 PM72 PM71 PM70
PM05 PM04
PM12
PM13
PMmn Pmn Pin Input/Output Mode Selection
(m=0-3, 5-7, 12, 13 : n=0-7)
0
1
Output mode (output buffer ON)
Input mode (output buffer OFF)
FF2CH
FF2DH
FFH
FFH
R/W
R/W
PM122PM121 PM120
111111
PM131PM130
PM125PM124 PM123PM127PM126