Download Print this page

ST STM32F301 6 Series Reference Manual page 208

Advanced arm-based 32-bit mcus

Advertisement

Analog-to-digital converters (ADC)
ADC state
Analog channel
Internal S/H
ADSTART
EOSMP
ADC_DR
1. t
depends on SMP[2:0]
SMPL
2. t
depends on RES[2:0]
SAR
12.3.17
Stopping an ongoing conversion (ADSTP, JADSTP)
The software can decide to stop regular conversions ongoing by setting ADSTP=1 and
injected conversions ongoing by setting JADSTP=1.
Stopping conversions will reset the ongoing ADC operation. Then the ADC can be
reconfigured (ex: changing the channel selection or the trigger) ready for a new operation.
Note that it is possible to stop injected conversions while regular conversions are still
operating and vice-versa. This allows, for instance, re-configuration of the injected
conversion sequence and triggers while regular conversions are still operating (and vice-
versa).
When the ADSTP bit is set by software, any ongoing regular conversion is aborted with
partial result discarded (ADCx_DR register is not updated with the current conversion).
When the JADSTP bit is set by software, any ongoing injected conversion is aborted with
partial result discarded (ADCx_JDRy register is not updated with the current conversion).
The scan sequence is also aborted and reset (meaning that relaunching the ADC would re-
start a new sequence).
Once this procedure is complete, bits ADSTP/ADSTART (in case of regular conversion), or
JADSTP/JADSTART (in case of injected conversion) are cleared by hardware and the
software must wait until ADSTART = 0 (or JADSTART = 0) before starting a new conversion.
Note:
In auto-injection mode (JAUTO=1), setting ADSTP bit aborts both regular and injected
conversions (JADSTP must not be used).
208/874
Figure 31. Analog-to-digital conversion time
Sampling Ch(N)
RDY
Ch(N)
Sample AIN(N)
t
SMPL
Set by
SW
EOC
Converting Ch(N)
Hold AIN(N)
(1)
Cleared
Set by
by SW
HW
Data N-1
Indicative timings
RM0366 Rev 5
Sampling Ch(N+1)
Ch(N+1)
Sample AIN(N+1)
(2)
t
SAR
Set by
HW
Data N
RM0366
Cleared by
HW/SW
MSv30532V2

Advertisement

loading
Need help?

Need help?

Do you have a question about the STM32F301 6 Series and is the answer not in the manual?

This manual is also suitable for:

Stm32f301 8 seriesStm32f318 8 series