Nations Technologies Inc.
Tel
:
+86-755-86309900
:
info@nationstech.com
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
368
/
631
Table 17-3 Right-align data
The Injection sequence
(12bit resolution)
SYM SYM SYM SYM
D11
D10
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
The regular sequence
(12bit resolution)
0
0
0
0
D11
D10
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
Table 17-4 Left-aligne data
Injection sequence
(12bit resolution)
SYM
D11
D10
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
0
0
0
The regular sequence
(12bit resolution)
D11
D10
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
0
0
0
0
Note: When the conversion digits are 10, 8, and 6, refer to the alignment with 12 conversion digits
Programmable channel sampling time
Specify the number of sampling cycles of ADC in ADC_SAMPTx.SAMPx[2:0], and then the ADC samples the
input voltage in the specified sampling cycle. For different channels, you can select different sampling time. The
total conversion time is calculated as follows:
T
CONV
= Sampling time + 12.5 cycles
Example:
ADCCLK=72MHz, the sampling time is 1. 5 cycles and resolution is 12bit, the total conversion time is "1.5 + 12.5"
ADCCLK cycles, that is:
T
CONV
= 1. 5 + 12. 5 = 14 cycle = 0.1944μs
Externally triggered conversion
For the regular sequence , software sets the ADC_CTRL2.EXTRTRIG bit to 1, then the regular channel can use the
rising edge of the external event to trigger the start conversion, and then the software sets the
ADC_CTRL2.EXTRSEL[2:0] bits to select the external trigger source of the regular sequence. The external trigger
source selection is shown in the table below. If you select EXTI line 0~15 or TIM8_TRGO as the external trigger
source, you can set the AFIO_RMP_CFG.ADC_ETRR and AFIO_RMP_CFG.EXTI_ETRR[3:0] bits to implement;
if you select SWSTRRCH as the external trigger source, you can start the regular channel conversion by setting