CHAPTER 5 PORT FUNCTIONS
Preliminary User’s Manual U17260EJ3V1UD
133
Notes 1.
The function of the ANI0/P20 to ANI7/P27 pins can be selected by using the A/D port configuration
register (ADPC), the analog input channel specification register (ADS), and PM2.
Table 5-6. Setting Functions of ANI0/P20 to ANI7/P27 Pins
ADPC
PM2
ADS
ANI0/P20 to ANI7/P27 Pins
Selects ANI.
Analog input (to be converted)
Input mode
Does not select ANI.
Analog input (not to be converted)
Selects ANI.
Analog input selection
Output mode
Does not select ANI.
Setting prohibited
Selects ANI.
Setting prohibited
Input mode
Does not select ANI.
Digital input
Selects ANI.
Setting prohibited
Digital I/O selection
Output mode
Does not select ANI.
Digital output
2.
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) or
subsystem clock (EXCLKS), 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
6.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 I/O port pins).
At this time, setting of PM121 to PM124 and P121 to P124 is not necessary.