EasyManua.ls Logo

NXP Semiconductors LPC1768 - A;D Data Registers (AD0 DR0 to AD0 DR7 - 0 X4003 4010 to 0 X4003 402 C)

NXP Semiconductors LPC1768
841 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
UM10360 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2013. All rights reserved.
User manual Rev. 3 — 19 December 2013 580 of 841
NXP Semiconductors
UM10360
Chapter 29: LPC176x/5x Analog-to-Digital Converter (ADC)
29.5.4 A/D Data Registers (AD0DR0 to AD0DR7 - 0x4003 4010 to
0x4003 402C)
The A/D Data Registers hold the result of the last conversion for each A/D channel, when
an A/D conversion is complete. They also include the flags that indicate when a
conversion has been completed and when a conversion overrun has occurred.
Results of ADC conversion can be read in one of two ways. One is to use the A/D Global
Data Register to read all data from the ADC. Another is to use the A/D Channel Data
Registers. It is important to use one method consistently because the DONE and
OVERRUN flags can otherwise get out of synch between the AD0GDR and the A/D
Channel Data Registers, potentially causing erroneous interrupts or DMA activity.
3 ADINTEN3 0 Completion of a conversion on ADC channel 3 will not generate an interrupt. 0
1 Completion of a conversion on ADC channel 3 will generate an interrupt.
4 ADINTEN4 0 Completion of a conversion on ADC channel 4 will not generate an interrupt. 0
1 Completion of a conversion on ADC channel 4 will generate an interrupt.
5 ADINTEN5 0 Completion of a conversion on ADC channel 5 will not generate an interrupt. 0
1 Completion of a conversion on ADC channel 5 will generate an interrupt.
6 ADINTEN6 0 Completion of a conversion on ADC channel 6 will not generate an interrupt. 0
1 Completion of a conversion on ADC channel 6 will generate an interrupt.
7 ADINTEN7 0 Completion of a conversion on ADC channel 7 will not generate an interrupt. 0
1 Completion of a conversion on ADC channel 7 will generate an interrupt.
8 ADGINTEN 0 Only the individual ADC channels enabled by ADINTEN7:0 will generate
interrupts.
Remark: This bit must be set to 0 in burst mode (BURST = 1 in the AD0CR
register).
1
1 Only the global DONE flag in ADDR is enabled to generate an interrupt.
31:17 - Reserved, user software should not write ones to reserved bits. The value
read from a reserved bit is not defined.
NA
Table 533: A/D Interrupt Enable register (AD0INTEN - address 0x4003 400C) bit description
…continued
Bit Symbol Value Description Reset
value
Table 534: A/D Data Registers (AD0DR0 to AD0DR7 - 0x4003 4010 to 0x4003 402C) bit description
Bit Symbol Description Reset
value
3:0 - Reserved, user software should not write ones to reserved bits. The value read from a
reserved bit is not defined.
NA
15:4 RESULT When DONE is 1, this field contains 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
29:16 - Reserved, user software should not write ones to reserved bits. The value read from a
reserved bit is not defined.
NA
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 RESULT bits.This bit is
cleared by reading this register.
31 DONE This bit is set to 1 when an A/D conversion completes. It is cleared when this register is read. NA

Table of Contents

Other manuals for NXP Semiconductors LPC1768

Related product manuals