Datasheet

PIC16(L)F707
DS41418B-page 68 2010-2011 Microchip Technology Inc.
6.6.2 PIN DESCRIPTIONS
Each PORTE 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.6.2.1 RE0/AN5/CPSA5
These pins are configurable to function as one of the
following:
General purpose I/O
Analog input for the ADC
Capacitive sensing input
6.6.2.2 RE1/AN6/CPSA6
These pins are configurable to function as one of the
following:
General purpose I/O
Analog input for the ADC
Capacitive sensing input
6.6.2.3 RE2/AN7/CPSA7
These pins are configurable to function as one of the
following:
General purpose I/O
Analog input for the ADC
Capacitive sensing input
REGISTER 6-17: TRISE: PORTE TRI-STATE REGISTER
U-0 U-0 U-0 U-0 R-1 R/W-1 R/W-1 R/W-1
TRISE3 TRISE2 TRISE1 TRISE0
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-4 Unimplemented: Read as ‘0
bit 3 TRISE3: RE3 Port Tri-state Control bit
This bit is always ‘1 as RE3 is an input only
bit 2-0 TRISE<2:0>: RE<2:0> Tri-State Control bits
(1)
1 = PORTE pin configured as an input (tri-stated)
0 = PORTE pin configured as an output
REGISTER 6-18: ANSELE: PORTE ANALOG SELECT REGISTER
U-0 U-0 U-0 U-0 U-0 R/W-1 R/W-1 R/W-1
ANSE2 ANSE1 ANSE0
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-3 Unimplemented: Read as ‘0
bit 2-0 ANSE<2:0>: Analog Select between Analog or Digital Function on Pins RE<2: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.