Continuing on the previous thread …
Looking at the timing diagrams in the Atmel SAM3X8e datasheet (Figures 40-2 and 40-3) together with the notes `Analog-to-Digital Converter in the SAM3S4′ for a simlar microntroller, it seems that part of my confusion is due to the way that the terms are described. So
- In one part of the datasheet the conversion time is given as , elsewhere it talks about a conversion time of . The explanation is that the total conversion time is and this is made up of to transfer the analog iinput from the sample and hold and to do the actual conversion and digitise the data.
- The TRANSFER field in the Mode Register does not control the time to transfer the analog input from the sample and hold to the digitiser, this is always . The TRANSFER field in the Mode Register controls the time from the start of the conversion (an ADC\_Start pulse) to the time when the input channel is changed. makes this time equal to the actual transfer time () and this is the recommended value. Other values can be used, but they affect other timings and are not recommended.
In Section 126.96.36.199 of the datasheet, titled “Track and Hold Time versus Source Output Impedance”, it says to set and whatever the tracking time, calculated from the source impedance, works out to be so these fields aren’t significant and are probably only there for backwards compatibility.
If the tracking time is less that the tracking of a selected channel can be carried out while the previous channel is being converted and the total time between ADC_Start pulses is . In this case we can calculate the maximum ADC clock frequency as a function of the source impedance. A plot of this is shown below
If the tracking time is greater than the time between ADC_Start pulses must be increased to allow for this.
In either case, to ensure correct tracking for the first channel to be converted the startup time must be greater than or equal to the tracking time.