1.1.4 ADC Conversion Clock

The ADC conversion clock is used to generate conversion timing. The conversion clock source comes from either the system clock source (FOSC) or the dedicated ADCRC clock source. The ADC Clock Selection (CS) bit of the ADC Control Register 0 (ADCON0) determines which clock source is used by the module.

When the FOSC is selected as the conversion clock source, the conversion clock frequency is determined by the ADC Conversion Clock Select (CS) bits of the ADC Clock Selection (ADCLK) register. The ADCLK register acts as a prescaler for the FOSC, dividing the clock to a frequency that meets the ADC clock period (TAD) specification. A TAD cycle is defined as the time to complete a single bit conversion. Table 1-1 illustrates the possible TAD periods based on the ADCLK configurations and system clock frequencies.

Table 1-1. ADC Clock Period (TAD) When FOSC Is The Clock Source
ADCLK CS<5:0>Device Frequency (FOSC)
64 MHz32 MHz20 MHz16 MHz8 MHz4 MHz1 MHz
TADTADTADTADTADTADTAD
000000 (FOSC/2)31.25 ns62.5 ns100 ns125 ns250 ns500 ns2 us
000001 (FOSC/4)62.5 ns125 ns200 ns250 ns500 ns1 us4 us
000010 (FOSC/6)93.75 ns187.5 ns300 ns375 ns750 ns1.5 us6 us
000011 (FOSC/8)125 ns250 ns400 ns500 ns1 us2 us8 us
························
000111 (FOSC/16)250 ns500 ns800 ns1 us2 us4 us16 us
························
001111 (FOSC/32)500 ns1 us1.6 us2 us4 us8 us32 us
························
011111 (FOSC/64)1 us2 us3.2 us4 us8 us16 us64 us
························
111111 (FOSC/128)2 us4 us6.4 us8 us16 us32 us128 us
Note: Shaded cells violate TAD requirements.

When the dedicated ADCRC clock is selected as the ADC conversion clock source, the conversion clock operates at a nominal 600 kHz clock frequency. The ADCRC can be used in applications that do not require high speed conversions. The ADCRC allows the ADC to operate in Sleep mode, which is great for low-power applications. The ADCRC produces a range of TAD times which vary from 1.0 to 3.0 us.

To ensure correct conversion results, the appropriate TAD requirements must be met. Typically, one TAD is required for each bit conversion, with an additional two TAD cycles required to cover the time elapsed from the disconnection of the sampling capacitor to when the conversion actually begins (see figure below).

It is important to note that when using FOSC as the clock source, any changes in the FOSC frequency will also change the ADC clock frequency, which may cause erroneous conversion results. The FOSC allows for faster TAD cycles, which result in faster conversion times, but cannot operate in Sleep mode.

Figure 1-2. Analog-to-Digital Conversion Cycles (12-Bit ADC)