UM10429
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2010. All rights reserved.
User manual
Rev. 1 — 20 October 2010
144 of 258
NXP Semiconductors
UM10429
Chapter 16: LPC1102 Analog-to-Digital Converter (ADC)
16.6.3 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 ADDRn 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.
16.6.4 A/D Interrupt Enable Register
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.
29:27 Unused
These bits always read as zeroes. They could be used for expansion of
the CHN field in future compatible A/D converters that can convert more
channels.
0
30
OVERR
UN
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.
0
31
DONE
This bit is set to 1 when an A/D conversion completes. It is cleared
when this register is read and when the ADCR is written. If the ADCR is
written while a conversion is still in progress, this bit is set and a new
conversion is started.
0
Table 142. A/D Global Data Register (AD0GDR - address 0x4001 C004) bit description
Bit
Symbol
Description
Reset
Value
Table 143. A/D Status Register (AD0STAT - address 0x4001 C030) bit description
Bit
Symbol
Description
Reset
Value
4:0
Done4:0
These bits mirror the DONE status flags that appear in the result
register for each A/D channel.
0
7:5
-
Reserved
-
12:8
Overrun7:0 These bits mirror the OVERRRUN status flags that appear in the
result register for each A/D channel. Reading ADSTAT allows
checking the status of all A/D channels simultaneously.
0
15:13 -
Reserved
-
16
ADINT
This bit is the A/D interrupt flag. It is one when any of the individual
A/D channel Done flags is asserted and enabled to contribute to the
A/D interrupt via the ADINTEN register.
0
31:17 Unused
Unused, always 0.
0