|
PIC16F636-I Datasheet, PDF (51/234 Pages) Microchip Technology – 8/14-Pin, Flash-Based 8-Bit CMOS Microcontrollers with nanoWatt Technology | |||
|
◁ |
PIC12F635/PIC16F636/639
REGISTER 4-3: WDA: WEAK PULL-UP/PULL-DOWN DIRECTION REGISTER
U-0
â
bit 7
U-0
R/W-1
R/W-1
U-0
R/W-1
R/W-1
â
WDA5
WDA4
â
WDA2
WDA1
R/W-1
WDA0
bit 0
Legend:
R = Readable bit
-n = Value at POR
W = Writable bit
â1â = Bit is set
U = Unimplemented bit, read as â0â
â0â = Bit is cleared
x = Bit is unknown
bit 7-6
bit 5-4
bit 3
bit 2-0
Unimplemented: Read as â0â
WDA<5:4>: Pull-up/Pull-down Selection bits
1 = Pull-up selected
0 = Pull-down selected
Unimplemented: Read as â0â
WDA<2:0>: Pull-up/Pull-down Selection bits
1 = Pull-up selected
0 = Pull-down selected
Note 1:
2:
The weak pull-up/pull-down device is enabled only when the global RAPU bit is enabled, the pin is in Input mode (TRIS
= 1), the individual WDA bit is enabled (WDA = 1) and the pin is not configured as an analog input or clock function.
RA3 pull-up is enabled when the pin is configured as MCLR in the Configuration Word register and the device is not in
Programming mode.
REGISTER 4-4: WPUDA: WEAK PULL-UP/PULL-DOWN ENABLE REGISTER
U-0
â
bit 7
U-0
R/W-1
R/W-1
U-0
â
WPUDA5(3) WPUDA4(3)
â
R/W-1
WPUDA2
R/W-1
WPUDA1
R/W-1
WPUDA0
bit 0
Legend:
R = Readable bit
-n = Value at POR
W = Writable bit
â1â = Bit is set
U = Unimplemented bit, read as â0â
â0â = Bit is cleared
x = Bit is unknown
bit 7-6
bit 5-4
bit 3
bit 2-0
Unimplemented: Read as â0â
WPUDA<5:4>: Pull-up/Pull-down Direction Selection bits(3)
1 = Pull-up/pull-down enabled
0 = Pull-up/pull-down disabled
Unimplemented: Read as â0â
WPUDA<2:0>: Pull-up/Pull-down Direction Selection bits
1 = Pull-up/pull-down enabled
0 = Pull-up/pull-down disabled
Note 1:
2:
3:
The weak pull-up/pull-down direction device is enabled only when the global RAPU bit is enabled, the pin is in Input mode
(TRIS = 1), the individual WPUDA bit is enabled (WPUDA = 1) and the pin is not configured as an analog input or clock
function.
RA3 pull-up is enabled when the pin is configured as MCLR in the Configuration Word register and the device is not in
Programming mode.
WPUDA5 bit can be written if INTOSC is enabled and T1OSC is disabled; otherwise, the bit can not be written and reads
as â1â. WPUDA4 bit can be written if not configured as OSC2; otherwise, the bit can not be written and reads as â1â
© 2007 Microchip Technology Inc.
DS41232D-page 49
|
▷ |