Datasheet

PIC16F526
DS41326E-page 60 2010 Microchip Technology Inc.
9.1.5 SLEEP
This ADC does not have a dedicated ADC clock, and
therefore, no conversion in Sleep is possible. If a
conversion is underway and a Sleep command is
executed, the GO/DONE
and ADON bit will be cleared.
This will stop any conversion in process and power-
down the ADC module to conserve power. Due to the
nature of the conversion process, the ADRES may con-
tain a partial conversion. At least 1 bit must have been
converted prior to Sleep to have partial conversion data
in ADRES. The ADCS and CHS bits are reset to their
default condition; ANS<1:0> = 11 and CHS<1:0> = 11.
For accurate conversions, T
AD must meet the
following:
•500ns < T
AD < 50 s
•TAD = 1/(FOSC/divisor)
Shaded areas indicate T
AD out of range for accurate
conversions. If analog input is desired at these
frequencies, use INTOSC/8 for the ADC clock source.
TABLE 9-2: TAD FOR ADCS SETTINGS WITH VARIOUS OSCILLATORS
TABLE 9-3: EFFECTS OF SLEEP ON ADCON0
Source
ADCS
<1:0>
Divisor
20
MHz
16
MHz
8MHz 4MHz 1MHz
500
kHz
350
kHz
200
kHz
100
kHz
32 kHz
INTOSC 11 4
—.5s1s
FOSC 10 4 .2 s .25 s.5s1s4s8s11s20s40s 125 s
FOSC 01 8
.4 s.5s1s2s8s16s23s40s 80 s 250 s
FOSC 00 16 .8 s1s2s4s16s32s46s 80 s 160 s 500 s
ANS1 ANS0 ADCS1 ADCS0 CHS1 CHS0 GO/DONE ADON
Entering
Sleep
Unchanged Unchanged 111100
Wake or
Reset
11111100