PIC18FXX20
TABLE 10-11: PORTF FUNCTIONS
Name
RF0/AN5
RF1/AN6/C2OUT bit1
RF2/AN7/C1OUT bit2
RF3/AN8
RF4/AN9
Bit#
Buffer Type
Function
Input/output port pin or analog input.
Input/output port pin, analog input or comparator 2 output.
Input/output port pin, analog input or comparator 1 output.
Input/output port pin or analog input/comparator input.
Input/output port pin or analog input/comparator input.
bit0
ST
ST
ST
ST
ST
ST
bit3
bit4
bit5
RF5/AN10/
CVREF
Input/output port pin, analog input/comparator input, or
comparator reference output.
RF6/AN11
RF7/SS
bit6
bit7
ST
ST/TTL
Input/output port pin or analog input/comparator input.
Input/output port pin or Slave Select pin for Synchronous Serial Port.
Legend: ST = Schmitt Trigger input, TTL = TTL input
TABLE 10-12: SUMMARY OF REGISTERS ASSOCIATED WITH PORTF
Value on
all other
RESETS
Value on:
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
POR, BOR
TRISF
PORTF
LATF
ADCON1
CMCON
PORTF Data Direction Control Register
Read PORTF pin/Write PORTF Data Latch
Read PORTF Data Latch/Write PORTF Data Latch
1111 1111
xxxx xxxx
0000 0000
1111 1111
uuuu uuuu
uuuu uuuu
--00 0000
0000 0000
0000 0000
—
—
VCFG1 VCFG0 PCFG3 PCFG2 PCFG1 PCFG0 --00 0000
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.
2003 Microchip Technology Inc.
Advance Information
DS39609A-page 119