Analog-to-digital converters (ADC) RM0351
514/1830 DocID024597 Rev 5
CALFACT_S for single-ended input channel or bits CALFACT_D for differential input
channel.
Figure 72. Updating the ADC calibration factor
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:
1. Disable the ADC.
2. Calibrate the ADC in single-ended input mode (with ADCALDIF=0). This updates the
register CALFACT_S[6:0].
3. Calibrate the ADC in differential input modes (with ADCALDIF=1). This updates the
register CALFACT_D[6:0].
4. Enable the ADC, configure the channels and launch the conversions. Each time there
is a switch from a single-ended to a differential inputs channel (and vice-versa), the
calibration will automatically be injected into the analog ADC.
:5,7($'&B&$/)$&7
$'&VWDWH
&$/)$&7B6>@
)
)
,QWHUQDO
FDOLEUDWLRQIDFWRU>@
6WDUWFRQYHUVLRQ
KDUGZDUHRUVRIZDUH
)
5HDG\QRWFRQYHUWLQJ
&RQYHUWLQJFKDQQHO
5HDG\
&RQYHUWLQJFKDQQHO
6LQJOHHQGHG
6LQJOHHQGHG
06Y9
8SGDWLQJFDOLEUDWLRQ
E\VZ E\KZ