GD32A50x User Manual
274
Figure 14-7. 12-bit Data alignment
0
0
0
0
D11
D10
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
Routine sequence data
0
0
0
0
D11
D10
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
Routine sequence data
DAL=0
DAL=1
6-bit resolution data alignment is different from 12-bit/10-bit/8-bit resolution data alignment,
shown as
Figure 14-8. 6-bit Data alignment
Figure 14-8. 6-bit Data alignment
0
0
0
0
0
0
0
0
0
0
D5
D4
D3
D2
D1
D0
Routine sequence data
D1
D0
0
0
0
0
0
0
0
0
0
0
D5
D4
D2
Routine sequence data
DAL=0
DAL=1
D3
14.4.8.
Sample time configuration
The number of CK_ADC cycles which is used to sample the input voltage can be specified
by the SPTn[2:0] bits in the ADC_SAMPT0 and ADC_SAMPT1 registers. A different sample
time can be specified for each channel. For 12-bits resolution, the total conversion time is
“sampling time + 12.5” CK_ADC cycles.
Example:
CK_ADC = 15MHz and sample time is 2.5 cycles, the total conversion time is “2.5+12.5”
CK_ADC cycles, that means 1us.
14.4.9.
External trigger configuration
The conversion of routine sequence can be triggered by rising edge of TRIGSEL or software.
The trigger source of routine sequence is controlled by the ETSRC bit in the ADC_CTL1
register.
Table 14-3. External trigger source for ADC0 and ADC1
ETSRC
Trigger Source
Trigger Type
0
TRIGSEL
Signal from TRIGSEL
1
SWICST
Software trigger
14.4.10.
DMA request
The DMA request, which is enabled by the DMA bit of ADC_CTL1 register, is used to transfer