
NUC126
Aug. 08, 2018
Page
281
of 943
Rev 1.03
NUC12
6 S
E
RI
E
S
T
E
CH
NI
CA
L R
E
F
E
RE
NCE
MA
NUA
L
ADC Compare Register 0/1 (ADC_ADCMPR0/1)
Register
Offset
R/W
Description
Reset Value
ADC_ADCMPR0
0x88
R/W
ADC Compare Register 0
0x0000_0000
ADC_ADCMPR1
0x8C
R/W
ADC Compare Register 1
0x0000_0000
31
30
29
28
27
26
25
24
Reserved
CMPD
23
22
21
20
19
18
17
16
CMPD
15
14
13
12
11
10
9
8
CMPWEN
Reserved
CMPMATCNT
7
6
5
4
3
2
1
0
CMPCH
CMPCOND
CMPIE
CMPEN
Bits
Description
[31:28]
Reserved
Reserved.
[27:16]
CMPD
Comparison Data
The 12-bit data is used to compare with conversion result of specified channel.
Note:
CMPD bits should be filled in unsigned format (straight binary format).
[15]
CMPWEN
Compare Window Mode Enable Bit
0 = Compare Window Mode Disabled.
1 = Compare Window Mode Enabled.
Note:
This bit is only presented in ADCMPR0 register.
[14:12]
Reserved
Reserved.
[11:8]
CMPMATCNT
Compare Match Count
When the specified A/D channel analog conversion result matches the compare
condition defined by CMPCOND bit, the internal match counter will increase 1. When
the internal counter reaches the value to (CMP1), the CMPFx bit will be
set.
[7:3]
CMPCH
Compare Channel Selection
00000 = Channel 0 conversion result is selected to be compared.
00001 = Channel 1 conversion result is selected to be compared.
00010 = Channel 2 conversion result is selected to be compared.
00011 = Channel 3 conversion result is selected to be compared.
00100 = Channel 4 conversion result is selected to be compared.
00101 = Channel 5 conversion result is selected to be compared.
00110 = Channel 6 conversion result is selected to be compared.
00111 = Channel 7 conversion result is selected to be compared.
01000 = Channel 8 conversion result is selected to be compared.
01001 = Channel 9 conversion result is selected to be compared.