pic32mx320f064h Microchip Technology Inc., pic32mx320f064h Datasheet - Page 458

no-image

pic32mx320f064h

Manufacturer Part Number
pic32mx320f064h
Description
64/100-pin General Purpose, 32-bit Flash Microcontrollers
Manufacturer
Microchip Technology Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
pic32mx320f064h-40I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
pic32mx320f064h-40I/PT
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
pic32mx320f064h-40V/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
pic32mx320f064h-80I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
pic32mx320f064h-80V/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
pic32mx320f064hT-40I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
PIC32MX FAMILY
23.4
The comparator output is read through the CMSTAT
register
CM1CON<8>). This bit is read-only. The comparator
output may also be directed to an I/O pin via the
CxOUT bit; however, the COUT bit is still valid when
the signal is routed to a pin. For the comparator output
to be available on the CxOut pin, the associated TRIS
bit for the output pin must be configured as an output.
When the COUT signal is routed to a pin the signal is
the unsynchronized output of the comparator.
The output of the comparator has a degree of uncer-
tainty. The uncertainty of each of the comparators is
related to the input offset voltage and the response
time, as stated in the specifications. The lower portion
of Figure 23-2 provides a graphical representation of
this uncertainty.
The comparator output bit, COUT, provides the latched
sampled value of the comparator’s output- when the
register was read. There are two common methods
used to detect a change in the comparator output:
• Software polling
• Interrupt generation
23.4.1
The polarity of the comparator outputs can be changed
using the CPOL bit (CMxCON<13>). CPOL appears
below the comparator Cx on the left side of Figure 23-1.
FIGURE 23-3:
DS61143A-page 456
Legend: C
Comparator Outputs
and
CHANGING THE POLARITY OF
COMPARATOR OUTPUTS
VA
the
I
R
R
VA
LEAKAGE
R
PIN
IC
S
S
COUT
< 10k
COMPARATOR ANALOG INPUT MODEL
A
=
=
=
=
=
IN
bit
Input Capacitance
Leakage Current at the pin due to various junctions
Interconnect Resistance
Source Impedance
Analog Voltage
C
5 pF
PIN
(CM2CON<8>
Advance Information
V
or
DD
23.5
A simplified circuit for an analog input is shown in
Figure 23-3. A maximum source impedance of 10 kΩ
is recommended for the analog sources. Any external
component connected to an analog input pin, such as
a capacitor or a zener diode, should have very little
leakage current. See the device data sheet for input
voltage limits. If a pin is to be shared by two or more
analog inputs that are to be used simultaneously, the
loading effects of all the modules involved must be
taken into consideration. This loading may reduce the
accuracy of one or more of the modules connected to
the common pin. This may also require a lower source
impedance than is stated for a single module with
exclusive use of a pin in Analog mode.
Notes: When reading the PORT register, all pins
Analog Input Connection
Considerations
I
±500 nA
V
LEAKAGE
SS
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.
Analog levels on any pin defined as a
digital input may cause the input buffer to
consume more current than is specified.
R
IC
© 2007 Microchip Technology Inc.
Comparator
Input

Related parts for pic32mx320f064h