Microchip Technology IC PIC MCU PIC18F65J15-I/PT TQFP-64 MCP PIC18F65J15-I/PT Datenbogen
Produktcode
PIC18F65J15-I/PT
© 2009 Microchip Technology Inc.
DS39663F-page 141
PIC18F87J10 FAMILY
TABLE 11-13: PORTF FUNCTIONS
TABLE 11-14: SUMMARY OF REGISTERS ASSOCIATED WITH PORTF
Pin Name
Function
TRIS
Setting
I/O
I/O
Type
Description
RF1/AN6/
C2OUT
C2OUT
RF1
0
O
DIG
LATF<1> data output; not affected by analog input.
1
I
ST
PORTF<1> data input; disabled when analog input 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.
RF2/AN7/
C1OUT
C1OUT
RF2
0
O
DIG
LATF<2> data output; not affected by analog input.
1
I
ST
PORTF<2> data input; disabled when analog input enabled.
AN7
1
I
ANA
A/D Input Channel 7. Default configuration on POR.
C1OUT
0
O
TTL
Comparator 1 output; takes priority over port data.
RF3/AN8
RF3
0
O
DIG
LATF<3> data output; not affected by analog input.
1
I
ST
PORTF<3> data input; disabled when analog input enabled.
AN8
1
I
ANA
A/D Input Channel 8 and Comparator C2+ input. Default input
configuration on POR; not affected by analog output.
configuration on POR; not affected by analog output.
RF4/AN9
RF4
0
O
DIG
LATF<4> data output; not affected by analog input.
1
I
ST
PORTF<4> data input; disabled when analog input enabled.
AN9
1
I
ANA
A/D Input Channel 9 and Comparator C2- input. Default input
configuration on POR; does not affect digital output.
configuration on POR; does not affect digital output.
RF5/AN10/
CV
CV
REF
RF5
0
O
DIG
LATF<5> data output; not affected by analog input. Disabled when
CV
CV
REF
output enabled.
1
I
ST
PORTF<5> data input; disabled when analog input enabled. Disabled
when CV
when CV
REF
output enabled.
AN10
1
I
ANA
A/D Input Channel 10 and Comparator C1+ input. Default input
configuration on POR.
configuration on POR.
CV
REF
x
O
ANA
Comparator voltage reference output. Enabling this feature disables
digital I/O.
digital I/O.
RF6/AN11
RF6
0
O
DIG
LATF<6> data output; not affected by analog input.
1
I
ST
PORTF<6> data input; disabled when analog input enabled.
AN11
1
I
ANA
A/D Input Channel 11 and Comparator C1- input. Default input
configuration on POR; does not affect digital output.
configuration on POR; does not affect digital output.
RF7/SS1
RF7
0
O
DIG
LATF<7> data output.
1
I
ST
PORTF<7> data input.
SS1
1
I
TTL
Slave select input for MSSP (MSSP1 module).
Legend:
PWR = Power Supply, O = Output, I = Input, ANA = Analog Signal, DIG = Digital Output, ST = Schmitt Buffer Input,
TTL = TTL Buffer Input, x = Don’t care (TRIS bit does not affect port direction or is overridden for this option).
TTL = TTL Buffer Input, x = Don’t care (TRIS bit does not affect port direction or is overridden for this option).
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Reset
Values
on page
PORTF
RF7
RF6
RF5
RF4
RF3
RF2
RF1
—
LATF
LATF7
LATF6
LATF5
LATF4
LATF3
LATF2
LATF1
—
TRISF
TRISF7
TRISF6
TRISF5
TRISF4
TRISF3
TRISF2
TRISF1
—
ADCON1
—
—
VCFG1
VCFG0
PCFG3
PCFG2
PCFG1
PCFG0
CMCON
C2OUT
C1OUT
C2INV
C1INV
CIS
CM2
CM1
CM0
CVRCON
CVREN
CVROE
CVRR
CVRSS
CVR3
CVR2
CVR1
CVR0
Legend: — = unimplemented, read as ‘0’. Shaded cells are not used by PORTF.