UM10850
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2016. All rights reserved.
User manual
Rev. 2.4 — 13 September 2016
380 of 464
NXP Semiconductors
UM10850
Chapter 25: LPC5410x 12-bit ADC controller (ADC0)
25.6.9 ADC Interrupt Enable Register
There are four separate interrupt requests generated by the ADC: conversion, these are
-complete or sequence-complete interrupts for each of the two sequences, a
threshold-comparison out-of-range interrupt, and a data overrun interrupt. The two
conversion/sequence-complete interrupts can also serve as DMA triggers. The threshold
and data overrun interrupts share a slot in the NVIC.
These interrupts may be combined into one request on some chips if there is a limited
number of interrupt slots. This register contains the interrupt-enable bits for each interrupt.
In this register, threshold events selected in the ADCMPINTENn bits are described as
follows:
•
Disabled: Threshold comparisons on channel n will not generate an ADC
threshold-compare interrupt/DMA trigger.
•
Outside threshold: A conversion result on channel n which is outside the range
specified by the designated HIGH and LOW threshold registers will set the channel n
THCMP flag in the FLAGS register and generate an ADC threshold-compare
interrupt/DMA trigger.
•
Crossing threshold: Detection of a threshold crossing on channel n will set the
channel n THCMP flag in the FLAGS register and generate an ADC
threshold-compare interrupt/DMA trigger.
Remark:
Overrun and threshold-compare interrupts related to a particular channel will
occur regardless of which sequence was in progress at the time the conversion was
performed or what trigger caused the conversion.
Table 428: ADC Interrupt Enable register (INTEN, address offset 0x64) bit description
Bit
Symbol
Value Description
Reset
value
0
SEQA_INTEN
Sequence A interrupt enable.
0
0
Disabled. The sequence A interrupt/DMA trigger is disabled.
1
Enabled. The sequence A interrupt/DMA trigger is enabled and will be asserted
either upon completion of each individual conversion performed as part of
sequence A, or upon completion of the entire A sequence of conversions,
depending on the MODE bit in the SEQA_CTRL register.
1
SEQB_INTEN
Sequence B interrupt enable.
0
0
Disabled. The sequence B interrupt/DMA trigger is disabled.
1
Enabled. The sequence B interrupt/DMA trigger is enabled and will be asserted
either upon completion of each individual conversion performed as part of
sequence B, or upon completion of the entire B sequence of conversions,
depending on the MODE bit in the SEQB_CTRL register.
2
OVR_INTEN
Overrun interrupt enable.
0
0
Disabled. The overrun interrupt is disabled.
1
Enabled. The overrun interrupt is enabled. Detection of an overrun condition on
any of the 12 channel data registers will cause an overrun interrupt/DMA trigger.
In addition, if the MODE bit for a particular sequence is 0, then an overrun in the
global data register for that sequence will also cause this interrupt/DMA trigger to
be asserted.