213
/
838
Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
There is none
Any value
0
0
All injection channels
0
0
1
All regular channels
0
1
0
All injection and regular channels
0
1
1
A single injection channel
1
0
1
A single regulars of the channel
1
1
0
A single
injection or regular channels
1
1
1
9.3.9
Scanning mode
By configuring ADC_CTRL1.SCAMD to 1, the scan conversion mode can be turned on, and by configuring the four
registers ADC_RSEQ1, ADC_RSEQ2, ADC_RSEQ3, ADC_JSEQ, the conversion sequence can be selected, and
the ADC will scan and convert all the regular or Injected channels. After the conversion is started, the channels will
be converted one by one. If ADC_CTRL2.CTU is 1 at this time, the conversion will be restarted from the first channel
of the conversion sequence after the conversion of all regular channels is completed. Injected channel does not
support continuous mode. The DMA function can be turned on by setting ADC_CTRL2.ENDMA to 1, and the DMA
will transfer the data to the SRAM after the regular channel conversion is completed.
Note: In dual ADC mode, the DMA function on the regular channel of ADC2 needs to be completed by the DMA of
ADC1, and the DMA function on the regular channel of ADC4 needs to be completed by the DMA of ADC3.
9.3.10
Injection channel management
Automatic injection
If ADC_CTRL1.AUTOJC bit is set, then the Injected channels are automatically converted following the regular
channels mentioned by ADC_RSEQ and ADC_JSEQx. A single trigger can conver up to 16+ 4 channels. Setting
ADC_CTRL2.CTU the conversion sequence will be converted continuously.
When this function is turned on, the external trigger of the injection channel needs to be turned off.
This function cannot be used with the discontinuous mode at the same time.
When the ADC clock prescale factor is 2, there is a delay of two ADC clock intervals when the conversion sequence
changes from regular to injection or injection to regular. When the ADC clock prescale factor is 4 to 8, there is a
delay of one ADC clock intervals when the conversion sequence changes from regular to injection or injection to
regular.
Trigger injection
Set ADC_CTRL1.AUTOJC to 0 and ADC_CTRL1.SCAMD to 1 to enable the trigger injection function. In this
function, the regular channel of continuous conversion is triggered by setting ADC_CTRL2.ON or by external
trigger.When the regular channel is converted, if an external injection trigger is generated, the current conversion will
be suspended, and the injection sequence channel will start conversion. When the injection sequence channel
conversion is completed, the interrupted conversion of regular sequence channel will be resumed. If a regular event
is generated during the injection conversion, the regular sequence channel will start conversion after the injection
sequence channel conversion is completed.
When using this function, the time interval between the injection channel triggers needs to be greater than the time