CHAPTER 4 PORT FUNCTIONS
Preliminary User’s Manual U19014EJ1V0UD
80
4.5 Settings of Port Mode Register and Output Latch When Using Alternate Function
To use the alternate function of a port pin, set the port mode register and output latch as shown in Table 4-5.
Table 4-5. Settings of Port Mode Register and Output Latch When Using Alternate Function
Alternate Function
Pin Name
Function Name
I/O
PM
××
P
××
P00 TI000
Input
1
×
TI010 Input
1
×
P01
TO00 Output
0
0
Input 1
×
P10 SCK10
Output 0 1
P11 SI10
Input
1
×
P12 SO10
Output 0
0
P13 TxD6
Output 0
1
P14 RxD6
Input
1
×
P16 TOH1
Output 0
0
TI50 Input
1
×
P17
TO50 Output
0
0
P30 to P32
INTP1 to INTP3
Input
1
×
TI51 Input
1
×
P33
TO51 Output
0
0
P120 INTP0
Input
1
×
P121 X1
Note
−
×
×
X2
Note
−
×
×
P122
EXCLK
Note
Input
×
×
Note
When using the P121 and P122 pins to connect a resonator for the main system clock (X1, X2) or to input
an external clock for the main system clock (EXCLK), the X1 oscillation mode or external clock input mode
must be set by using the clock operation mode select register (OSCCTL) (for details, see
5.3 (1) Clock
operation mode select register (OSCCTL)
. The reset value of OSCCTL is 00H (all of the P121 and P122
are I/O port pins). At this time, setting of PM121, PM122, P121, and P122 is not necessary.
Remarks
1.
×
: Don’t
care
PM
××
: Port mode register
P
××
:
Port output latch
2.
The X1, X2, P31, and P32 pins of the
µ
PD78F0730 can be used as on-chip debug mode setting pins
(OCD0A, OCD0B, OCD1A, OCD1B) when the on-chip debug function is used. For details, see
CHAPTER 22 ON-CHIP DEBUG FUNCTION.
electronic components distributor