Figure 9-14 shows the port diagram. Table 9-27 summarizes the selection of the port function.
Table 9-27 Port P6 (P6.6) Pin Functions
PIN NAME (P6.x) |
x |
FUNCTION |
CONTROL BITS OR SIGNALS(1) |
P6DIR.x |
P6SEL.x(3) |
CBPD.x(3) |
GSW0(3) |
P6.6/CB6/AD1+/G0SW0 |
6 |
P6.6 (I/O) |
I: 0; O: 1 |
0 |
0 |
0 |
CB6 |
X |
X |
1 |
0 |
AD1+ (2) |
X |
1 |
X |
0 |
G0SW0(4) |
X |
X |
X |
1 |
(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 GSW0 bit disables the output driver and the input Schmitt trigger to prevent parasitic cross currents when applying analog signals.
(4) Setting GSW0 = 1 closes the switch and forces the pin to be switched to ground. All switches are independent of each other, so different settings can impose different voltages on the pin. Application must ensure there are no conflicts.