Datasheet

Table Of Contents
2010 Microchip Technology Inc. Preliminary DS39979A-page 119
PIC18F87J72 FAMILY
TABLE 10-14: PORTF FUNCTIONS
Pin Name Function
TRIS
Setting
I/O
I/O
Type
Description
RF1/AN6/C2OUT/
SEG19
RF1 0 O DIG LATF<1> data output; not affected by analog input.
1 I ST PORTF<1> data input; disabled when analog input is enabled.
AN6 1 I ANA A/D Input Channel 6. Default configuration on POR.
C2OUT 0 O DIG Comparator 2 output; takes priority over port data.
SEG19 x O ANA LCD Segment 19 output; disables all other pin functions.
RF2/AN7/C1OUT/
SEG20
RF2 0 O DIG LATF<2> data output; not affected by analog input.
1 I ST PORTF<2> data input; disabled when analog input is enabled.
AN7 1 I ANA A/D Input Channel 7. Default configuration on POR.
C1OUT 0 O DIG Comparator 1 output; takes priority over port data.
SEG20 x O ANA LCD Segment 20 output; disables all other pin functions.
RF3/AN8/SEG21/
C2INB
RF3 0 O DIG LATF<3> data output; not affected by analog input.
1 I ST PORTF<3> data input; disabled when analog input is enabled.
AN8 1 I ANA A/D Input Channel 8 and Comparator C2+ input. Default input
configuration on POR; not affected by analog output.
SEG21 x O ANA LCD Segment 21 output; disables all other pin functions.
C2INB 1 I ANA Comparator 2 Input B.
RF4/AN9/SEG22/
C2INA
RF4 0 O DIG LATF<4> data output; not affected by analog input.
1 I ST PORTF<4> data input; disabled when analog input is enabled.
AN9 1 I ANA A/D Input Channel 9 and Comparator C2- input. Default input
configuration on POR; does not affect digital output.
SEG22 x O ANA LCD Segment 22 output; disables all other pin functions.
C2INA 1 I ANA Comparator 2 Input A.
RF5/AN10/CV
REF/
SEG23/C1INB
RF5 0 O DIG LATF<5> data output; not affected by analog input. Disabled when
CV
REF output is enabled.
1 I ST PORTF<5> data input; disabled when analog input is enabled.
Disabled when CV
REF output is enabled.
AN10 1 I ANA A/D Input Channel 10 and Comparator C1+ input. Default input
configuration on POR.
CV
REF x O ANA Comparator voltage reference output. Enabling this feature disables
digital I/O.
SEG23 x O ANA LCD Segment 23 output; disables all other pin functions.
C1INB 1 I ANA Comparator 1 Input B.
RF6/AN11/SEG24/
C1INA
RF6 0 O DIG LATF<6> data output; not affected by analog input.
1 I ST PORTF<6> data input; disabled when analog input is enabled.
AN11 1 I ANA A/D Input Channel 11 and Comparator C1- input. Default input
configuration on POR; does not affect digital output.
SEG24 x O ANA LCD Segment 24 output; disables all other pin functions.
C1INA 1 I ANA Comparator 1 Input A.
RF7/AN5/SS
/
SEG25
RF7 0 O DIG LATF<7> data output; not affected by analog input.
1 I ST PORTF<7> data input; disabled when analog input is enabled.
AN5 1 I ANA A/D Input Channel 5. Default configuration on POR.
SS
1 I TTL Slave select input for MSSP module.
SEG25 x O ANA LCD Segment 25 output; disables all other pin functions.
Legend: O = Output, I = Input, ANA = Analog Signal, DIG = Digital Output, ST = Schmitt Trigger Buffer Input,
TTL = TTL Buffer Input, x = Don’t care (TRIS bit does not affect port direction or is overridden for this option).