
CHAPTER 12 A/D CONVERTER
User’s Manual U19780EJ2V0UD
337
The functions of the ANI0/AMP0-/P20 to ANI6/P26, ANI8/AMP2-/P80 to ANI11/P83, ANI15/AV
REFM
/P27 pins are
determined according to the settings of ADPC register, ADS register, PM2 register, PM8 register, OAENn bit, ADREF bit.
Table 12-3. Setting Functions of ANI0/AMP0-/P20, ANI2/AMP0+/P22, ANI3/AMP1-/P23, ANI5/AMP1+/P25,
ANI8/AMP2-/P80, and ANI10/AMP2+/P82 Pins
ADPC
Register
PM2, PM8
Register
OAENn bit
ADS Register
ANI0/AMP0-/P20, ANI2/AMP0+/P22,
ANI3/AMP1-/P23, ANI5/AMP1+/P25,
ANI8/AMP2-/P80, ANI10/AMP2+/P82 Pins
0
−
Digital input
Input mode
1
−
Setting prohibited
0
−
Digital output
Digital I/O
selection
Output mode
1
−
Setting prohibited
Selects ANI.
Analog input (to be converted into digital signal)
0
Does not select ANI.
Analog input (not to be converted into digital signal)
Selects ANI.
Setting prohibited
Input mode
1
Does not select ANI.
Operational amplifier input
Analog input
selection
Output mode
−
−
Setting prohibited
Table 12-4. Setting Functions of ANI1/AMP0OUT/P21, ANI4/AMP1OUT/P24, ANI9/AMP2OUT/P81 Pins
ADPC
Register
PM2, PM8
Register
OAENn bit
ADS Register
ANI1/AMP0OUT/P21, ANI4/AMP1OUT/P24,
ANI9/AMP2OUT/P81 Pins
0
−
Digital input
Input mode
1
−
Setting prohibited
0
−
Digital output
Digital I/O
selection
Output mode
1
−
Setting prohibited
Selects ANI.
Analog input (to be converted into digital signal)
0
Does not select ANI.
Analog input (not to be converted into digital signal)
Selects ANI.
Operational amplifier output (to be converted into
digital signal)
Input mode
1
Does not select ANI.
Operational amplifier output (not to be converted
into digital signal)
Analog input
selection
Output mode
−
−
Setting prohibited
Caution
When using an operational amplifier, the AMPn+, AMPn-, and AMPnOUT pins are used as I/O pins for the
operational amplifier, and therefore cannot be used as analog input pins. However, the operational amplifier's
output signal can be used as an analog input.
Remark
n = 0 to 2