Figure 9-12 shows the port diagram. Table 9-25 summarizes the selection of the port function.
Table 9-25 Port P6 (P6.4) Pin Functions
PIN NAME (P6.x) |
x |
FUNCTION |
CONTROL BITS OR SIGNALS(1) |
P6DIR.x |
P6SEL.x(3) |
CBPD.x(3) |
OAMx |
P6.4/CB4/AD0+/OA0O |
4 |
P6.4 (I/O) |
I: 0; O: 1 |
0 |
0 |
0(4) |
CB4 |
X |
X |
1 |
0(4) |
AD0+ (2) |
X |
1 |
X |
0(4) |
OA0O |
X |
X |
X |
= 1(4) |
(1) X = Don't care
(2) The ADC channel Ax is connected internally to AVSS if not selected by the respective INCHx bits.
(3) Setting the P6SEL.x bit, the CBPD.x bit, or the OAMx bit disables the output driver and the input Schmitt trigger to prevent parasitic cross currents when applying analog signals.
(4) Setting OAMx = 0 disables the operational amplifier and its output is high impedance. Setting OAMx = 1 enables the operational amplifier output. Because the operational amplifier output is shared with the ADC channel, selection of the respective ADC channel allows for direct measurement of the output voltage of the amplifier.