33.4.2.7 Conversion Timing

Some analog components in the ADC are disabled between conversions and require time to initialize before a conversion starts. Only the components used by the current ADC configuration are enabled. Because initialization occurs in parallel, the limiting factor is the module with the slowest initialization time. The ADC Busy (ADCBUSY) bit in the Status (STATUS) register can be used to check whether initialization is in progress.

When the On Demand bit in the Control A register (CTRLA.ONDEMAND) is written to ‘0’, the latency of the ADC peripheral is reduced. This keeps the configured modules continuously enabled, effectively eliminating all initialization time at the start of a conversion. However, initialization time is still required when enabling the ADC for the first time and when it is reconfigured to use an input or reference that requires initialization.

The ADC sampling period is configured using the Sample Length bit field in the Control E register (CTRLE.SAMPLEN) and lasts SAMPLEN + 1 CLK_ADC cycles.

The initialization time tINIT depends on the ADC input and reference configuration. When multiple analog resources require initialization, they initialize in parallel, and the longest applicable delay determines tINIT. If the required resources remain enabled, no additional initialization delay is needed before the next conversion.
Table 33-6. ADC Initialization Delay - Contributors to tINIT
ConfigurationTypical Initialization Delay
Required analog resources are already initialized0 µs
External/VDD reference or applicable divided-supply input2 µs
ADC core enable10 µs
Internal reference voltage change20 µs
Internal reference buffer enable40 µs
Temperature sensor enable40 µs

The data conversion duration depends on the mode and resolution and is expressed in n cycles of CLK_ADC.

With these parameters, the total conversion duration can be determined from the following table:
Table 33-7. Conversion Timing
ModeResolutionTrigger DetectionInitializationSamplingData Conversion n × CLK_ADC Result Update
Single-Ended83 × CLK_ADCn_APBtINIT(SAMPLEN + 1) × CLK_ADC83 × CLK_ADCn_APB
1010
1212
1313
Differential89
1011
1213
1313
Figure 33-3. Timing Diagram - Single Conversion
Figure 33-4. Timing Diagram - Series Accumulation
Figure 33-5. Timing Diagram - Burst Accumulation