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
464 of 515
NXP Semiconductors
UM11029
Chapter 26: LPC84x 12-bit Analog-to-Digital Converter (ADC)
26.6.11 A/D trim register
The A/D trim register configures the ADC for the appropriate operating range of the
analog supply voltage VDDA.
Remark:
Failure to set the VRANGE bit correctly causes the ADC to return incorrect
conversion results.
26.7 Functional description
26.7.1 Conversion Sequences
A conversion sequence is a single pass through a series of A/D conversions performed on
a selected set of A/D channels. Software can set-up two independent conversion
sequences, either of which can be triggered by software or by a transition on one of the
29
SEQB_INT
Sequence A interrupt/DMA flag.
If the MODE bit in the SEQB_CTRL register is 0, this flag will mirror the DATAVALID bit in
the sequence A global data register (SEQB_GDAT), which is set at the end of every A/D
conversion performed as part of sequence B. It will be cleared automatically when the
SEQB_GDAT register is read.
If the MODE bit in the SEQB_CTRL register is 1, this flag will be set upon completion of an
entire B sequence. In this case it must be cleared by writing a 1 to this SEQB_INT bit.
This interrupt must be enabled in the INTEN register.
0
30
THCMP_INT
Threshold Comparison Interrupt/DMA flag.
This bit will be set if any of the 12 THCMP flags in the lower bits of this register are set to
1 (due to an enabled out-of-range or threshold-crossing event on any channel).
Each type of threshold comparison interrupt on each channel must be individually enabled
in the INTEN register to cause this interrupt.
This bit will be cleared when all of the component flags in bits 11:0 are cleared via writing
1s to those bits.
0
31
OVR_INT
Overrun Interrupt flag.
Any overrun bit in any of the individual channel data registers will cause this interrupt. In
addition, if the MODE bit in either of the SEQn_CTRL registers is 0 then the OVERRUN bit
in the corresponding SEQn_GDAT register will also cause this interrupt.
This interrupt must be enabled in the INTEN register.
This bit will be cleared when all of the individual overrun bits have been cleared via
reading the corresponding data registers.
0
Table 455. A/D Flags register (FLAGS, address 0x4001 C068) bit description
Bit
Symbol
Description
Reset
value
Table 456. A/D trim register (TRM, addresses 0x4001 C06C) bit description
Bit
Symbol
Value
Description
Reset
value
4:0
-
Reserved.
-
5
VRANGE
Reserved.
0
0
High voltage. VDD = 2.7 V to 3.6 V.
1
Low voltage. VDD = 2.4 V to 2.7 V.
31:6
-
Reserved.
-