English
Language : 

Z8F042AHJ020SG Datasheet, PDF (157/282 Pages) Zilog, Inc. – High-Performance 8-Bit Microcontrollers
Z8 Encore! XP® F082A Series
Product Specification
140
Comparator
The Z8 Encore! XP F082A Series devices feature a general purpose comparator that com-
pares two analog input signals. These analog signals may be external stimulus from a pin
(CINP and/or CINN) or internally generated signals. Both a programmable voltage refer-
ence and the temperature sensor output voltage are available internally. The output is
available as an interrupt source or can be routed to an external pin.
CINP Pin
Temperature
Sensor
INPSEL
+
REFLVL
-
Comparator
Internal
Reference
INNSEL
CINN Pin
Figure 20. Comparator Block Diagram
To
COUT
Pin
To Interrupt
Controller
Operation
When the positive comparator input exceeds the negative input by more than the specified
hysteresis, the output is a logic High. When the negative input exceeds the positive by
more than the hysteresis, the output is a logic Low. Otherwise, the comparator output
retains its present value. See Table 141 on page 238 for details.
The comparator may be powered down to reduce supply current. See the Power Control
Register 0 section on page 33 for details.
Caution: Because of the propagation delay of the comparator, Zilog does not recommend enabling
or reconfiguring the comparator without first disabling the interrupts and waiting for the
comparator output to settle. Doing so can result in spurious interrupts.
PS022827-1212
PRELIMINARY
Comparator