
UM10375
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2011. All rights reserved.
User manual
Rev. 3 — 14 June 2011
316 of 368
NXP Semiconductors
UM10375
Chapter 20: LPC13xx Analog-to-Digital Converter (ADC)
20.6.3 A/D Interrupt Enable Register (AD0INTEN - 0x4001 C00C)
This register allows control over which A/D channels generate an interrupt when a
conversion is complete. For example, it may be desirable to use some A/D channels to
monitor sensors by continuously performing conversions on them. The most recent
results are read by the application program whenever they are needed. In this case, an
interrupt is not desirable at the end of each conversion for some A/D channels.
20.6.4 A/D Data Registers (AD0DR0 to AD0DR7 - 0x4001 C010 to
0x4001 C02C)
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.
20.6.5 A/D Status Register (AD0STAT - 0x4001 C030)
The A/D Status register allows checking the status of all A/D channels simultaneously.
The DONE and OVERRUN flags appearing in the AD0DRn register for each A/D channel
are mirrored in ADSTAT. The interrupt flag (the logical OR of all DONE flags) is also found
in ADSTAT.
Table 307: A/D Interrupt Enable Register (AD0INTEN - address 0x4001 C00C) 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.
0
Table 308: A/D Data Registers (AD0DR0 to AD0DR7 - addresses 0x4001 C010 to
0x4001 C02C) bit description
Bit
Symbol
Description
Reset
Value
5:0
-
Reserved.
0
15:6
V_VREF
When DONE is 1, this field contains a binary fraction representing the
voltage on the ADn pin, divided by the voltage on the V
REF
pin. Zero in
the field indicates that the voltage on the ADn pin was less than, equal
to, or close to that on V
REF
, while 0x3FF indicates that the voltage on
AD input was close to, equal to, or greater than that on V
REF
.
NA
29:16 -
Reserved.
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.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