P89LPC924 Philips Semiconductors, P89LPC924 Datasheet - Page 33

no-image

P89LPC924

Manufacturer Part Number
P89LPC924
Description
(P89LPC924 / P89LPC925) 8-bit microcontrollers
Manufacturer
Philips Semiconductors
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
P89LPC9241FDH112
Manufacturer:
NXP Semiconductors
Quantity:
1 876
Part Number:
P89LPC924FDH
Manufacturer:
NXP
Quantity:
8
Part Number:
P89LPC924FDH
Manufacturer:
FAIRCHIL
Quantity:
130
Part Number:
P89LPC924FDH
Manufacturer:
NXP/恩智浦
Quantity:
20 000
Part Number:
P89LPC924FDH518
Manufacturer:
NXP Semiconductors
Quantity:
25 409
Part Number:
P89LPC924FDHЈ¬518
Manufacturer:
PH3
Quantity:
10
Philips Semiconductors
9397 750 14471
Product data
Fig 10. Comparator input and output connections.
(P0.5) CMPREF
(P0.4) CIN1A
(P0.3) CIN1B
(P0.2) CIN2A
(P0.1) CIN2B
V REF
8.21.1 Internal reference voltage
8.21 Analog comparators
Two analog comparators are provided on the P89LPC924/925. Input and output
options allow use of the comparators in a number of different configurations.
Comparator operation is such that the output is a logical one (which may be read in a
register and/or routed to a pin) when the positive input (one of two selectable pins) is
greater than the negative input (selectable from a pin or an internal reference
voltage). Otherwise the output is a zero. Each comparator may be configured to
cause an interrupt when the output value changes.
The overall connections to both comparators are shown in
comparators function to V
When each comparator is first enabled, the comparator output and interrupt flag are
not guaranteed to be stable for 10 microseconds. The corresponding comparator
interrupt should not be enabled during that time, and the comparator interrupt flag
must be cleared before the interrupt is enabled in order to prevent an immediate
interrupt service.
When a comparator is disabled the comparator’s output, COx, goes HIGH. If the
comparator output was LOW and then is disabled, the resulting transition of the
comparator output from a LOW to HIGH state will set the comparator flag, CMFx.
This will cause an interrupt if the comparator interrupt is enabled. The user should
therefore disable the comparator interrupt prior to disabling the comparator.
Additionally, the user should clear the comparator flag, CMFx, after disabling the
comparator.
An internal reference voltage generator may supply a default reference when a single
comparator input pin is used. The value of the internal reference voltage, referred to
as V
REF
, is 1.23 V 10%.
CN1
CN2
CP1
CP2
Rev. 03 — 15 December 2004
Comparator 1
Comparator 2
8-bit microcontrollers with accelerated two-clock 80C51 core
DD
CO1
CO2
= 2.4 V.
Change Detect
Change Detect
OE1
OE2
CMF1
CMF2
P89LPC924/925
© Koninklijke Philips Electronics N.V. 2004. All rights reserved.
CMP1 (P0.6)
CMP2 (P0.0)
Figure
EC
002aaa422
10. The
Interrupt
33 of 49

Related parts for P89LPC924