DR
AFT
DR
AFT
DRAFT
DR
D
RAFT
DRAFT
DRA
FT DRAF
D
RAFT DRAFT DRAFT DRAFT DRAFT D
DRAFT
D
RAFT DRA
FT DRAFT DRAFT DRAFT DRA
UM10316_0
© NXP B.V. 2008. All rights reserved.
User manual
Rev. 00.06 — 17 December 2008
455 of 571
NXP Semiconductors
UM10316
Chapter 26: LPC29xx Analog-to-Digital Converter (ADC)
3.5 Compare-status clear register
Writing a 1 to the compare-status clear register clears that specific bit in the
COMP_STATUS Register. See
channel 9 to channel 15 for ADC1 and ADC2.
shows the bit assignment of the COMP_STATUS_CLR register.
3.6 ADC configuration register
The ADC configuration register configures the ADC operation modes.
Bit 0 configures the operation mode. This can be either single or continuous. In single
mode (0), one scan of all the selected channels is performed. In continuous mode (1), the
next scan for all selected inputs is started once the previous scan has been completed .
Bit 1 configures the power-down mode: when set to 0, the ADC is internally put into
power-down mode when no conversion is being done: when set to 1 the ADC is never put
into power-down mode.
Bits 7 to 15 configure the enabling of the several start inputs per ADC: start 0 to start 3.
Setting to 1 enables the start. When enabled, start 0 and start 2 need a pulse which takes
at least one system clock cycle; start 1 and start 3 need a pulse which takes at least one
ADC clock cycle.
Transfer of configuration to the ADC domain starts as soon as the update bit in the
ADC_CONTROL register is set to 1 (see
). The update bit being zero again
indicates that the transfer is ready. When the update bit is set it is not possible to write to
the ADC_CONTROL registers.
shows the bit assignment of the ADC_CONFIG register.
:
:
:
:
:
0
COMP_STATUS_0
R
1
Compare match of channel 0
0*
No compare match of channel 0
Table 376. COMP_STATUS register bit description(COMP_STATUS addresses 0xE00C 2300
(ADC0), 0xE00C 3300 (ADC1), 0xE00C 4300 (ADC2))
…continued
* = reset value
Bit
Symbol
Access
Value
Description
Table 377. COMP_STATUS_CLR register bit description COMP_STATUS_CLR, addresses
0xE00C 2304 (ADC0), 0xE00C 3304 (ADC1), 0xE00C 4304 (ADC2)
* = reset value
Bit
Symbol
Access
Value
Description
31 to 16 reserved
R
-
Reserved; do not modify. Read as logic
0
15
COMP_STATUS_CLR_1
5
W
1
Clears the compare match of channel
15
:
:
:
:
:
0
COMP_STATUS_CLR_0
W
1
Clears the compare match of channel 0