> -----Original Message-----
> From: .....piclist-bouncesKILLspam
@spam@mit.edu [piclist-bounces
KILLspammit.edu] On
Behalf
> Of Dwayne Reid
> Sent: 29 November 2007 23:46
> To: pic microcontroller discussion list
> Subject: [PIC] a/d sample acquisition during sleep
>
> Good day to all.
>
> I've got an interesting question that the datasheet hasn't been able
to
> answer.
>
> This project has a 16F676 that spends most of its time sleeping. All
> peripherals are turned OFF during sleep except for Timer1 (32KHz
> crystal). One of those turned-off peripherals is the a/d convertor.
>
> I wish to sample an analog voltage each time the Timer1 interrupt
> occurs (2 second period). The voltage I wish to sample is connected
> to RA1. ANSEL is configured to point to RA1 while the PIC is
sleeping.
{Quote hidden}>
> When a Timer1 interrupt occurs, the a/d is turned on, the analog
> signal is read, the a/d is turned off.
>
> Question: do I have to wait for the analog input acquisition time
> before starting the conversion? Remember: the correct input is
> already selected by ANSEL.
>
> The data sheet is unclear about this.
>
I'd say there is a reasonable chance that you wouldn't have to, but I
think this is really a case of "suck it and see". If you do need to
acquire after waking up and enabling the A/D, then you ought to be able
to see a noticeable change in the digitised value with and without any
acquisition time (especially if your source impedance is toward the
higher end of the allowed range).
Regards
Mike
=======================================================================
This e-mail is intended for the person it is addressed to only. The
information contained in it may be confidential and/or protected by
law. If you are not the intended recipient of this message, you must
not make any use of this information, or copy or show it to any
person. Please contact us immediately to tell us that you have
received this e-mail, and return the original to us. Any use,
forwarding, printing or copying of this message is strictly prohibited.
No part of this message can be considered a request for goods or
services.
=======================================================================