
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
375 of 464
NXP Semiconductors
UM10850
Chapter 25: LPC5410x 12-bit ADC controller (ADC0)
25.6.5 ADC Channel Data Registers 0 to 11
The ADC Channel Data Registers hold the result of the last conversion completed for
each ADC channel. They also include status bits to indicate when a conversion has been
completed, when a data overrun has occurred, and where the most recent conversion fits
relative to the range dictated by the high and low threshold registers.
Results of ADC conversion can be read in one of two ways. One is to use the ADC Global
Data Registers for each of the sequences to read data from the ADC at the end of each
ADC conversion. Another is to use these individual ADC Channel Data Registers, typically
after the entire sequence has completed. It is recommended to use one method
consistently for a given conversion sequence.
Remark:
The method to be employed for each sequence should be reflected in the
MODE bit in the corresponding SEQ_CTRL register since this will impact interrupt and
overrun flag generation.
The information presented in the DAT registers always pertains to the most recent
conversion completed on that channel regardless of what sequence requested the
conversion or which trigger caused it.
The OVERRUN fields for each channel are also replicated in the FLAGS register.
Table 421. Address map DAT[0:11] registers
Peripheral
Base address
Offset
Increment
Dimension
ADC
0x1C03 2000
[0x020:0x04C]
0x4
12
Table 422. ADC Data Registers (DAT[0:11], address offset [0x020:0x04C]) bit description
Bit
Symbol
Description
Reset
value
3:0
-
Reserved.
NA
15:4
RESULT
This field contains the 12-bit ADC conversion result from the last conversion performed on this
channel. This will be a binary fraction representing the voltage on the AD0[n] pin, as it falls within
the range of V
REFP
to V
REFN
. Zero in the field indicates that the voltage on the input pin was less
than, equal to, or close to that on V
REFN
, while 0xFFF indicates that the voltage on the input was
close to, equal to, or greater than that on V
REFP
.
NA
17:16 THCMP
RANGE
Threshold Range Comparison result.
0x0 = In Range: The last completed conversion was greater than or equal to the value
programmed into the designated LOW threshold register (THRn_LOW) but less than or equal to
the value programmed into the designated HIGH threshold register (THRn_HIGH).
0x1 = Below Range: The last completed conversion on was less than the value programmed into
the designated LOW threshold register (THRn_LOW).
0x2 = Above Range: The last completed conversion was greater than the value programmed
into the designated HIGH threshold register (THRn_HIGH).
0x3 = Reserved.
NA