EasyManua.ls Logo

ST STM32F31xx

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
Loading...
Analog-to-digital converter (ADC)
UM1581
56/584
DocID023800 Rev 1
a. Flags for Master (+) ADC_FLAG_MSTRDY: ADC master Ready (ADRDY) flag
(+) ADC_FLAG_MSTEOSMP: ADC master End of Sampling flag (+)
ADC_FLAG_MSTEOC: ADC master End of Regular Conversion flag (+)
ADC_FLAG_MSTEOS: ADC master End of Regular sequence of Conversions
flag (+) ADC_FLAG_MSTOVR: ADC master overrun flag (+)
ADC_FLAG_MSTJEOC: ADC master End of Injected Conversion flag (+)
ADC_FLAG_MSTJEOS: ADC master End of Injected sequence of Conversions
flag (+) ADC_FLAG_MSTAWD1: ADC master Analog watchdog 1 flag (+)
ADC_FLAG_MSTAWD2: ADC master Analog watchdog 2 flag (+)
ADC_FLAG_MSTAWD3: ADC master Analog watchdog 3 flag (+)
ADC_FLAG_MSTJQOVF: ADC master Injected Context Queue Overflow flag
b. Flags for Slave (+) ADC_FLAG_SLVRDY: ADC slave Ready (ADRDY) flag (+)
ADC_FLAG_SLVEOSMP: ADC slave End of Sampling flag (+)
ADC_FLAG_SLVEOC: ADC slave End of Regular Conversion flag (+)
ADC_FLAG_SLVEOS: ADC slave End of Regular sequence of Conversions flag
(+) ADC_FLAG_SLVOVR: ADC slave overrun flag (+) ADC_FLAG_SLVJEOC:
ADC slave End of Injected Conversion flag (+) ADC_FLAG_SLVJEOS: ADC
slave End of Injected sequence of Conversions flag (+) ADC_FLAG_SLVAWD1:
ADC slave Analog watchdog 1 flag (+) ADC_FLAG_SLVAWD2: ADC slave
Analog watchdog 2 flag (+) ADC_FLAG_SLVAWD3: ADC slave Analog watchdog
3 flag (+) ADC_FLAG_SLVJQOVF: ADC slave Injected Context Queue Overflow
flag The user should identify which mode will be used in his application to
manage the ADC controller events: Polling mode or Interrupt mode. In the Polling
Mode it is advised to use the following functions: - ADC_GetFlagStatus() : to
check if flags events occur. - ADC_ClearFlag() : to clear the flags events. In the
Interrupt Mode it is advised to use the following functions: - ADC_ITConfig() : to
enable or disable the interrupt source. - ADC_GetITStatus() : to check if Interrupt
occurs. - ADC_ClearITPendingBit() : to clear the Interrupt pending Bit
(corresponding Flag).
The ADC provide 11 Interrupts sources and 11 Flags which can be divided into 3 groups:
(#) Flags and Interrupts for ADC regular channels (##)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
a. 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 (#) 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.
a. 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 (#) General
Flags and Interrupts for the ADC
a. Flags
ADC_FLAG_AWD1: ADC Analog watchdog 1 flag

Table of Contents

Related product manuals