![Freescale Semiconductor ColdFire MCF5211 Скачать руководство пользователя страница 391](http://html1.mh-extra.com/html/freescale-semiconductor/coldfire-mcf5211/coldfire-mcf5211_reference-manual_2330619391.webp)
Analog-to-Digital Converter (ADC)
MCF5213 ColdFire® Integrated Microcontroller Reference Manual, Rev. 3
Freescale Semiconductor
23-13
23.4.7
Limit Status Register (ADLSTAT)
The ADC limit status (ADLSTAT) register latches in the result of the comparison between the result of the
sample in the ADRSLT
n
register and the respective limit register, ADHLMT
n
or ADLLMT
n
.
For example, if the result for ADRSLT0 is greater than the value programmed into ADHLMT0, then the
the HLS0 bit is set. An interrupt is generated if CTRL1[HLMTIE] is set.
These bits are sticky—they are not cleared automatically by subsequent conversions. A bit may only be
cleared by writing a 1 to it.
8
HLMTI
High Limit Interrupt bit. If any high limit register (ADHLMT
n
) is enabled by having a value other than 0x7FF8,
high limit checking is enabled. This bit is set at the completion of an individual conversion which may or may
not be the end of a scan. It is cleared by writing 1 to all active ADLSTAT[HLS] bits.
0 No high limit interrupt request
1 High limit exceeded, IRQ pending if CTRL1[HLMTIE] is set
7–0
RDY
n
Ready Sample bits. These bits indicate samples 7-0 are ready to be read. The RDY
n
bits are set as the
individual channel conversions are completed and stored in a ADRSLT
n
register. These bits are cleared after
a read from the corresponding ADC results (ADRSLT
n
) register. If polling the RDY
n
bits to determine if a
particular sample is executed, care should be taken not to start a new scan until all enabled samples are
completed.
0 Sample not ready or has been read
1 Sample ready to be read
Note:
RDY
n
bits can be cleared when the debugger reads the corresponding results register during a debug
session.
IPSBAR
Offset: 0x19_000E (ADLSTAT)
Access: read/write
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
R
HLS7 HLS6 HLS5 HLS4 HLS3 HLS2 HLS1 HLS0 LLS7 LLS6 LLS5 LLS4 LLS3 LLS2 LLS1 LLS0
W
Reset
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Figure 23-10. Limit Status Register (ADLSTAT)
Table 23-12. ADLSTAT Field Descriptions
Field
Description
15–8
HLS
n
High Limit Status bits. These bits hold the result of a comparison between the sample (stored in ADRSLT
n
)
and the high-limit value (stored in ADHLMT
n
).
0 Sample
n
is less than or equal to the associated high-limit value
1 Sample
n
is greater than the associated high-limit value
Note:
These bits are sticky, and can only be cleared by writing a 1 to them.
7–0
LLS
n
Low Limit Status bits. These bits hold the result of a comparison between the sample (stored in ADRSLT
n
)
and the low-limit value (stored in ADLLMT
n
).
0 Sample
n
is greater than or equal to the associated low-limit value
1 Sample
n
is less than the associated low-limit value
Note:
These bits are sticky, and can only be cleared by writing a 1 to them.
Table 23-11. ADSTAT Field Descriptions (continued)
Field
Description
Содержание ColdFire MCF5211
Страница 48: ...Overview MCF5213 ColdFire Integrated Microcontroller Reference Manual Rev 3 1 14 Freescale Semiconductor...
Страница 158: ...Reset Controller Module MCF5213 ColdFire Integrated Microcontroller Reference Manual Rev 3 9 10 Freescale Semiconductor...
Страница 218: ...Edge Port Module EPORT MCF5213 ColdFire Integrated Microcontroller Reference Manual Rev 3 13 8 Freescale Semiconductor...
Страница 234: ...DMA Controller Module MCF5213 ColdFire Integrated Microcontroller Reference Manual Rev 3 14 16 Freescale Semiconductor...
Страница 378: ...I2 C Interface MCF5213 ColdFire Integrated Microcontroller Reference Manual Rev 3 22 16 Freescale Semiconductor...
Страница 468: ...FlexCAN MCF5213 ColdFire Integrated Microcontroller Reference Manual Rev 3 25 30 Freescale Semiconductor...