Microchip Technology AC164112 Data Sheet
© 2009 Microchip Technology Inc.
DS41341E-page 81
PIC16F72X/PIC16LF72X
REGISTER 6-13:
TRISD: PORTD TRI-STATE REGISTER
(1)
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
TRISD7
TRISD6
TRISD5
TRISD4
TRISD3
TRISD2
TRISD1
TRISD0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
-n = Value at POR
‘1’ = Bit is set
‘0’ = Bit is cleared
x = Bit is unknown
bit 7-0
TRISD<7:0>: PORTD Tri-State Control bits
1
1
= PORTD pin configured as an input (tri-stated)
0
= PORTD pin configured as an output
Note 1:
TRISD is not implemented on PIC16F722/723/726/PIC16LF722/723/726 devices, read as ‘0’.
REGISTER 6-14:
ANSELD: PORTD ANALOG SELECT REGISTER
(2)
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
ANSD7
ANSD6
ANSD5
ANSD4
ANSD3
ANSD2
ANSD1
ANSD0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
-n = Value at POR
‘1’ = Bit is set
‘0’ = Bit is cleared
x = Bit is unknown
bit 7-0
ANSD<7:0>: Analog Select between Analog or Digital Function on Pins RD<7:0>, respectively
0
= Digital I/O. Pin is assigned to port or Digital special function.
1
= Analog input. Pin is assigned as analog input
(1)
. Digital Input buffer disabled.
Note 1:
When setting a pin to an analog input, the corresponding TRIS bit must be set to Input mode in order to
allow external control of the voltage on the pin.
allow external control of the voltage on the pin.
2:
ANSELD register is not implemented on the PIC16F722/723/726/PIC16LF722/723/726. Read as ‘0’.