PIC16F610/616/16HV610/616
8.9 Comparator Hysteresis
Each comparator has built-in hysteresis that is user
enabled by setting the C1HYS or C2HYS bits of the
CM2CON1 register. The hysteresis feature can help
filter noise and reduce multiple comparator output
transitions when the output is changing state.
FIGURE 8-7:
COMPARATOR HYSTERESIS
Figure 8-9 shows the relationship between the analog
input levels and digital output of a comparator with and
without hysteresis. The output of the comparator
changes from a low state to a high state only when the
analog voltage at VIN+ rises above the upper
hysteresis threshold (VH+). The output of the
comparator changes from a high state to a low state
only when the analog voltage at VIN+ falls below the
lower hysteresis threshold (VH-).
VIN+
+
VIN-
–
Output
V+
VH+
VIN-
VH-
VIN+
Output
(Without Hysteresis)
Output
(With Hysteresis)
Note: The black areas of the comparator output represents the uncertainty due to input offsets and response time.
DS41288F-page 66
© 2009 Microchip Technology Inc.