Datasheet
2010-2011 Microchip Technology Inc. DS41418B-page 65
PIC16(L)F707
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, I
2
C 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
REGISTER 6-14: TRISD: PORTD TRI-STATE REGISTER
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 = 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 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.