
AT32F413
Series Reference Manual
2022.06.27
Page 273
Rev 2.00
Table 19-1
Trigger sources for ADC1 and ADC2
OCTESEL
Source
PCTESEL
Source
0000
TMR1_CH1 event
0000
TMR1_TRGOUT event
0001
TMR1_CH2 event
0001
TMR1_CH4 event
0010
TMR1_CH3 event
0010
TMR2_TRGOUT event
0011
TMR2_CH2 event
0011
TMR2_CH1 event
0100
TMR3_TRGOUT event
0100
TMR3_CH4 event
0101
TMR4_CH4 event
0101
TMR4_TRGOUT event
0110
ADCx_ETO_MU
X=0
EXINT line11 external pin
0110
ADCx_
ETP_MUX=0
EXINT line15 external pin
ADCx_ETO_MU
X=1
TMR8_TRGOUT event
ADCx_
ETP_MUX=1
TMR8_CH4 event
0111
OCSWTRG bit
0111
PCSWTRG bit
1000
Reserved
1000
Reserved
1001
Reserved
1001
Reserved
1010
Reserved
1010
Reserved
1011
Reserved
1011
Reserved
1100
Reserved
1100
Reserved
1101
TMR1_TRGOUT event
1101
TMR1_CH1 event
1110
TMR8_CH1 event
1110
TMR8_CH1 event
1111
TMR8_CH2 event
1111
TMR8_TRGOUT event
19.4.2.3 Sampling and conversion sequence
The sampling period can be configured by setting the CSPTx bit in the ADC_SPT1 and ADC_SPT2
registers. A single conversion time is calculated with the following formula:
A single one conversion tiem (ADCCLK period) = sampling time + 12.5
Example:
If the CSPTx selects 1.5 period, one conversion requires 1.5+12.5=14 ADCCLK periods
If the CSPTx selects 7.5 period, one conversion requires 7.5+12.5=20 ADCCLK periods.
19.4.3 Conversion sequence management
Only one channel is converted at each trigger event by default, that is, OSN1-defined channel or PSN4-
defined channel.
The detailed conversion sequence modes are described in the following sections. With this, the channels
can be converted in a specific order.
19.4.3.1 Sequence mode
The sequence mode is enabled by setting the SQEN bit in the ADC_CTRL1 register. The ADC_OSQx
registers are used to configure the sequence and total number of the ordinary channels while the
ADC_PSQ register is used to define the sequence and total number of the preempted channels. If the
sequence mode is enabled, a single trigger event enables the conversion of a group of channels in order.
The ordinary channels start converting from the QSN1 while the preempted channels starts from the
PSNx, where x=4-PCLEN.