Datasheet

78K0/Kx2-L CHAPTER 13 OPERATIONAL AMPLIFIERS
R01UH0028EJ0400 Rev.4.00 443
Sep 27, 2010
When using P20/ANI0/AMP0-, P21/ANI1/AMP0OUT/PGAIN, and P22/ANI2/AMP0+, set the registers according to the
pin function to be used (refer to Tables 13-4 and 13-5).
Table 13-4. Setting Functions of P20/ANI0/AMP0-, P22/ANI2/AMP0+ Pins
ADPC0 Register PM2 Register OPAMP0E bit
ADS Register
(n = 0, 2)
P20/ANI0/AMP0-,
P22/ANI2/AMP0+ Pins
Selects ANIn.
Analog input (to be converted into
digital signals)
0
Does not select ANIn.
Analog input (not to be converted
into digital signals)
Selects ANIn. Setting prohibited
Input mode
1
Does not select ANIn. Operational amplifier input
Analog input
selection
Output mode
Setting prohibited
Selects ANIn. Setting prohibited Input mode
Does not select ANIn. Digital input
Selects ANIn. Setting prohibited
Digital I/O
selection
Output mode
Does not select ANIn. Digital output
Remark ADPC0: A/D port configuration register 0
PM2: Port mode register 2
OPAMP0E: Bit 7 of operational amplifier 0 control register (AMP0M)
ADS: Analog input channel specification register