![Geehy SEMICONDUCTOR APM32F405 Series User Manual Download Page 617](http://html1.mh-extra.com/html/geehy-semiconductor/apm32f405-series/apm32f405-series_user-manual_573630617.webp)
www.geehy.com Page 616
Channel conversion sequence
Configuration of regular sequence registers:
Configure REGSEQC1~REGSEQC6 bits of the register
ADC_REGSEQ3 to set No. 1~6 conversion channels
Configure REGSEQC7~REGSEQC12 bits of the register
ADC_REGSEQ2 to set No. 7~12 conversion channels
Configure REGSEQC13~REGSEQC16 bits of the register
ADC_REGSEQ1 to set No. 13~16 conversion channels
Configure REGSEQLEN of the register ADC_REGSEQ1 to set the
number of channels for conversion
Configuration of injected sequence register:
Configure INJSEQC1~INJSEQC4 bit of the register ADC_INJSEQ to
set No. 1~4 conversion channels
Configure INJSEQLEN of the register ADC_INJSEQ to set the
number of channels for conversion
If the value of INJSEQLEN is less than 4, the conversion sequence
will be different and start from (4-INJSEQLEN).
Channel conversion mode
Scan Mode
This mode is applicable to one group of channels, which is equivalent to a
single conversion on each channel of one group of channels.
This mode is started by SCANEN bit of configuration register ADC_CTRL1, and
after startup, ADC scans all channels which are arranged according to the
sequence register ADC_REGSEQ or the ADC_INJSEQ, and after each channel
conversion is completed, it will be automatically converted to the next channel of
the group.
If the configuration CONTCEN bit is set to 1, the conversion will continue from
the first channel of the group when the last channel of the group completes
conversion.
If the configuration DMAEN bit is set to 1, the DMA controller will transmit the
converted data of regular channel to SRAM every time the channel conversion
is completed.