Hi,
The total conversion time can be calculated as follows:
Total Time = conversion time + sample time + discharging time
Conversion time:
12bit resolution: 16 ATDCLK cycles
10bit resolution: 15 ATDCLK cycles
8bit resolution: 13 ATDCLK cycles
Sample time: can be set in range 4 – 24 ATDCLK cycles
Discharging time:
If bit SMP_DIS in ATDCLT1 register is set then it takes 2 ATDCLK cycles.
If SMP_DIS is 0 then it takes 0 ATDCLK cycles.
So, min/max times in case of 12bit resolution is:
Minimum time = 16 + 4 + 0 = 20 ATDCLK cycles
Maximum time is: Time = 16 + 24 + 2 = 42 ATDCLK cycles
ATDCLK can be set in range 0.25 – 8.3MHz.
Depending on the MCU bus clock and equation to calculate the ATD clock which is:
fATDCLK = fBUS / 2×(PRS + 1)
you can easily calculate ATDCLK cycles in microseconds.
Regards,
iggi