Figure 9-6 shows the pin diagram. Table 9-56 summarizes how to select the pin function.
Table 9-56 Port P5 (P5.0 and P5.1) Pin FunctionsPIN NAME (P5.x) | x | FUNCTION | CONTROL BITS OR SIGNALS(1) |
---|
P5DIR.x | P5SEL.x | REFOUT |
---|
P5.0/VREF+/VeREF+ | 0 | P5.0 (I/O)(2) | I: 0; O: 1 | 0 | X |
VeREF+(3) | X | 1 | 0 |
VREF+(4) | X | 1 | 1 |
P5.1/VREF-/VeREF- | 1 | P5.1 (I/O)(2) | I: 0; O: 1 | 0 | X |
VeREF-(5) | X | 1 | 0 |
VREF-(6) | X | 1 | 1 |
(1) X = Don't care
(2) Default condition
(3) Setting the P5SEL.0 bit disables the output driver and the input Schmitt trigger to prevent parasitic cross currents when applying analog signals. An external voltage can be applied to VeREF+ and used as the reference for the ADC12_A, Comparator_B, or DAC12_A.
(4) Setting the P5SEL.0 bit disables the output driver and the input Schmitt trigger to prevent parasitic cross currents when applying analog signals. The ADC12_A VREF+ reference is available at the pin.
(5) Setting the P5SEL.1 bit disables the output driver and the input Schmitt trigger to prevent parasitic cross currents when applying analog signals. An external voltage can be applied to VeREF- and used as the reference for the ADC12_A, Comparator_B, or DAC12_A.
(6) Setting the P5SEL.1 bit disables the output driver and the input Schmitt trigger to prevent parasitic cross currents when applying analog signals. The ADC12_A VREF- reference is available at the pin.