PIC18F85K22-I/PT Microchip Technology, PIC18F85K22-I/PT Datasheet - Page 371

no-image

PIC18F85K22-I/PT

Manufacturer Part Number
PIC18F85K22-I/PT
Description
IC, 8BIT MCU, PIC18F, 64MHZ, TQFP-80
Manufacturer
Microchip Technology
Series
PIC® XLP™ 18Fr
Datasheet

Specifications of PIC18F85K22-I/PT

Controller Family/series
PIC18
No. Of I/o's
69
Eeprom Memory Size
1KB
Ram Memory Size
2KB
Cpu Speed
64MHz
No. Of Timers
8
Core Size
8 Bit
Program Memory Size
32KB
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
2K 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-TQFP
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F85K22-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC18F85K22-I/PT
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18F85K22-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 Reference Voltages.
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
urations and their corresponding bit settings are shown
in
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
 2009-2011 Microchip Technology Inc.
Note 1:
BG
Comparator
Figure
, 1.024V nominal) on the inverting channel. The
1
2
3
Comparator Control and
Configuration
24-4.
Table
C1INC, C2INC and C2IND are all
unavailable for 64-pin devices
(PIC18F6XK22).
COMPARATOR ENABLE AND
INPUT SELECTION
REF
IN
24-1. The available comparator config-
-. 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
PIC18F87K22 FAMILY
operating mode, either an external or Internal Refer-
ence Voltage 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 reference voltages 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 reference voltage from the Com-
parator Voltage Reference (CV
module is described in more detail in Section 25.0
“Comparator Voltage Reference Module” . The
reference from the comparator reference voltage
module is only available when CREF = 1 . In this mode,
the Internal Reference Voltage 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
“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
, and can be applied to
IN
- is compared to the
REF
DS39960D-page 371
) module. This
Section 24.2
IN
-.

Related parts for PIC18F85K22-I/PT