Z8F16800128ZCOG Zilog, Z8F16800128ZCOG Datasheet - Page 261

KIT DEV FOR Z8F642 MCU 28PIN

Z8F16800128ZCOG

Manufacturer Part Number
Z8F16800128ZCOG
Description
KIT DEV FOR Z8F642 MCU 28PIN
Manufacturer
Zilog
Series
Z8 Encore!®r
Type
MCUr

Specifications of Z8F16800128ZCOG

Contents
Hardware, Software and Documentation
Processor To Be Evaluated
F083A
Data Bus Width
8 bit
Interface Type
RS-232, USB
For Use With/related Products
Z8F642
For Use With
269-4661 - KIT ACC ETHERNET SMART CABLE
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Other names
269-4677
Comparator
Overview
Operation
PS025011-1010
Caution:
The Z8 Encore! XP F1680 Series devices feature two same general purpose comparators
that compares two analog input signals. For each comparator, a GPIO (C0INP/C1INP) pin
provides the positive comparator input, the negative input (C0INN/C1INN) can be taken
from either an external GPIO pin or an internal reference. The output of each comparator
is available as an interrupt source or can be routed to an external pin using the GPIO 
multiplex. Features for each comparator 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 supply current or to continue to operate in
STOP Mode. For details, see
comparator interrupt (if enabled) automatically initiates a Stop Mode Recovery and
generates an interrupt request. In the
1. Also, the Comparator request bit in
Following completion of the Stop Mode Recovery if interrupts are enabled, the CPU
responds to the interrupt request by fetching the comparator interrupt vector.
Because of the propagation delay of the comparator, it is not recommended to enable
the comparator without first disabling interrupts, and then waiting for the comparator
output to settle. Doing so can result in spurious interrupts after comparator enabling.
The following example shows how to safely enable the comparator:
Two inputs which are connected using the GPIO multiplex (MUX).
One input can be connected to a programmable internal reference.
One input can be connected to the on-chip temperature sensor.
Output can enable/disable Timer operation.
Output can be either an interrupt source or an output to an external pin.
Operation in STOP Mode.
di
ldx CMP0,r0
nop
nop
ldx IRQ0,#0 ; clear any spurious interrupts pending
ei
; wait for output to settle
P R E L I M I N A R Y
Power Control Register 0
Reset Status Register
Interrupt Request 1 Register
on page 47. In STOP Mode, the
Z8 Encore! XP
on page 42, the Stop bit is set to
Product Specification
on page 76 is set.
®
F1680 Series
Comparator
247

Related parts for Z8F16800128ZCOG