NuMicro® NUC029LEE/NUC029SEE
32-bit Arm
®
Cortex
®
-M0 Microcontroller
Aug, 2018
Page
486
of
497
Rev 1.00
N
U
MICRO
®
N
UC02
9L
E
E
/N
UC029
S
E
E
T
E
CHN
ICA
L R
E
F
E
R
E
NC
E
M
A
NU
A
L
[10]
DIFFEN
Differential Input Mode Control
0 = Single-end analog input mode.
1 = Differential analog input mode.
Differential input Paired Channel
ADC Analog Input
V
plus
V
minus
0
ADC1
ADC2
1
ADC3
ADC4
2
ADC5
ADC6
3
ADC7
ADC8
4
ADC9
ADC10
Differential input voltage (V
diff
) = V
plus
- V
minus
, where V
plus
is the analog input; V
minus
is the
inverted analog input.
In differential input mode, only the odd number of the two corresponding channels needs
to be enabled in ADCHER. The conversion result will be placed to the corresponding data
register of the enabled channel.
[9]
PTEN
PDMA Transfer Enable Bit
0 = PDMA data transfer Disabled.
1 = PDMA data transfer in ADDR 0~11 Enabled.
When A/D conversion is completed, the converted data is loaded into ADDR 0~11,
software can enable this bit to generate a PDMA data transfer request.
When PTEN=1, software must set ADIE=0 (ADCR[1]) to disable interrupt.
[8]
TRGEN
Hardware Trigger Enable Bit
Enable or disable triggering of A/D conversion by hardware (external STADC pin or PWM
Center-aligned trigger).
0 = Disabled.
1 = Enabled.
ADC hardware trigger function is only supported in single-cycle scan mode.
If hardware trigger mode, the ADST bit (ADCR[11]) can be set to 1 by the selected
hardware trigger source.
[7:6]
TRGCOND
External Trigger Condition
These two bits decide external pin STADC trigger event is level or edge. The signal must
be kept at stable state at least 8 PCLKs for level trigger and 4 PCLKs at high and low state
for edge trigger.
00 = Low level.
01 = High level.
10 = Falling edge.
11 = Rising edge.
[5:4]
TRGS
Hardware Trigger Source
00 = A/D conversion is started by external STADC pin.
11 = A/D conversion is started by PWM Center-aligned trigger.
Others = Reserved.
Software should disable TRGEN (ADCR[8]) and ADST (ADCR[11]) before change TRGS.