EasyManuals Logo

ST STM32F31xx User Manual

ST STM32F31xx
584 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #54 background imageLoading...
Page #54 background image
Analog-to-digital converter (ADC)
UM1581
54/584
DocID023800 Rev 1
1. ADC_DiscModeChannelCountConfig() to configure the number of discontinuous
channel to be converted.
2. ADC_DiscModeCmd() to enable the discontinuous mode.
To configure and enable/disable the Channel offset use the functions: (++)
ADC_SetChannelOffset1() (++) ADC_SetChannelOffset2() (++) ADC_SetChannelOffset3()
(++) ADC_SetChannelOffset4() (++) ADC_ChannelOffset1Cmd() (++)
ADC_ChannelOffset2Cmd() (++) ADC_ChannelOffset3Cmd() (++)
ADC_ChannelOffset4Cmd()
ï‚· ADC_RegularChannelConfig()
ï‚· ADC_RegularChannelSequencerLengthConfig()
ï‚· ADC_ExternalTriggerConfig()
ï‚· ADC_StartConversion()
ï‚· ADC_GetStartConversionStatus()
ï‚· ADC_StopConversion()
ï‚· ADC_DiscModeChannelCountConfig()
ï‚· ADC_DiscModeCmd()
ï‚· ADC_GetConversionValue()
ï‚· ADC_GetDualModeConversionValue()
ï‚· ADC_SetChannelOffset1()
ï‚· ADC_SetChannelOffset2()
ï‚· ADC_SetChannelOffset3()
ï‚· ADC_SetChannelOffset4()
ï‚· ADC_ChannelOffset1Cmd()
ï‚· ADC_ChannelOffset2Cmd()
ï‚· ADC_ChannelOffset3Cmd()
ï‚· ADC_ChannelOffset4Cmd()
3.2.6 Regular Channels DMA Configuration functions
This section provides functions allowing to configure the DMA for ADC regular channels.
Since converted regular channel values are stored into a unique data register, it is useful to
use DMA for conversion of more than one regular channel. This avoids the loss of the data
already stored in the ADC Data register.
1. ADC_DMACmd() function is used to enable the ADC DMA mode, after each
conversion of a regular channel, a DMA request is generated.
2. ADC_DMAConfig() function is used to select between the oneshot DMA mode or the
circular DMA mode
ï‚· ADC_DMACmd()
ï‚· ADC_DMAConfig()
3.2.7 Injected channels Configuration functions
This section provide functions allowing to configure the ADC Injected channels, it is
composed of 2 sub sections :
1. Configuration functions for Injected channels: This subsection provides functions
allowing to configure the ADC injected channels : (+) Configure the rank in the injected
group sequencer for each channel (+) Configure the sampling time for each channel
(+) Activate the Auto injected Mode (+) Activate the Discontinuous Mode (+)
External/software trigger source (+) External trigger edge (+) injected channels
sequencer.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32F31xx and is the answer not in the manual?

ST STM32F31xx Specifications

General IconGeneral
BrandST
ModelSTM32F31xx
CategoryMicrocontrollers
LanguageEnglish

Related product manuals