Datasheet
PIC16F610/616/16HV610/616
DS41288F-page 66 © 2009 Microchip Technology Inc.
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-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 V
IN+ rises above the upper
hysteresis threshold (V
H+). The output of the
comparator changes from a high state to a low state
only when the analog voltage at V
IN+ falls below the
lower hysteresis threshold (V
H-).
FIGURE 8-7: COMPARATOR HYSTERESIS
–
+
VIN+
V
IN-
Output
Note: The black areas of the comparator output represents the uncertainty due to input offsets and response time.
VH-
V
H+
VIN-
V+
V
IN+
Output
(Without Hysteresis)
Output
(With Hysteresis)