UM10413
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2011. All rights reserved.
User manual
Rev. 1 — 16 December 2011
175 of 268
NXP Semiconductors
UM10413
MPT612 User manual
19.4.2 A/D Global data register (AD0GDR - 0xE003 4004)
19.4.3 A/D Status register (AD0STAT - 0xE003 4030)
The A/D Status register allows the status of all A/D channels to be checked
simultaneously. The DONE and OVERRUN flags appearing in register ADDRn for each
A/D channel are mirrored in ADSTAT. The interrupt flag (the logical OR of all DONE flags)
is also found in ADSTAT.
26:24
START
000
if bit BURST is logic 0, these bits control whether and when an A/D conversion is
started:
no start (this value must be used when clearing PDN to logic 0)
0
001
start conversion now
010
start conversion when the edge selected by bit 27 occurs on pin PIO16/EINT0
011
start conversion when the edge selected by bit 27 occurs on PIO22
100
reserved
101
reserved
110
start conversion when the edge selected by bit 27 occurs on MAT1.0
111
start conversion when the edge selected by bit 27 occurs on MAT1.1
27
EDGE
1
this bit is significant only when the START field contains 010 to 111. In these cases:
start conversion on a falling edge on the selected CAP/MAT signal
0
0
start conversion on a rising edge on the selected CAP/MAT signal
31:28
-
reserved, user software must not write logic 1s to reserved bits; value read from a
reserved bit is not defined
n/a
Table 160: A/D Control register (AD0CR - address 0xE003 4000) bit description
…continued
Bit
Symbol
Value
Description
Reset
value
Table 161: A/D Global data register (AD0GDR - address 0xE003 4004) bit description
Bit
Symbol
Description
Reset
value
5:0
-
reserved, user software must not write logic 1s to reserved bits; value read from a
reserved bit is not defined
n/a
15:6
RESULT
if bit DONE is logic 1, this field contains a binary fraction representing voltage on pin
Ain selected by SEL field, divided by voltage on V
DD(ADC)
pin (V/V
REF
). Logic 0 in
the field indicates that the voltage on pin Ain was less than, equal to, or close to that
on GND
ADC
, while 0x3FF indicates that voltage on pin Ain was close to, equal to, or
greater than that on V
REF
.
n/a
23:16
-
reserved, user software must not write logic 1s to reserved bits; value read from a
reserved bit is not defined
n/a
26:24
CHN
contains the channel from which the RESULT bits were converted (for example, 000
identifies channel 0, 001 channel 1...).
n/a
29:27
-
reserved, user software must not write logic 1s to reserved bits; value read from a
reserved bit is not defined
n/a
30
OVERUN
logic 1 in burst mode if the results of one or more conversions are lost and
overwritten before the conversion that produced the result in the RESULT bits.
Cleared by reading this register.
0
31
DONE
logic 1 when an A/D conversion completes. 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 started.
0