12.4.4
A/D Enable Register (ADEN)
The ADEN register is used to select the analog input port that corresponds to different
pins. Writing "1" to an appropriate ADEN register bit enables analog input.
■
A/D Enable Register (ADEN)
Figure 12.4-5 shows the bit configuration of the A/D enable register.
Address
bit7
0034
ADE7
H
R/W
R/W : Readable/Writable
: Initial value
An A/D input port can be used as a general-purpose I/O port.
The ADEN register is used to select the port that corresponds to the analog input.
Set "1" to the corresponding bit in the ADEN register for the port to be used for analog input. This prevents
the DC pass when the middle level voltage is applied to the A/D input port.
When this register is to be used as the A/D input port, do not select the bit that indicates use of a pull-up
resistor from the pull-up setting register.
Figure 12.4-5 A/D Enable Register (ADEN)
bit6
bit5
bit4
bit3
ADE6 ADE5 ADE4 ADE3 ADE2
R/W
R/W
R/W
R/W
ADE7 to ADE0
0
1
bit2
bit1
bit0
Initial value
00000000
ADE1 ADE0
R/W
R/W
R/W
A/D input bits
Port input
Analog input
CHAPTER 12 A/D CONVERTER
B
271