Z8F082A28100KIT ZILOG [Zilog, Inc.], Z8F082A28100KIT Datasheet - Page 140

no-image

Z8F082A28100KIT

Manufacturer Part Number
Z8F082A28100KIT
Description
Z8 Encore XP-R F08xA Series with eXtended Peripherals
Manufacturer
ZILOG [Zilog, Inc.]
Datasheet
Comparator
Overview
Operation
PS024705-0405
Caution:
The Z8 Encore! XP
compares two analog input signals. A GPIO (
input. The negative input (
internal reference. The output is available as an interrupt source or can be routed to an
external pin using the GPIO multiplex. Features include:
One of the comparator inputs may be connected to an internal reference which is a user
selectable reference that is user programmable with 200 mV resolution.
The comparator may be powered down to save on supply current. See the
Register 0
di
ld cmp0
nop
nop
clr irq0 ; clear any spurious interrupts pending
ei
Because of the propagation delay of the comparator, it is not recommended to enable the
comparator without first disabling interrupts and waiting for the comparator output to
settle. Doing so can result in spurious interrupts after comparator enabling. The follow-
ing example shows how to safely enable the comparator:
2 inputs which can be connected up using the GPIO multiplex (MUX)
1 input can be connected to a programmable internal reference
1 input can be connected to the on-chip temperature sensor
Output can be either an interrupt source or an output to an external pin
on page 29 for details.
; wait for output to settle
®
F08xA Series devices feature a general purpose comparator that
CINN
P R E L I M I N A R Y
) may be taken from either an external GPIO pin or an
CINP
) pin provides the positive comparator
Z8 Encore! XP
Product Specification
®
Power Control
F08xA Series
Comparator
122

Related parts for Z8F082A28100KIT