GD32F403xx User Manual
198
Figure 12-7. 12-bit Data storage mode
0
0
0
0
D11
D10
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
Routine channel data
0
0
0
0
D11
D10
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
DAL=0
DAL=1
Routine channel data
6-bit resolution data alignment is different from 12-bit/10-bit/8-bit resolution data alignment,
shown as
Figure 12-8. 6-bit Data storage mode
.
Figure 12-8. 6-bit Data storage mode
0
0
0
0
0
0
0
0
0
0
D5
D4
D3
D2
D1
D0
D1
D0
0
0
0
0
0
0
0
0
0
0
D5
D4
D2
DAL=0
DAL=1
D3
Routine channel data
Routine channel data
12.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 sampling and
conversion time is “sampling time + 12.5” CK_ADC cycles.
Example:
CK_ADC = 30MHz and sample time is 1.5 cycles, the total conversion time is “1.5+12.5”
CK_ADC cycles, that means 0.467us.
12.4.9.
External trigger configuration
The conversion of routine sequence can be triggered by rising edge of external trigger inputs.
The external trigger source of routine sequence is controlled by the ETSRC[2:0] bits in the
ADC_CTL1 register.
Table 12-3. External trigger source for ADC0 and ADC1
ETSRC[2:0]
Trigger Source
Trigger Type
000
TIMER0_CH0
Hardware trigger
001
TIMER0_CH1
010
TIMER0_CH2
011
reserved