UM11029
All information provided in this document is subject to legal disclaimers.
© NXP Semiconductors N.V. 2017. All rights reserved.
User manual
Rev. 1.0 — 16 June 2017
478 of 515
NXP Semiconductors
UM11029
Chapter 28: LPC84x Analog comparator
10:8
COMP_VP_SEL
Selects positive voltage input
0
0x0
Voltage ladder output
0x1
ACMP_I1
0x2
ACMP_I2
0x3
ACMP_I3
0x4
ACMP_I4
0x5
ACMP_I5
0x6
Band gap. Internal reference voltage.
0x7
DACOUT0.
13:11 COMP_VM_SEL
Selects negative voltage input
0
0x0
Voltage ladder output
0x1
ACMP_I1
0x2
ACMP_I2
0x3
ACMP_I3
0x4
ACMP_I4
0x5
ACMP_I5
0x6
Band gap. Internal reference voltage.
0x7
DACOUT0.
19:14 -
Reserved. Write as 0.
0
20
EDGECLR
Interrupt clear bit. To clear the COMPEDGE bit and
thus negate the interrupt request, toggle the
EDGECLR bit by first writing a 1 and then a 0.
0
21
COMPSTAT
Comparator status. This bit reflects the state of the
comparator output.
0
22
-
Reserved. Write as 0.
0
23
COMPEDGE
Comparator edge-detect status.
0
24
INTENA
Must be set to generate interrupts.
1
26:25 HYS
Controls the hysteresis of the comparator. When the
comparator is outputting a certain state, this is the
difference between the selected signals, in the
opposite direction from the state being output, that will
switch the output.
0
0x0
None (the output will switch as the voltages cross)
0x1
5 mV
0x2
10 mV
0x3
20 mV
31:27 -
Reserved
-
Table 464. Comparator control register (CTRL, address 0x4002 4000) bit description
Bit
Symbol
Value
Description
Reset
value