RM0453
18.3.5
ADC clock (CKMODE, PRESC[3:0])
The ADC has a dual clock-domain architecture, so that the ADC can be fed with a clock
(ADC asynchronous clock) independent from the APB clock (PCLK).
RCC
(Reset & Clock Controller)
1. Refer to Section Reset and clock control (RCC) for how the PCLK clock and ADC asynchronous clock are
enabled.
The input clock of the analog ADC can be selected between two different clock sources (see
Figure 62: ADC clock scheme
are enabled):
a)
b)
In option a), the generated ADC clock can eventually be divided by a prescaler (1, 2, 4, 6, 8,
10, 12, 16, 32, 64, 128, 256) when programming the bits PRESC[3:0] in the ADC_CCR
register).
Option a) has the advantage of reaching the maximum ADC clock frequency whatever the
APB clock scheme selected.
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 62. ADC clock scheme
PCLK
ADC
asynchronous
clock
to see how the PCLK clock and the ADC asynchronous clock
The ADC clock can be a specific clock source, named "ADC asynchronous clock"
which is independent and asynchronous with the APB clock.
Refer to RCC Section for more information on generating this clock source.
To select this scheme, bits CKMODE[1:0] of the ADC_CFGR2 register must be
reset.
The ADC clock can be derived from the APB clock of the ADC bus interface,
divided by a programmable factor (1, 2 or 4) according to bits CKMODE[1:0].
To select this scheme, bits CKMODE[1:0] of the ADC_CFGR2 register must be
different from "00".
ADITF
APB interface
Bits CKMODE[1:0]
of ADC_CFGR2
/1 or /2 or /4
/1,2,4,6,8,10,12
16,32,64,128,256
Bits PRESC[3:0]
of ADC_CCR
RM0453 Rev 5
Analog-to-digital converter (ADC)
Others
Analog ADC_CK
00
Bits CKMODE[1:0]
of ADC_CFGR2
Analog
ADC
MSv31926V2
539/1450
591
Need help?
Do you have a question about the STM32WL5 Series and is the answer not in the manual?
Questions and answers