
2004 Microchip Technology Inc.
DS30491C-page 141
PIC18F6585/8585/6680/8680
TABLE 10-11: PORTF FUNCTIONS
TABLE 10-12: SUMMARY OF REGISTERS ASSOCIATED WITH PORTF
Name
Bit#
Buffer Type
Function
RF0/AN5
bit 0
ST
Input/output port pin or analog input.
RF1/AN6/C2OUT
bit 1
ST
Input/output port pin, analog input or comparator 2 output.
RF2/AN7/C1OUT
bit 2
ST
Input/output port pin, analog input or comparator 1 output.
RF3/AN8/C2IN+
bit 3
ST
Input/output port pin, analog input or comparator 2 input (+).
RF4/AN9/C2IN-
bit 4
ST
Input/output port pin, analog input or comparator 2 input (-).
RF5/AN10/
C1IN+/CVREF
bit 5
ST
Input/output port pin, analog input, comparator 1 input (+) or
comparator reference output.
RF6/AN11/C1IN-
bit 6
ST
Input/output port pin, analog input or comparator 1 input (-).
RF7/SS
bit 7
ST/TTL
Input/output port pin or slave select pin for synchronous serial port.
Legend: ST = Schmitt Trigger input, TTL = TTL input
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Value on:
POR, BOR
Value on
all other
Resets
TRISF
PORTF Data Direction Control Register
1111 1111
PORTF
Read PORTF pin/Write PORTF Data Latch
xxxx xxxx
uuuu uuuu
LATF
Read PORTF Data Latch/Write PORTF Data Latch
0000 0000
uuuu uuuu
ADCON1
—
VCFG1 VCFG0 PCFG3 PCFG2 PCFG1 PCFG0
--00 0000
CMCON
C2OUT
C1OUT
C2INV
C1INV
CIS
CM2
CM1
CM0
0000 0000
CVRCON CVREN
CVROE
CVRR
CVRSS
CVR3
CVR2
CVR1
CVR0
0000 0000
Legend: x = unknown, u = unchanged. Shaded cells are not used by PORTF.