2.2.7 P120 (port 12)
P120 functions as a 1-bit I/O port. This pin also functions as a pin for external interrupt request input.
The following operation modes can be specified.
(1) Port mode
P120 functions as a 1-bit I/O port. P120 can be set to input or output using port mode register 12 (PM12). Use of
an on-chip pull-up resistor can be specified by pull-up resistor option register 12 (PU12).
(2) Control mode
P120 functions as an external interrupt request input pin (INTP0) for which the valid edge (rising edge, falling
edge, or both rising and falling edges) can be specified.
2.2.8 P130 (port 13)
P130 functions as a 1-bit output-only port.
2.2.9 AV
REF
This is the A/D converter reference voltage input pin.
When the A/D converter is not used, connect this pin directly to EV
Note Connect port 2 directly to EV
2.2.10 AV
SS
This is the A/D converter ground potential pin. Even when the A/D converter is not used, always use this pin with
the same potential as the EV
2.2.11 RESET
This is the active-low system reset input pin.
2.2.12 X1 and X2
These are the pins for connecting a resonator for X1 input clock.
When supplying an external clock, input a signal to the X1 pin and input the inverse signal to the X2 pin.
2.2.13 XT1 and XT2
These are the pins for connecting a resonator for subsystem clock.
When supplying an external clock, input a signal to the XT1 pin and input the inverse signal to the XT2 pin.
2.2.14 V
and EV
DD
DD
V
is the positive power supply pin for other than ports.
DD
EV
is the positive power supply pin for ports.
DD
2.2.15 V
and EV
SS
SS
V
is the ground potential pin for other than ports.
SS
EV
is the ground potential pin for ports.
SS
2.2.16 V
(flash memory versions only)
PP
This is a pin for flash memory programming mode setting and high-voltage application for program write/verify.
Connect to EV
or V
SS
SS
36
CHAPTER 2 PIN FUNCTIONS
when it is used as a digital port.
DD
pin or V
pin.
SS
SS
in the normal operation mode.
User's Manual U16227EJ2V0UD
Note
or V
.
DD
DD