Datasheet
PIC18F87K22 FAMILY
DS39960D-page 182 2009-2011 Microchip Technology Inc.
TABLE 12-12: SUMMARY OF REGISTERS ASSOCIATED WITH PORTF
RF6/AN11/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.
C1INA 1 I ANA Comparator 1 Input A.
RF7/AN5/SS1
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.
SS1
1 I TTL Slave select input for MSSP module.
Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
PORTF RF7 RF6 RF5 RF4 RF3 RF2 RF1 —
LATF LATF7 LATF6 LATF5 LATF4 LATF3 LATF2 LATF1 —
TRISF TRISF7 TRISF6 TRISF5 TRISF4 TRISF3 TRISF2 TRISF1 —
ANCON0 ANSEL7 ANSEL6 ANSEL5
ANSEL4 ANSEL3 ANSEL2 ANSEL1 ANSEL0
ANCON1 ANSEL15 ANSEL14 ANSEL13 ANSEL12 ANSEL11 ANSEL10 ANSEL9 ANSEL8
Legend: — = unimplemented, read as ‘0’. Shaded cells are not used by PORTF.
TABLE 12-11: PORTF FUNCTIONS (CONTINUED)
Pin Name Function
TRIS
Setting
I/O
I/O
Type
Description
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).