BBCode för överstreck, någon?4.2.2 WEAK PULL-UPS
Each of the GPIO pins, except GP3, has an individually
configurable internal weak pull-up. Control bits WPUx
enable or disable each pull-up. Refer to Register 4-4.
Each weak pull-up is automatically turned off when the
port pin is configured as an output. The pull-ups are
disabled on a Power-on Reset by the NOT_GPPU bit of the
OPTION register). A weak pull-up is automatically
enabled for GP3 when configured as NOT_MCLR and
disabled when GP3 is an I/O. There is no software
control of the NOT_MCLR pull-up.
Men vad säger det egentligen?
GP3 (för enkelhets skull) är väl en I/O redan från början?
Och då dessutom endast I(nput).
De inställningar jag kan hitta som förefaller inverka är:
(Det vill säga att övriga, som annars påverkar GPIO's, inte ändrar för GP3.)
CONFIG: _MCLRE_ON respektive _MCLRE_OFF
OPTION_REG, NOT_GPPU
Har jag missat någon?
Om ej - i vilken av dessa kombinationer får jag WPU på GP3?
A)
__CONFIG _MCLRE_ON
BCF OPTION_REG, NOT_GPPU
B)
__CONFIG _MCLRE_ON
BSF OPTION_REG, NOT_GPPU
C)
__CONFIG _MCLRE_OFF
BCF OPTION_REG, NOT_GPPU
D)
__CONFIG _MCLRE_OFF
BSF OPTION_REG, NOT_GPPU