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

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
24.5
Each comparator has up to eight possible combina-
tions of inputs: up to four external analog inputs and
one of two internal voltage references.
All of the comparators allow a selection of the signal
from pin, CxINA, or the voltage from the comparator
reference (CV
compared to either CxINB, CxINC, C2INB/C2IND or
the microcontroller’s fixed internal reference voltage
(V
comparator inputs and outputs are tied to fixed I/O pins,
defined in Table 24-1. The available comparator config-
urations and their corresponding bit settings are shown
in Figure 24-4.
TABLE 24-1:
24.5.1
Setting the CON bit of the CMxCON register
(CMxCON<7>) enables the comparator for operation.
Clearing the CON bit disables the comparator, resulting
in minimum current consumption.
The CCH<1:0> bits in the CMxCON register
(CMxCON<1:0>) direct either one of three analog input
pins, or the Internal Reference Voltage (VBG), to the
comparator, V
 2010 Microchip Technology Inc.
Note 1:
BG
Comparator
, 1.024V nominal) on the inverting channel. The
1
2
3
Comparator Control and
Configuration
C1INC, C2INC and C2IND are all
unavailable for 64-pin devices
(PIC18F6XK22).
COMPARATOR ENABLE AND
INPUT SELECTION
REF
IN
-. Depending on the comparator
) on the non-inverting channel. This is
COMPARATOR INPUTS AND
OUTPUTS
Input or Output
C1INC
C2INC
C2IND
C1INA (V
C2INA (V
C3INA (V
C1INB (V
C2INB (V
C2INB (V
C3INB (V
C3INC (V
C2INB (V
C1OUT
C2OUT
C3OUT
(1)
(1)
(1)
(V
(V
(V
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
+)
+)
+)
-)
-)
-)
-)
-)
-)
-)
-)
-)
I/O Pin
RH6
RH4
RH5
RG2
RG3
RG4
RG1
RF6
RF5
RF3
RF2
RF4
RF3
RF1
RF3
Preliminary
PIC18F87K22 FAMILY
operating mode, either an external or internal voltage
reference may be used. For external analog pins that
are unavailable in 64-pin devices (C1INC, C2INC and
C2IND), the corresponding configurations that use
them as inputs are unavailable.
The analog signal present at V
signal at V
is adjusted accordingly.
The external reference is used when CREF = 0
(CMxCON<2>) and V
pin. When external voltage references are used, the
comparator module can be configured to have the
reference sources externally. The reference signal
must be between V
either pin of the comparator.
The comparator module also allows the selection of an
internally generated voltage reference (CV
the Comparator Voltage Reference module. This
module is described in more detail in Section 25.0
“Comparator Voltage Reference Module” . The
reference from the comparator voltage reference
module is only available when CREF = 1 . In this mode,
the internal voltage reference is applied to the
comparator’s V
24.5.2
The comparator outputs are read through the CMSTAT
register. The CMSTAT<5> bit reads the Comparator 1
output, CMSTAT<6> reads Comparator 2 output and
CMSTAT<7> reads Comparator 3 output. These bits
are read-only.
The comparator outputs may also be directly output to
the RF2, RF1 and RG1 I/O pins by setting the COE bit
(CMxCON<6>). When enabled, multiplexers in the
output path of the pins switch to the output of the com-
parator. While in this mode, the TRISF<2:1> and
TRISG<1> bits still function as the digital output enable
bits for the RF2, RF1 and RG1 pins.
By default, the comparator’s output is at logic high
whenever the voltage on V
The polarity of the comparator outputs can be inverted
using the CPOL bit (CMxCON<5>).
The uncertainty of each of the comparators is related to
the input offset voltage and the response time given in
the specifications, as discussed in Section 24.2
“Comparator Operation” .
Note:
IN
The comparator input pin selected by
CCH<1:0> must be configured as an input
by setting both the corresponding TRISF,
TRISG or TRISH bit and the corresponding
ANSELx bit in the ANCONx register.
COMPARATOR ENABLE AND
OUTPUT SELECTION
+ and the digital output of the comparator
IN
+ pin.
SS
IN
and V
+ is connected to the CxINA
IN
DD
+ is greater than on V
IN
and can be applied to
- is compared to the
DS39960B-page 369
REF
) from
IN
-.

Related parts for PIC18F86K22-I/PTRSL