Datasheet
78K0/Ix2 CHAPTER 11 A/D CONVERTER
R01UH0010EJ0500 Rev.5.00 380
Feb 28, 2012
When using P20/AMP-/ANI0 to P27/ANI7, and P70/ANI8, set the registers according to the pin function to be used
(refer to Tables 11-3 to 11-8).
Table 11-3. Setting Functions of P20/ANI0/AMP-, P22/ANI2/AMP+ Pins
ADPC0
Register
PM2 Register
OPAMP0E
bit
Note
ADS Register
(n = 0, 2)
P20/ANI0/AMP-,
P22/ANI2/AMP+ Pins
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
Selects ANIn. Analog input (to be converted into digital signal) 0
Does not select ANIn. Analog input (not to be converted into digital signal)
Selects ANIn.
Analog input (to be converted into digital signal), and
operational amplifier input
Input mode
1
Does not select ANIn. Operational amplifier input
Analog input
selection
Output mode
Setting prohibited
Note 78K0/IA2, 78K0/IB2 only
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