
NUC126
Aug. 08, 2018
Page
277
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 Control Register (ADC_ADCR)
Register
Offset
R/W
Description
Reset Value
ADC_ADCR
0x80
R/W
ADC Control Register
0x0005_0000
31
30
29
28
27
26
25
24
DMOF
Reserved
23
22
21
20
19
18
17
16
Reserved
SMPTSEL
15
14
13
12
11
10
9
8
Reserved
ADST
DIFFEN
PTEN
TRGEN
7
6
5
4
3
2
1
0
TRGCOND
TRGS
ADMD
ADIE
ADEN
Bits
Description
[31]
DMOF
Differential Input Mode Output Format
If user enables differential input mode, the conversion result can be expressed with
binary straight format (unsigned format) or 2’s complement format (signed format).
0 = A/D Conversion result will be filled in RSLT at ADDRx registers with unsigned
format (straight binary format).
1 = A/D Conversion result will be filled in RSLT at ADDRx registers with 2's
complement format.
[30:19]
Reserved
Reserved.
[18:16]
SMPTSEL
ADC Internal Sampling Time Selection
Total ADC conversion cycle = sampling cycle + 12.
000 = 4 ADC clock for sampling; 16 ADC clock for complete conversion.
001 = 5 ADC clock for sampling; 17 ADC clock for complete conversion.
010 = 6 ADC clock for sampling; 18 ADC clock for complete conversion.
011 = 7 ADC clock for sampling; 19 ADC clock for complete conversion.
100 = 8 ADC clock for sampling; 20 ADC clock for complete conversion.
101 = 9 ADC clock for sampling; 21 ADC clock for complete conversion.
110 = 10 ADC clock for sampling; 22 ADC clock for complete conversion.
111 = 11 ADC clock for sampling; 23 ADC clock for complete conversion.
[15:12]
Reserved
Reserved.
[11]
ADST
A/D Conversion Start
ADST bit can be set to 1 from four sources: software, external pin STADC, PWM
trigger and Timer trigger. ADST bit will be cleared to 0 by hardware automatically at
the ends of Single mode and Single-cycle Scan mode. In Continuous Scan mode
and Burst mode, A/D conversion is continuously performed until software writes 0 to
this bit or chip is reset.
0 = Conversion stops and A/D converter enters idle state.
1 = Conversion starts.
[10]
DIFFEN
Differential Input Mode Control
Differential input voltage (V
diff
)
=
V
plus
- V
minus
,.