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.
| Configuration | Typical Initialization Delay |
|---|---|
| Required analog resources are already initialized | 0 µs |
| External/VDD reference or applicable divided-supply input | 2 µs |
| ADC core enable | 10 µs |
| Internal reference voltage change | 20 µs |
| Internal reference buffer enable | 40 µs |
| Temperature sensor enable | 40 µs |
The data conversion duration depends on the mode and resolution and is expressed in n cycles of CLK_ADC.
| Mode | Resolution | Trigger Detection | Initialization | Sampling | Data Conversion n × CLK_ADC | Result Update |
|---|---|---|---|---|---|---|
| Single-Ended | 8 | 3 × CLK_ADCn_APB | tINIT | (SAMPLEN + 1) × CLK_ADC | 8 | 3 × CLK_ADCn_APB |
| 10 | 10 | |||||
| 12 | 12 | |||||
| 13 | 13 | |||||
| Differential | 8 | 9 | ||||
| 10 | 11 | |||||
| 12 | 13 | |||||
| 13 | 13 |
