
CHAPTER 2 PIN FUNCTIONS
User’s Manual U19780EJ2V0UD
36
(h) TI010
This is the pin for inputting a capture trigger signal to the capture register (CR000) of 16-bit timer/event
counter 00.
(i) TO00
This is the timer output pin of 16-bit timer/event counter 00.
2.2.3 P20 to P27 (port 2)
P20 to P27 function as an I/O port. These pins also function as pins for A/D converter analog input, anarog
reference voltage input, and o
perational
amplifier output.
The following operation modes can be specified in 1-bit units.
(1) Port
mode
P20 to P27 function as an I/O port. P20 to P27 can be set to input or output port in 1-bit units using port mode
register 2 (PM2).
(2) Control
mode
P20 to P27 function as pins for A/D converter analog input, anarog reference voltage input, and operational
amplifier output.
(a) ANI0 to ANI6, ANI15
P20 to P27 function as A/D converter analog input pins. When using these pins as analog input pins, see
(5)
ANI0 to ANI6, ANI8 to ANI11, and ANI15
in
12.6 Cautions for A/D Converter
.
(b) AV
REFM
This is an analog reference voltage input pin on the negative side of A/D converter.
(c) AMP0
−
, AMP1
−
These are input pins on the negative side of operational amplifier 0 and 1.
(d) AMP0+, AMP1+
These are input pins on the positive side of operational amplifier 0 and 1.
(e) AMP0OUT,
AMP1OUT
These are output pins of operational amplifier 0 and 1.
78K0/KB2-A 78K0/KC2-A
P20/ANI0/AMP0
−
P21/ANI1/AMP0OUT
P22/ANI2/AMP0+
P23/ANI3/AMP1
−
P24/ANI4/AMP1OUT
P25/ANI5/AMP1+
P26/ANI6
−
P27/ANI15/AV
REFM