![NXP Semiconductors LPC43Sxx Скачать руководство пользователя страница 1343](http://html1.mh-extra.com/html/nxp-semiconductors/lpc43sxx/lpc43sxx_user-manual_17218271343.webp)
UM10503
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2015. All rights reserved.
User manual
Rev. 2.1 — 10 December 2015
1343 of 1441
NXP Semiconductors
UM10503
Chapter 48: 12-bit ADC (ADCHS)
48.6.10 Last sample registers
When DONE is set these registers contain the last converted sample of channel m
(m=0,1..5). They also contain various status signals.
The comparator status fields THCMP_RANGE and THCMP_CROSS are 0b00 if the
channel is not linked to a comparator (when TRESHOLD_SEL is 0b00 or 0b11).
Table 1130.Threshold A register (THR_A, address 0x400F 0020) bit description
Bit
Symbol
Description
Reset
value
11:0
THR_LOW_A
Low Compare Threshold Register A:
Contains the lower threshold level for automatic threshold
comparison for any channels linked to threshold pair A.
0x000
27:16
THR_HIGH_A
High Compare Threshold Register A:
Contains the upper threshold level for automatic threshold
comparison for any channels linked to threshold pair A.
0xFFF
31:28
-
Reserved.
-
Table 1131.Threshold B register (THR_B, address 0x400F 0024) bit description
Bit
Symbol
Description
Reset
value
11:0
THR_LOW_B
Low Compare Threshold Register B:
Contains the lower threshold level for automatic threshold
comparison for any channels linked to threshold pair A.
0x000
27:16
THR_HIGH_B
High Compare Threshold Register B:
Contains the upper threshold level for automatic threshold
comparison for any channels linked to threshold pair A.
0xFFF
31:28
-
Reserved.
-
Table 1132.Last sample registers (LAST_SAMPLE[0:5], address 0x400F 0028 (LAST_SAMPLE0) to 0x400F 003C
(LAST_SAMPLE(5)) bit description
Bit
Symbol
Description
Reset
value
0
DONE
This bit is set to 1 when an A/D conversion on this channel completes.
This bit is cleared whenever this register is read.
0x0
1
OVERRUN
This bit will be set to a 1 if a new conversion on this channel completes and
overwrites the previous contents of the RESULT field before it has been read - i.e.
while the DONE bit is set.
This bit is cleared, along with the DONE bit, whenever this register is read.
This bit (in any of the registers) will cause an overrun interrupt request to be asserted
if the overrun interrupt is enabled.
0x0
3:2
THCMP_RANGE
Threshold Range Comparison result
00: In Range
01: Below Range
10: Above Range
11: Reserved
0x0