# Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

### Protego

# PIC24FJ32MC10X -- Comparator with Blanking

- 1
- 2
…
- 12
- 13
- 14
- 15
- 16
…
- 29
- 30

PIC24F Family Reference Manual
DS39741A-page 48-14 Preliminary © 2010 Microchip Technology Inc.
48.3 COMPARATOR OPERATION
The operation of a typical comparator, along with the relationship between the analog input levels
and the digital output is illustrated in Figure 48-3. Depending on the comparator operating mode,
the monitored analog signal is compared to either an external or internal voltage reference.
In Figure 48-3, the V
IN-, is a fixed voltage. The analog signal present at VIN+ is compared to the
reference signal at VIN-, and the digital output of the comparator is created by the difference
between the two signals. When VIN+ is less than VIN-, the output of the comparator is a digital
low level. When V
IN+ is greater than VIN-, the output of the comparator is a digital high level. The
shaded areas of the output represent the area of uncertainty due to input offsets and response
time. The polarity of the comparator output can be inverted, so that it is a digital low level when
V
IN+ is greater than VIN-.
Figure 48-3: Comparator Operation
Input offset represents the range of voltage levels within which the comparator trip point can
occur. The output can switch at any point within this offset range. Response time is the minimum
time required for the comparator to recognize a change in input levels.
Each of the comparators can be configured to use the same or different reference sources. For
example, one comparator can use an external reference while the others use the internal
reference. For more information on operation of comparator voltage references,
see 48.6 “Comparator Voltage Reference Generator”.
–
+
VIN+
V
IN-
Output
Output
V
IN-
V
IN+
Input Offset

- 1
- 2
…
- 12
- 13
- 14
- 15
- 16
…
- 29
- 30