English
Language : 

PIC16F707 Datasheet, PDF (63/284 Pages) Microchip Technology – 40/44-Pin, Flash Microcontrollers with nanoWatt XLP and mTouch™ Technology
PIC16F707/PIC16LF707
REGISTER 6-14: TRISD: PORTD TRI-STATE REGISTER
R/W-1
TRISD7
bit 7
R/W-1
TRISD6
R/W-1
TRISD5
R/W-1
TRISD4
R/W-1
TRISD3
R/W-1
TRISD2
R/W-1
TRISD1
R/W-1
TRISD0
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-0
TRISD<7:0>: PORTD Tri-State Control bits
1 = PORTD pin configured as an input (tri-stated)
0 = PORTD pin configured as an output
REGISTER 6-15: ANSELD: PORTD ANALOG SELECT REGISTER
R/W-1
ANSD7
bit 7
R/W-1
ANSD6
R/W-1
ANSD5
R/W-1
ANSD4
R/W-1
ANSD3
R/W-1
ANSD2
R/W-1
ANSD1
R/W-1
ANSD0
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-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.
6.5.2 PIN DESCRIPTIONS
Each PORTD pin is multiplexed with other functions. The
pins and their combined functions are briefly described
here. For specific information about individual functions
such as the SSP, I2C or interrupts, refer to the appropriate
section in this data sheet.
6.5.2.1 RD0/CPSB5/T3G
These pins are configurable to function as one of the
following:
• General purpose I/O
• Capacitive sensing input
• Timer3 Gate input
6.5.2.2 RD1/CPSB6
These pins are configurable to function as one of the
following:
• General purpose I/O
• Capacitive sensing input
6.5.2.3 RD2/CPSB7
These pins are configurable to function as one of the
following:
• General purpose I/O
• Capacitive sensing input
6.5.2.4 RD3/CPSA8
These pins are configurable to function as one of the
following:
• General purpose I/O
• Capacitive sensing input
6.5.2.5 RD4/CPSA12
These pins are configurable to function as one of the
following:
• General purpose I/O
• Capacitive sensing input
 2010 Microchip Technology Inc.
Preliminary
DS41418A-page 63