ADCIN speed?


Closed Thread
Results 1 to 4 of 4

Thread: ADCIN speed?

  1. #1
    achilles03's Avatar
    achilles03 Guest

    Default ADCIN speed?

    I'm debating on a method to sample an AC voltage between 100 to 400 Hz. I can either rectify it, smooth it, and read it through the ADC (from which I can only get voltage characteristics, which is ok but not desirable). Or I can take several samples in order to determine the frequency as well as the voltage characteristics.

    To do this second method, I would need a very fast ADCIN sample rate. What sort of sample rate could I get using ADCIN with a 20Mhz xtal?

    Thanks in advance for any advice offered!
    Dave

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    It's in the ADC section of the DATASHEET for your chosen PIC.

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    If you have a need for speed... forget ADCIN. Better if you set/read internal register directly.

    Will be much faster and produce a tighter code.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  4. #4
    Join Date
    Jan 2005
    Posts
    72


    Did you find this post helpful? Yes | No

    Default need for speed

    i'm sure there is anywhere an example of a fast A/D conversion, but i can't find it... could anyone guide me please? thanks a lot

    when i set ADC_SAMPLEUS to 50 (clock = 3, bits = 8), the statement ADCIN 0, an1 needs 136us. clock to 24 (minimum at 4mhz) needs 104us. i'm work on a 12F675

Similar Threads

  1. USB Speed
    By Rony in forum General
    Replies: 0
    Last Post: - 21st August 2008, 22:15
  2. Closed loop speed controller
    By Ryan7777 in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 26th January 2008, 14:15
  3. NEWB Help HPWM coding
    By Seafurymike in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 1st January 2008, 21:52
  4. Replies: 14
    Last Post: - 26th September 2007, 05:41
  5. Please explain about this program
    By wafagenius in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 10th October 2006, 01:25

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts