Download Print this page

ST STM32F301 6 Series Reference Manual page 201

Advanced arm-based 32-bit mcus

Advertisement

RM0366
ADCALDIF
ADC State
CALFACT_x[6:0]
Software procedure to re-inject a calibration factor into the ADC
1.
Ensure ADEN=1 and ADSTART=0 and JADSTART=0 (ADC enabled and no
conversion is ongoing).
2.
Write CALFACT_S and CALFACT_D with the new calibration factors.
3.
When a conversion is launched, the calibration factor will be injected into the analog
ADC only if the internal analog calibration factor differs from the one stored in bits
CALFACT_S for single-ended input channel or bits CALFACT_D for differential input
channel.
ADC state
Internal
calibration factor[6:0]
Start conversion
(hardware or sofware)
WRITE ADC_CALFACT
CALFACT_S[6:0]
Converting single-ended and differential analog inputs with a single ADC
If the ADC is supposed to convert both differential and single-ended inputs, two calibrations
must be performed, one with ADCALDIF=0 and one with ADCALDIF=1. The procedure is
the following:
0: Single-ended input
ADCAL
OFF
Startup
by S/W
by H/W
Figure 28. Updating the ADC calibration factor
Ready (not converting)
F1
by s/w
by h/w
Figure 27. ADC calibration
1: Differential input
t
CAB
Calibrate
0x00
Indicative timings
Converting channel
(Single ended)
Updating calibration
F2
F2
RM0366 Rev 5
Analog-to-digital converters (ADC)
Calibration factor
Ready Converting channel
(Single ended)
OFF
MSv30263V2
MSv30529V2
201/874
277

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