Adc Registers - STMicroelectronics STM32F405 Reference Manual

Advanced arm-based 32-bit mcus
Table of Contents

Advertisement

Analog-to-digital converter (ADC)
13.13

ADC registers

Refer to Section: List of abbreviations for registers for a list of abbreviations used in register
descriptions.
The peripheral registers must be written at word level (32 bits). Read accesses can be done
by bytes (8 bits), half-words (16 bits) or words (32 bits).
13.13.1
ADC status register (ADC_SR)
Address offset: 0x00
Reset value: 0x0000 0000
31
30
29
28
15
14
13
12
Bits 31:6 Reserved, must be kept at reset value.
Bit 5 OVR: Overrun
Bit 4 STRT: Regular channel start flag
Bit 3 JSTRT: Injected channel start flag
Bit 2 JEOC: Injected channel end of conversion
Bit 1 EOC: Regular channel end of conversion
Bit 0 AWD: Analog watchdog flag
418/1731
27
26
25
11
10
9
Reserved
This bit is set by hardware when data are lost (either in single mode or in dual/triple mode). It
is cleared by software. Overrun detection is enabled only when DMA = 1 or EOCS = 1.
0: No overrun occurred
1: Overrun has occurred
This bit is set by hardware when regular channel conversion starts. It is cleared by software.
0: No regular channel conversion started
1: Regular channel conversion has started
This bit is set by hardware when injected group conversion starts. It is cleared by software.
0: No injected group conversion started
1: Injected group conversion has started
This bit is set by hardware at the end of the conversion of all injected channels in the group.
It is cleared by software.
0: Conversion is not complete
1: Conversion complete
This bit is set by hardware at the end of the conversion of a regular group of channels. It is
cleared by software or by reading the ADC_DR register.
0: Conversion not complete (EOCS=0), or sequence of conversions not complete (EOCS=1)
1: Conversion complete (EOCS=0), or sequence of conversions complete (EOCS=1)
This bit is set by hardware when the converted voltage crosses the values programmed in
the ADC_LTR and ADC_HTR registers. It is cleared by software.
0: No analog watchdog event occurred
1: Analog watchdog event occurred
DocID018909 Rev 11
24
23
22
21
Reserved
8
7
6
5
OVR
rc_w0
20
19
18
17
4
3
2
STRT
JSTRT
JEOC
EOC
rc_w0
rc_w0
rc_w0
rc_w0
RM0090
16
1
0
AWD
rc_w0

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel

Table of Contents

Save PDF