Figure 9-7 shows the port diagram. Table 9-20 summarizes the selection of the port function.
Table 9-20 Port P5 (P5.0) Pin FunctionsPIN NAME (P5.x) | x | FUNCTION | CONTROL BITS OR SIGNALS(1) |
---|
P5DIR.x | P5SEL.x | REFOUT | REFON(5) | CTSD16REFS(6) |
---|
P5.0/VREFBG/VeREF+ | 0 | P5.0 (I/O)(2) | I: 0; O: 1 | 0 | X | X | X |
VeREF+(3) | X | 1 | 0 | X | 0 |
VREFBG(4) | X | 1 | 1 | 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 CTSD16 or DAC.
(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 internal reference voltage signal, VREFBG, is available at the pin.
(5) If a module is requesting a reference then REFON need not be set to 1 for VREFBG to be selected on P5.0.
(6) If CTSD16 is active, this bit must be set as shown in the table. Otherwise if set to 1, it will force VREFBG to be selected regardless of REFOUT setting and if P5SEL.x is set to 0 it will cause possible contention on the I/O.