English
Language : 

PIC16F688 Datasheet, PDF (71/174 Pages) Microchip Technology – 14-Pin Flash-Based, 8-Bit CMOS Microcontrollers with nanoWatt Technology
PIC16F688
8.3 A/D Operation During Sleep
The A/D converter module can operate during Sleep.
This requires the A/D clock source to be set to the
internal oscillator. When the RC clock source is
selected, the A/D waits one instruction before starting
the conversion. This allows the SLEEP instruction to be
executed, thus eliminating much of the switching noise
from the conversion. When the conversion is complete,
the GO/DONE bit is cleared and the result is loaded
into the ADRESH:ADRESL registers. If the A/D
FIGURE 8-5:
A/D TRANSFER FUNCTION
interrupt is enabled, the device awakens from Sleep. If
the GIE bit (INTCON<7>) is set, the program counter is
set to the interrupt vector (0004h), if GIE is clear, the
next instruction is executed. If the A/D interrupt is not
enabled, the A/D module is turned off, although the
ADON bit remains set.
When the A/D clock source is something other than
RC, a SLEEP instruction causes the present conversion
to be aborted, and the A/D module is turned off. The
ADON bit remains set.
3FFh
3FEh
3FDh
3FCh
3FBh
Full-Scale Range
1 LSB Ideal
1/2 LSB Ideal
004h
003h
002h
001h
000h
Zero-Scale
1/2 LSB Ideal
Zero-Scale
Transition
Full-Scale
Transition
Center of
Full-Scale Code
Analog Input
 2004 Microchip Technology Inc.
Preliminary
DS41203B-page 69