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 #55 background imageLoading...
Page #55 background image
UM1581
Analog-to-digital converter (ADC)
DocID023800 Rev 1
55/584
2. Get the Specified Injected channel conversion data: This subsection provides an
important function in the ADC peripheral since it returns the converted data of the
specific injected channel.
This section provide functions allowing to configure the ADC Injected channels, it is
composed of 2 sub sections : (#) 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. (#) Get the Specified Injected channel conversion data:
This subsection provides an important function in the ADC peripheral since it returns
the converted data of the specific injected channel.
ï‚· ADC_StartInjectedConversion()
ï‚· ADC_StopInjectedConversion()
ï‚· ADC_GetStartInjectedConversionStatus()
ï‚· ADC_AutoInjectedConvCmd()
ï‚· ADC_InjectedDiscModeCmd()
ï‚· ADC_GetInjectedConversionValue()
3.2.8 Interrupts and flags management functions
This section provides functions allowing to configure the ADC Interrupts, get the status and
clear flags and Interrupts pending bits.
The ADC provide 11 Interrupts sources and 11 Flags which can be divided into 3 groups:
1. Flags and Interrupts for ADC regular channels
a. Flags (+) ADC_FLAG_RDY: ADC Ready flag (+) ADC_FLAG_EOSMP: ADC End
of Sampling flag (+) ADC_FLAG_EOC: ADC End of Regular Conversion flag. (+)
ADC_FLAG_EOS: ADC End of Regular sequence of Conversions flag (+)
ADC_FLAG_OVR: ADC overrun flag
b. Interrupts (+) ADC_IT_RDY: ADC Ready interrupt source (+) ADC_IT_EOSMP:
ADC End of Sampling interrupt source (+) ADC_IT_EOC: ADC End of Regular
Conversion interrupt source (+) ADC_IT_EOS: ADC End of Regular sequence of
Conversions interrupt (+) ADC_IT_OVR: ADC overrun interrupt source
2. Flags and Interrupts for ADC regular channels
a. Flags (+) ADC_FLAG_JEOC: ADC Ready flag (+) ADC_FLAG_JEOS: ADC End
of Sampling flag (+) ADC_FLAG_JQOVF: ADC End of Regular Conversion flag.
b. Interrupts (+) ADC_IT_JEOC: ADC End of Injected Conversion interrupt source
(+) ADC_IT_JEOS: ADC End of Injected sequence of Conversions interrupt
source (+) ADC_IT_JQOVF: ADC Injected Context Queue Overflow interrupt
source
3. General Flags and Interrupts for the ADC
a. Flags (+) ADC_FLAG_AWD1: ADC Analog watchdog 1 flag (+)
ADC_FLAG_AWD2: ADC Analog watchdog 2 flag (+) ADC_FLAG_AWD3: ADC
Analog watchdog 3 flag
b. Flags (+) ADC_IT_AWD1: ADC Analog watchdog 1 interrupt source (+)
ADC_IT_AWD2: ADC Analog watchdog 2 interrupt source (+) ADC_IT_AWD3:
ADC Analog watchdog 3 interrupt source
4. Flags for ADC dual mode

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