DocID025202 Rev 7
292/1080
RM0365
Analog-to-digital converters (ADC)
392
15.3.3 Clocks
Dual clock domain architecture
The dual clock-domain architecture means that each ADC clock is independent from the
AHB bus clock.
The input clock of the two ADCs (master and slave) can be selected between two different
clock sources (see
a) The ADC clock can be a specific clock source, named “ADCxy_CK (xy=12 or 34)
which is independent and asynchronous with the AHB clock”.
It can be configured in the RCC to deliver up to 72 MHz (PLL output). Refer to
RCC Section for more information on generating ADC12_CK.
To select this scheme, bits CKMODE[1:0] of the ADCx_CCR register must be
reset.
b) The ADC clock can be derived from the AHB clock of the ADC bus interface,
divided by a programmable factor (1, 2 or 4). In this mode, a programmable divider
factor can be selected (/1, 2 or 4 according to bits CKMODE[1:0]).
To select this scheme, bits CKMODE[1:0] of the ADCx_CCR register must be
different from “00”.
Note:
Software can use option b) by writing CKMODE[1:0]=01 only if the AHB prescaler of the
RCC is set to 1 (the duty cycle of the AHB clock must be 50% in this configuration).
Option a) has the advantage of reaching the maximum ADC clock frequency whatever the
AHB clock scheme selected. The ADC clock can eventually be divided by the following ratio:
1, 2, 4, 6, 8, 12, 16, 32, 64, 128, 256; using the prescaler configured with bits
ADCxPRES[4:0] in register RCC_CFGR2 (Refer to
Section 9: Reset and clock control
).
Option b) has the advantage of bypassing the clock domain resynchronizations. This can be
useful when the ADC is triggered by a timer and if the application requires that the ADC is
precisely triggered without any uncertainty (otherwise, an uncertainty of the trigger instant is
added by the resynchronizations between the two clock domains).
Figure 52. ADC clock scheme
1. Refer to the RCC section to see how HCLK and ADC12_CK can be generated.
06Y9
5&&
5HVHWDQGFORFN
FRQWUROOHU
+&/.
$'&B&.
RU
RU
%LWV&.02'(>@
$'& $'&
%LWV&.02'(>@
RI$'&B&&5
RI$'&B&&5
2WKHUV
$+%
LQWHUIDFH
$QDORJ$'&
PDVWHU
$QDORJ$'&
VODYH