Analog-to-Digital Converter (ADC)
MCF52235 ColdFire® Integrated Microcontroller Reference Manual, Rev. 6
28-15
Freescale Semiconductor
Negative results (SEXT = 1) are always presented in twos-complement format. If an application requires
that the result be always positive, the corresponding offset register (ADOFS
n)
must be set to 0x0.
The interpretation of the numbers programmed into the ADC limit and offset registers (ADLLMT
n
,
ADHLMT
n
, and ADOFS
n
) must match your interpretation of the result register.
28.4.10 Low and High Limit Registers (ADLLMTn and ADHLMTn)
Each ADC sample is compared against the values in the limit registers. The comparison is based upon the
raw conversion value before the offset correction is applied. Refer to
ADC limit registers
(ADLLMT
n
and ADHLMT
n)
correspond to result registers (ADRSLT
n
). The high limit register is used
for the comparison of result > high limit. The low limit register is used for the comparison of result < low
limit.
Limit checking can be disabled by programming the respective limit register with 0x7FF8 for the high
limit and 0x0000 for the low limit. At reset, limit checking is disabled.
IPSBAR
Offsets:
0x19_0012 (ADRSLT0)
0x19_0014 (ADRSLT1)
0x19_0016 (ADRSLT2)
0x19_0018 (ADRSLT3)
0x19_001A (ADRSLT4)
0x19_001C (ADRSLT5)
0x19_001E (ADRSLT6)
0x19_0020 (ADRSLT7)
Access: read/write
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
R SEXT
RSLT
0
0
0
W
Reset
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Figure 28-12. Result Registers (ADRSLTn)
Table 28-14. ADRSLTn Field Descriptions
Field
Description
15
SEXT
Sign Extend bit.
0 Result is positive
1 Result is negative
Note: If only positive results are required, then the respective offset register (ADOFSn) must be set to 0x0.
14–3
RSLT
Result of the conversion.
2–0
Reserved, should be cleared.
Because
of
an
order
from
the
United
States
International
Trade
Commission,
BGA-packaged
product
lines
and
part
numbers
indicated
here
currently
are
not
available
from
Freescale
for
import
or
sale
in
the
United
States
prior
to
September
2010:MCF52234CVM60,
MCF52235CVM60