33.3.3.6 Conversion Timing

Some of the analog modules in the ADC are disabled between conversions and require time to initialize before conversion starts. Only the modules used by the current ADC configuration are enabled, and as the initializations run in parallel, the limiting factor is the module with the slowest initialization time. The following table shows the different initialization times needed by the analog modules.

Table 33-5. ADC Initialization Timing
Analog ModuleInitialization Time (µs)
ADC10(1)
PGA20
Settling of internal references60(2)
Internal Tempsense input35
Internal DAC input35
Note:
  1. If CLK_PER < 2 MHz, the ADC initialization time is 20 CLK_PER cycles.
  2. If the LOWLAT bit is '1' then the settling time is reduced to 2 µs when switching between internal references.

Example: Selecting Tempsense as input and using VDD as the reference will give a 35 µs initialization time. Using the Tempsense with the 1.024V internal reference will result in a 60 µs initialization time.

The ADC can be put in Low-Latency mode by writing a ‘1’ to the LOWLAT bit in the Control A (ADCn.CTRLA) register, which will keep the configured modules continuously enabled, effectively removing all initialization time at the start of a conversion. The initialization time is still needed when enabling the ADC for the first time and reconfiguring the ADC to use an input or reference that requires initialization, as shown in the table above. The ADC Busy (ADCBUSY) bit in the Status (ADCn.STATUS) register can be used to check if initialization is in progress.

The sampling interval of the input to the ADC without PGA is configured through the Sample Duration (SAMPDUR) bit field in the Control E (ADCn.CTRLE) register as (SAMPDUR + ½) CLK_ADC cycles. The input signal characteristics affect how long the sampling period has to be.

When using the internal reference without PGA, an autozero of the reference buffer runs at the beginning of the sampling, requiring the SAMPDUR to be set to a value ≥ 4 µs * fCLK_ADC.

When the PGA is used, it samples the input continuously except that it will be in the Hold state while the ADC samples the PGA output. This ADC PGA Sample Duration (ADCPGASAMPDUR) depends on the PGA Bias Select (PGABIASSEL) bit field in the PGA Control (ADCn.PGACTRL) register, as seen in the table below. SAMPDUR will still configure the minimum sampling period of the input to the PGA as (SAMPDUR + 1) CLK_ADC cycles. In Burst mode, SAMPDUR must be ≥ 12, limited by the length of the Conversion state.

Table 33-6.  ADCPGASAMDPUR
PGABIASSELADCPGASAMDPUR (µs)
100PCT3[4(1)]
75PCT5
50PCT6
25PCT12
Note:
  1. If using internal reference, the minimum PGA sample duration is 4 µs.

The Series and Burst Accumulation modes can be used for oversampling to achieve up to five bits higher resolution, given suitable input signal and sampling frequency. Increasing the resolution by n bits can be achieved by accumulating 4n samples and dividing the accumulated result by 2n. The Sample Accumulation Number (SAMPNUM) bit field in the Control F (ADCn.CTRLF) register can be configured for up to 45 = 1024 samples, resulting in up to 17-bit resolution.

The two tables below show the calculated conversion rates (fconv) for a subset of the possible combinations of fCLK_ADC and sample durations. For more details, see the relevant timing diagrams on the following pages.

Table 33-7. Example Conversion Rates (fconv) for fCLK_ADC = 5 MHz and PGABIASSEL = 100PCT
SAMPDURPGAfconv(1) Single 8-bit [sps]fconv(1) Single 12-bit [sps]fconv Burst Accumulation [sps]
20OFF161290142857147059
64OFF666676329164103
128OFF359713496535211
255OFF187971851918587
15ON120482109890156250
20ON10752799010135135
64ON552495291061728
255ON177621751318382
Table 33-8. Example Conversion Rates (fconv) for fCLK_ADC = 312.5 kHz and PGABIASSEL = 25PCT
SAMPDURPGAfconv(1) Single 8-bit [sps]fconv(1) Single 12-bit [sps]fconv Burst Accumulation [sps]
2OFF240381838219531
11OFF142051201912500
64OFF416739564006
255OFF117511571162
2ON1811614706N/A
11ON119051033118657
64ON394337544480
255ON115611391198
Note:
  1. Conversion rates with the Free-Running (FREERUN) bit set to ‘1’ in the Control F (ADCn.CTRLF) register; a new conversion will start immediately after the results are available in the ADC.