GD32F10x User Manual
218
Figure 11-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
11.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-bit resolution, the total sampling and
conversion time is “sampling time + 12.5” CK_ADC cycles.
Example:
CK_ADC = 14MHz and sample time is 1.5 cycles, the total conversion time is “1.5+12.5”
CK_ADC cycles, that means 1us.
11.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 11-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
TIMER1_CH1
100
TIMER2_TRGO
101
TIMER3_CH3
110
EXTI11/
TIMER7_TRGO
111
SWRCST
Software trigger
Table 11-4. External trigger source for ADC2
ETSRC[2:0]
Trigger Source
Trigger Type
000
TIMER2_CH0
Hardware rigger
001
TIMER1_CH2
010
TIMER0_CH2
011
TIMER7_CH0
100
TIMER7_TRGO
Summary of Contents for GD32F10 Series
Page 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Page 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Page 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Page 427: ...GD32F10x User Manual 427 value ...
Page 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...