Datasheet

CHAPTER 4 PORT FUNCTIONS
User’s Manual U18698EJ1V0UD
105
Notes 1.
μ
PD78F041x only.
2. The functions of the P20/ANI0 to P25/ANI5 pins are determined according to the settings of port
function register 2 (PF2), A/D port configuration register 0 (ADPC0), port mode register 2 (PM2),
analog input channel specification register (ADS).
Table 4-6. Setting Functions of P20/SEG21/ANI0
Note
to P25/SEG16/ANI5
Note
Pins
PF2
ADPC0
Note
PM2 ADS
P20/SEG21/ANI0
Note
to
P25/SEG16/ANI5
Note
Pins
Does not select
ANI.
Analog input (not to be converted)
Input mode
Selects ANI.
Analog input (to be converted by successive
approximation type A/D converter)
Analog input
selection
Output mode
Setting prohibited
Input mode
Digital input
Digital/Analog
selection
Digital I/O
selection
Output mode
Digital output
SEG output
selection
Segment outpu
Note
μ
PD78F041x only.
3. When using the P121 to P124 pins to connect a resonator for the main system clock (X1, X2) or
subsystem clock (XT1, XT2), or to input an external clock for the main system clock (EXCLK), the X1
oscillation mode, XT1 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) and (3) Setting of operation mode for subsystem clock pin). The reset value
of OSCCTL is 00H (all of the P121 to P124 are Input port pins).
4. Targeted at registers corresponding to each port.
5. RxD6 can be set as the input source for TI000 by setting ISC1 = 1.
6. Input enable of TM52 via TMH2 can be controlled by setting ISC2 = 1.
7. RxD6 can be set as the input source for INTP0 by setting ISC0 = 1.
8. When the P40/KR0/V
LC3 pin is set to the 1/4 bias method, it is used as VLC3. When the pin is set to
another bias method, it is used for the port function (P40) or the key interrupt function (KR0).
9. Set PF13 = 0 when using as port function.
Remarks 1. ×: Don’t care
: Does not apply.
PM××: Port mode register
P××: Port output latch
2. The functions within arrowheads (< >) can be assigned by setting the input switch control register
(ISC).
3. X1, X2 pins can be used as on-chip debug mode setting pins (OCD0A, OCD0B) when the on-chip
debug function is used. For detail, see CHAPTER 25 ON-CHIP DEBUG FUNCTION.