UM10850
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2016. All rights reserved.
User manual
Rev. 2.4 — 13 September 2016
377 of 464
NXP Semiconductors
UM10850
Chapter 25: LPC5410x 12-bit ADC controller (ADC0)
25.6.6 ADC Compare Low Threshold Registers 0 and 1
These registers set the LOW threshold levels against which ADC conversions on all
channels will be compared.
Each channel will either be compared to the THR0_LOW/HIGH registers or to the
THR1_LOW/HIGH registers depending on what is specified for that channel in the
CHAN_THRSEL register.
A conversion result LESS THAN this value on any channel will cause the
THCMP_RANGE status bits for that channel to be set to 0b01. This result will also
generate an interrupt/DMA trigger if enabled to do so via the ADCMPINTEN bits
associated with each channel in the INTEN register.
If, for two successive conversions on a given channel, one result is below this threshold
and the other is equal-to or above this threshold, than a threshold crossing has occurred.
In this case the MSB of the THCMP_CROSS status bits will indicate that a threshold
crossing has occurred and the LSB will indicate the direction of the crossing. A threshold
crossing event will also generate an interrupt/DMA trigger if enabled to do so via the
ADCMPINTEN bits associated with each channel in the INTEN register.
Table 423. ADC Compare Low Threshold register 0 (THR0_LOW, address offset 0x50) bit description
Bit
Symbol
Description
Reset value
3:0
-
Reserved. Read value is undefined, only zero should be written.
NA
15:4
THRLOW
Low threshold value against which ADC results will be compared
0x000
31:16 -
Reserved. Read value is undefined, only zero should be written.
NA
Table 424. ADC Compare Low Threshold register 1 (THR1_LOW, address offset 0x54) bit description
Bit
Symbol
Description
Reset value
3:0
-
Reserved. Read value is undefined, only zero should be written.
NA
15:4
THRLOW
Low threshold value against which ADC results will be compared
0x000
31:16 -
Reserved. Read value is undefined, only zero should be written.
NA