English
Language : 

UM10562 Datasheet, PDF (820/942 Pages) NXP Semiconductors – LPC408x/407x User manual
NXP Semiconductors
UM10562
Chapter 34: LPC408x/407x Comparators
Table 688. Comparator 0 control register (CMP_CTRL0 - address 0x4002 0004) bit description …continued
Bit Symbol
Value Description
Reset
Value
14:13 CMP0_HYS
Comparator 0 hysteresis control. When enabled, hysteresis determines the
00
difference required between the comparator inputs before the comparator
output switches. The difference must be in the direction opposite of the current
comparator output.
0x0 Hysteresis is turned off, comparator output will change as the input voltages
cross.
0x1 Hysteresis = 5 mV.
0x2 Hysteresis = 10 mV.
0x3 Hysteresis = 15 mV.
15 CMP0_INTPOL
Selects the polarity of the CMP0 output for purposes of generating level
0
interrupts. See Table 690.
0 The CMP0 output is used as-is for generating interrupts.
1 The CMP0 output is used inverted for generating interrupts.
16 CMP0_INTTYPE
Select comparator 0 interrupt type. See Table 690.
0
0 Comparator 0 interrupt is edge triggered.
1 Comparator 0 interrupt is level triggered.
18:17 CMP0_INTEDGE
Select edge triggered interrupt to be active on either high or low transitions,
0
when CMP0_IntType = 0. See Table 690.
0x0 Comparator 0 interrupt is active on falling edges.
0x1 Comparator 0 interrupt is active on rising edges.
0x2 Comparator 0 Interrupt is active on both edges.
0x3 reserved.
19 CMP0_INTFLAG
Comparator 0 interrupt flag.
0
0 The Comparator 0 interrupt is not pending.
1 The Comparator 0 interrupt is pending. Writing a 1 to this bit clears the flag.
21:20 CMP0_VLADEN
Voltage ladder enable for comparator 0.
00
0x0 The Comparator 0 voltage ladder is disabled.
0x1 The Comparator 0 voltage ladder is disabled in Deep Sleep and Power-down
modes and re-enabled automatically when exiting those modes.
0x2 The Comparator 0 voltage ladder is disabled in Power-down mode and
re-enabled automatically when exiting Power-down.
0x3 The Comparator 0 voltage ladder is enabled.
22 CMP0_VLADREF
Voltage reference select for comparator 0 voltage ladder.
0
0 VREF_CMP pin.
1 VDDA pin.
UM10562
User manual
All information provided in this document is subject to legal disclaimers.
Rev. 1 — 13 September 2012
© NXP B.V. 2012. All rights reserved.
820 of 942