Hi

Stanley Lee schrieb:
> If my application only requires me to use one a/d channel, with the
> input of the signal being non-periodic (changes relatively slowly, i.e.
> change from 2.5 V to 3 V and stay there for at least a few seconds),
> would the acquisition time that I set in ADCON2 matter (I don't think so)?
The acq time depends not only on the frequency but also on your layout.
The higher the acq time is choosen the more time your give the internal
cpacitor to charge and thus to reflect the analog value. More important,
however, is to calculate the minimum acq time if you need a high
sampling frequency (see the datasheet for this).

> 
> Also, what would be the benefit of using an ISR for a/d sampling rather
> than polling for ADCON0bits.GO to clear?
That depends on your application, if you need a defined sampling
frequency (i.e. for a controller etc.) then i would suggest using an
isr. If not your good with the while(1) loop thing.


jan

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to