A-D CONVERTER
12.2 Block description
12.2.5 Port P7 direction register
The A-D converter’s input pins are multiplexed with the port P7 pins. When using these pins as A-D
converter’s input pins, be sure to clear the corresponding bits of the port P7 direction register to “0” in order
to set these pins to the input mode. Figure 12.2.8 shows the correspondence between the port P7 direction
register and the A-D converter’s input pins.
b7 b6 b5 b4 b3 b2 b1 b0
Port P7 direction register (Address 1116)
Function
Bit
0
Bit name
At reset R/W
0 : Input mode
1 : Output mode
Pin AN0
Pin AN1
Pin AN2
0
0
0
0
0
RW
RW
RW
RW
RW
1
When using any of these pins as A-D converter’s input
pin, be sure to clear its corresponding bit to “0.”
2
3
Pin AN3 (Pin DA0)
(Note 1)
4
Pin AN4 (Pin DA1/INT3/RTPTRG0)
(Note 2)
7 to 5 Nothing is assigned.
Notes 1: When using pin AN , be sure to clear the D-A
2: When using pin AN , be sure to clear the D-A
Undefined
–
3
0
output enable bit (bit 0 at address 9616) = “0” (output disabled).
output enable bit (bit 1 at address 9616) = “0” (output disabled).
4
1
3: The pins in ( ) are I/O pins of other internal peripheral devices, which are multiplexed with the corresponding port P7 pins.
Fig. 12.2.8 Correspondence between port P7 direction register and A-D converter’s input pins
7906 Group User’s Manual Rev.2.0
12-11