
PIC18CXX8
DS30475A-page 100
Advanced Information
2000 Microchip Technology Inc.
FIGURE 8-10: RF6:RF3 AND RF0 PINS
BLOCK DIAGRAM
FIGURE 8-11: RF7 PIN BLOCK DIAGRAM
TABLE 8-11:
PORTF FUNCTIONS
TABLE 8-12:
SUMMARY OF REGISTERS ASSOCIATED WITH PORTF
Data
Bus
Q
D
Q
CK
Q
D
Q
CK
QD
EN
P
N
WR LATF
WR TRISF
Data Latch
TRIS Latch
RD TRISF
RD PORTF
VSS
VDD
I/O Pin
Analog
Input
Mode
ST
Input
Buffer
To A/D Converter or Comparator Input
RD LATF
or
WR PORTF
Note:
I/O pins have diode protection to VDD and VSS.
Data
Bus
WR LATF
WR TRISF
RD PORTF
Data Latch
TRIS Latch
RD TRISF
Schmitt
Trigger
Input
Buffer
I/O pin
Q
D
CK
Q
D
CK
EN
QD
EN
RD LATF
or
WR PORTF
Note:
I/O pins have diode protection to VDD and VSS.
Name
Bit#
Buffer Type
Function
RF0/AN5
bit0
ST
Input/output port pin or analog input.
RF1/AN6/C2OUT
bit1
ST
Input/output port pin or analog input or comparator 2 output.
RF2/AN7/C1OUT
bit2
ST
Input/output port pin or analog input or comparator 1 output.
RF3/AN8
bit3
ST
Input/output port pin or analog input or comparator input.
RF4/AN9
bit4
ST
Input/output port pin or analog input or comparator input.
RF5/AN10/
CVREF
bit5
ST
Input/output port pin or analog input or comparator input or comparator
reference output.
RF6/AN11
bit6
ST
Input/output port pin or analog input or comparator input.
RF7
bit7
ST
Input/output port pin.
Legend: ST = Schmitt Trigger 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
--00 0000
CMCON
C2OUT
C1OUT
C2INV
C1INV
CIS
CM2
CM1
CM0
0000 0000
Legend: x = unknown, u = unchanged