UM10503
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2012. All rights reserved.
User manual
Rev. 1.3 — 6 July 2012
1161 of 1269
NXP Semiconductors
UM10503
Chapter 44: LPC43xx 10-bit ADC0/1
44.6.4 A/D Data Registers
The A/D Data Register hold the result when an A/D conversion is complete, and also
include the flags that indicate when a conversion has been completed and when a
conversion overrun has occurred.
44.6.5 A/D Status register
The A/D Status register allows checking the status of all A/D channels simultaneously.
The DONE and OVERRUN flags appearing in the AD0/1DRn register for each A/D
channel n are mirrored in ADSTAT. The interrupt flag (the logical OR of all DONE flags) is
also found in ADSTAT.
Table 1012.A/D Interrupt Enable register (INTEN - address 0x400E 300C (ADC0) and
0x400E 400C (ADC1)) bit description
Bit
Symbol
Description
Reset
value
7:0
ADINTEN
These bits allow control over which A/D channels generate
interrupts for conversion completion. When bit 0 is one, completion
of a conversion on A/D channel 0 will generate an interrupt, when bit
1 is one, completion of a conversion on A/D channel 1 will generate
an interrupt, etc.
0x00
8
ADGINTEN
When 1, enables the global DONE flag in ADDR to generate an
interrupt. When 0, only the individual A/D channels enabled by
ADINTEN 7:0 will generate interrupts.
1
31:9 -
Reserved. Always 0.
0
Table 1013.A/D Data registers (DR - addresses 0x400E 3010 (DR0) to 0x400E 302C (DR7)
(ADC0); 0x400E 4010 (DR0) to 0x400E 402C (DR7) (ADC1)) bit description
Bit
Symbol
Description
Reset
value
5:0
-
Reserved. Always 0.
0
15:6
V_VREF
When DONE is 1, this field contains a binary fraction representing the
voltage on the ADCn input pin selected in
, divided by the
voltage on the VDDA pin. Zero in the field indicates that the voltage on
the ADCn input pin was less than, equal to, or close to that on VDDA,
while 0x3FF indicates that the voltage on ADCn input pin was close to,
equal to, or greater than that on VDDA.
-
29:16 -
Reserved. Always 0.
0
30
OVERRUN This bit is 1 in burst mode if the results of one or more conversions
was (were) lost and overwritten before the conversion that produced
the result in the V_VREF bits in this register.This bit is cleared by
reading this register.
0
31
DONE
This bit is set to 1 when an A/D conversion completes. It is cleared
when this register is read.
0