PIC18F86K22-I/PTRSL Microchip Technology, PIC18F86K22-I/PTRSL Datasheet - Page 179

no-image

PIC18F86K22-I/PTRSL

Manufacturer Part Number
PIC18F86K22-I/PTRSL
Description
MCU PIC 64K FLASH XLP 80TQFP
Manufacturer
Microchip Technology
Series
PIC® XLP™ 18Fr

Specifications of PIC18F86K22-I/PTRSL

Core Size
8-Bit
Program Memory Size
64KB (32K x 16)
Core Processor
PIC
Speed
64MHz
Connectivity
EBI/EMI, I²C, LIN, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, LVD, POR, PWM, WDT
Number Of I /o
69
Program Memory Type
FLASH
Eeprom Size
1K x 8
Ram Size
4K x 8
Voltage - Supply (vcc/vdd)
1.8 V ~ 5.5 V
Data Converters
A/D 24x12b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
80-TFQFP
Controller Family/series
PIC18
Eeprom Memory Size
1024Byte
Ram Memory Size
3862Byte
Cpu Speed
16MIPS
No. Of Timers
11
Lead Free Status / RoHS Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F86K22-I/PTRSL
Manufacturer:
Microchip Technology
Quantity:
10 000
12.7
PORTF is a 7-bit wide, bidirectional port. The
corresponding Data Direction and Output Latch registers
are TRISF and LATF. All pins on PORTF are
implemented with Schmitt Trigger input buffers. Each pin
is individually configurable as an input or output.
Pins, RF1 through RF6, may be used as comparator
inputs or outputs by setting the appropriate bits in the
CMCON register. To use RF<7:1> as digital inputs, it is
also necessary to turn off the comparators.
TABLE 12-11: PORTF FUNCTIONS
 2010 Microchip Technology Inc.
RF1/AN6/C2OUT/
CTDIN
RF2/AN7/C1OUT
RF3/AN8/C2INB/
CTMUI
RF4/AN9/C2INA
RF5/AN10/CV
C1INB
Legend:
Note 1: On device Resets, pins, RF<7:1>, are
Pin Name
PORTF, LATF and TRISF Registers
2: To configure PORTF as a digital I/O, turn
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).
configured as analog inputs and are read
as ‘0’.
off the comparators and clear ANCON1
and ANCON2 to digital.
REF
/
Function
C2OUT
C1OUT
CTMUI
CTDIN
C2INB
C2INA
CV
C1INB
AN10
AN6
AN7
AN8
AN9
RF1
RF2
RF3
RF4
RF5
REF
Setting
TRIS
0
1
1
0
1
0
1
1
0
0
1
1
1
x
0
1
1
1
0
1
1
x
1
I/O
O
O
O
O
O
O
O
O
O
I
I
I
I
I
I
I
I
I
I
I
I
I
I
Type
ANA
ANA
ANA
ANA
ANA
ANA
ANA
ANA
ANA
DIG
DIG
DIG
DIG
DIG
DIG
DIG
I/O
ST
ST
ST
ST
ST
ST
Preliminary
LATF<1> data output; not affected by analog input.
PORTF<1> data input; disabled when analog input is enabled.
A/D Input Channel 6. Default configuration on POR.
Comparator 2 output; takes priority over port data.
CTMU pulse delay input.
LATF<2> data output; not affected by analog input.
PORTF<2> data input; disabled when analog input is enabled.
A/D Input Channel 7. Default configuration on POR.
Comparator 1 output; takes priority over port data.
LATF<3> data output; not affected by analog input.
PORTF<3> data input; disabled when analog input is enabled.
A/D Input Channel 8 and Comparator C2+ input. Default input
configuration on POR; not affected by analog output.
Comparator 2 Input B.
CTMU pulse generator charger for the C2INB comparator input.
LATF<4> data output; not affected by analog input.
PORTF<4> data input; disabled when analog input is enabled.
A/D Input Channel 9 and Comparator C2- input. Default input
configuration on POR; does not affect digital output.
Comparator 2 Input A.
LATF<5> data output; not affected by analog input. Disabled when
CV
PORTF<5> data input; disabled when analog input is enabled.
Disabled when CV
A/D Input Channel 10 and Comparator C1+ input. Default input
configuration on POR.
Comparator voltage reference output. Enabling this feature disables
digital I/O.
Comparator 1 Input B.
REF
PIC18F87K22 FAMILY
output is enabled.
EXAMPLE 12-6:
CLRF
CLRF
BANKSEL
MOVLW
MOVWF
MOVLW
MOVWF
BANKSEL
MOVLW
MOVWF
REF
PORTF
LATF
ANCON1
1Fh
ANCON1
0Fh
ANCON
TRISF
0CEh
TRISF
output is enabled.
Description
; Initialize PORTF by
; clearing output
; data latches
; Alternate method
; to clear output
; data latches
; Select bank with ANCON1 register
; Make AN6, AN7 and AN5 digital
;
; Make AN8, AN9, AN10 and AN11
; Set PORTF as digital I/O
; Select bank with TRISF register
; Value used to
; initialize data
; direction
; Set RF3:RF1 as inputs
; RF5:RF4 as outputs
; RF7:RF6 as inputs
digital
INITIALIZING PORTF
DS39960B-page 179

Related parts for PIC18F86K22-I/PTRSL