PIC18F6621-I/PT Microchip Technology Inc., PIC18F6621-I/PT Datasheet - Page 247

no-image

PIC18F6621-I/PT

Manufacturer Part Number
PIC18F6621-I/PT
Description
64 PIN, 64 KB FLASH, 3840 RAM, 52 I/O
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC18F6621-I/PT

A/d Inputs
12-Channel, 10-Bit
Comparators
2
Cpu Speed
10 MIPS
Eeprom Memory
1024 Bytes
Input Output
54
Interface
I2C/SPI/UART/USART
Memory Type
Flash
Number Of Bits
8
Package Type
64-pin TQFP
Programmable Memory
64K Bytes
Ram Size
3.8K Bytes
Speed
40 MHz
Timers
2-8-bit, 3-16-bit
Voltage, Range
2-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part Electrostatic Device

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F6621-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC18F6621-I/PT
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Company:
Part Number:
PIC18F6621-I/PT
Quantity:
2 850
21.2
A single comparator is shown in Figure 21-2, along with
the relationship between the analog input levels and
the digital output. When the analog input at V
than the analog input V
is a digital low level. When the analog input at V
greater than the analog input V
comparator is a digital high level. The shaded areas of
the output of the comparator in Figure 21-2 represent
the uncertainty due to input offsets and response time.
21.3
An external or internal reference signal may be used
depending on the comparator operating mode. The
analog signal present at V
at V
adjusted accordingly (Figure 21-2).
FIGURE 21-2:
21.3.1
When external voltage references are used, the
comparator module can be configured to have the com-
parators operate from the same, or different reference
sources. However, threshold detector applications may
require the same reference. The reference signal must
be between V
pin of the comparator(s).
 2005 Microchip Technology Inc.
V
V
Output
IN
IN
IN
-
+
+ and the digital output of the comparator is
V
V
IN
IN
Comparator Operation
Comparator Reference
+
-
EXTERNAL REFERENCE SIGNAL
SS
and V
+
SINGLE COMPARATOR
IN
DD
-, the output of the comparator
IN
and can be applied to either
- is compared to the signal
IN
-, the output of the
Output
IN
PIC18F6525/6621/8525/8621
+ is less
IN
+ is
21.3.2
The comparator module also allows the selection of an
internally
comparators. Section 22.0 “Comparator Voltage
Reference Module” contains a detailed description of
the comparator voltage reference module that provides
this signal. The internal reference signal is used when
comparators are in mode CM<2:0> = 110 (Figure 21-1).
In this mode, the internal voltage reference is applied to
the V
21.4
Response time is the minimum time, after selecting a
new reference voltage or input source, before the
comparator output has a valid level. If the internal
reference is changed, the maximum delay of the
internal voltage reference must be considered when
using
maximum delay of the comparators should be used
(Section 27.0 “Electrical Characteristics”).
21.5
The comparator outputs are read through the CMCON
register. These bits are read-only. The comparator
outputs may also be directly output to the RF1 and RF2
I/O pins. When enabled, multiplexors in the output path
of the RF1 and RF2 pins will switch and the output of
each pin will be the unsynchronized output of the com-
parator. The uncertainty of each of the comparators is
related to the input offset voltage and the response time
given in the specifications. Figure 21-3 shows the
comparator output block diagram.
The TRISA bits will still function as an output enable/
disable for the RF1 and RF2 pins while in this mode.
The polarity of the comparator outputs can be changed
using the C2INV and C1INV bits (CMCON<4:5>).
Note 1: When reading the Port register, all pins
IN
+ pin of both comparators.
the
2: Analog levels on any pin defined as a
Comparator Response Time
Comparator Outputs
generated
INTERNAL REFERENCE SIGNAL
configured as analog inputs will read as a
‘0’. Pins configured as digital inputs will
convert an analog input according to the
Schmitt Trigger input specification.
digital input may cause the input buffer to
consume more current than is specified.
comparator
voltage
outputs.
reference
DS39612B-page 245
Otherwise,
for
the
the

Related parts for PIC18F6621-I/PT