RM0402
13.12
ADC registers
Refer to
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.12.1
ADC status register (ADC_SR)
Address offset: 0x00
Reset value: 0x0000 0000
31
30
29
28
Res.
Res.
Res.
Res.
15
14
13
12
Res.
Res.
Res.
Res.
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
Section 1.2 on page 45
27
26
25
Res.
Res.
Res.
11
10
9
Res.
Res.
Res.
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
for a list of abbreviations used in register descriptions.
24
23
22
Res.
Res.
Res.
Res.
8
7
6
Res.
Res.
Res.
OVR
rc_w0
RM0402 Rev 6
Analog-to-digital converter (ADC)
21
20
19
18
Res.
Res.
Res.
5
4
3
2
STRT
JSTRT
JEOC
rc_w0
rc_w0
rc_w0
17
16
Res.
Res.
1
0
EOC
AWD
rc_w0
rc_w0
333/1163
347
Need help?
Do you have a question about the STM32F412 and is the answer not in the manual?
Questions and answers