CHAPTER 4 PORT FUNCTIONS
Preliminary User’s Manual U16846EJ1V0UD
78
Figure 4-14. Format of Port Mode Register
Symbol
7 6 5 4 3 2 1 0
Address
After
reset
R/W
PM0
1 1 1 1
PM03
PM02
PM01
PM00
FF20H
FFH
R/W
PM1 PM17 PM16 PM15 PM14 PM13 PM12 PM11 PM10 FF21H FFH R/W
PM3
1 1 1 1
PM33
PM32
PM31
PM30
FF23H
FFH
R/W
PM12
1 1 1 1 1 1 1
PM120
FF2CH
FFH
R/W
PMmn
Pmn pin I/O mode selection
(m = 0, 1, 3, 12; n = 0 to 7)
0
Output mode (output buffer on)
1
Input mode (output buffer off)
Table 4-4. Settings of Port Mode Register and Output Latch When Alternate Function Is Used
Alternate Function
Pin Name
Name I/O
PM
××
P
××
P00 TI000
Input
1
×
TI010 Input
1
×
P01
TO00 Output
0
0
Input 1
×
SCK10
Output 0 1
P10
TxD0
Note
Output
0
1
SI10 Input
1
×
P11
RxD0
Note
Input
1
×
P12 SO10
Output
0
0
P13 TxD6
Output
0
1
P14 RxD6
Input
1
×
P15 TOH0
Output
0
0
TOH1 Output
0
0
P16
INTP5 Input
1
×
TI50 Input
1
×
P17
TO50 Output
0
0
P30 to P33
INTP1 to INTP4
Input
1
×
P120 INTP0
Input
1
×
Note TxD0 and RxD0 are available only in the
µ
PD78F0102H and 78F0103H.
Remark
×
: Don’t
care
PM
××
: Port mode register
P
××
:
Port output latch