Acquisition time in DT_Analog when oversampling?


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Jan 2010
    Posts
    19

    Default Acquisition time in DT_Analog when oversampling?

    I am using the 18F2420 and a variation of the DT_Analog routines where I am writing the registers directly to perform oversampled A/D on multiple channels in succession.

    From the datasheet, when changing channels you must program ADCON2 with an automatic acquisition delay or set it to no delay and handle the delay yourself. When oversamplling the same channel, what happens at the end of a conversion when the capacitor disconnects? Since I am not changing channels do I immediately set the GO/DONE bit and let another conversion start?

  2. #2
    Join Date
    Oct 2005
    Location
    Pinckney, Michigan
    Posts
    91


    Did you find this post helpful? Yes | No

    Default

    What are "DT_Analog routines"?

  3. #3
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,604


    Did you find this post helpful? Yes | No

    Default

    It's a routine, written by Darrel Taylor, that can be used to increase the effective resolution of the ADC by oversamplig. You can find details here.

  4. #4
    Join Date
    Dec 2010
    Posts
    409


    Did you find this post helpful? Yes | No

    Default Re: Acquisition time in DT_Analog when oversampling?

    Quote Originally Posted by HenrikOlsson View Post
    It's a routine, written by Darrel Taylor, that can be used to increase the effective resolution of the ADC by oversamplig. You can find details here.
    post is now here item 42.

  5. #5
    Join Date
    Jan 2010
    Posts
    19


    Did you find this post helpful? Yes | No

    Default

    I made a mistake in my description above. From the datasheet:

    "In either case, when the conversion is completed, the GO/DONE bit is cleared, the ADIF flag is set and the A/D begins sampling the currently selected channel again. If an acquisition time is programmed, there is nothing to indicate if the acquisition time has ended or if the conversion has begun."

    It appearts that I should just stay in a loop with an acquisition delay of 2-3 us each time. The reason I ask is that everything appears to work either way, with or without delaying each sample.

Similar Threads

  1. I don't understand this code!
    By Russ Kincaid in forum mel PIC BASIC Pro
    Replies: 46
    Last Post: - 13th February 2008, 02:55
  2. Measuring time
    By AugustoPedrone in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 30th July 2007, 23:46
  3. Serout2/serin2 Pbp Problem
    By SOMRU in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 11th December 2006, 19:55
  4. Alarm Time
    By Santana in forum Code Examples
    Replies: 1
    Last Post: - 8th December 2006, 13:58
  5. Timer in real time
    By martarse in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 29th July 2005, 14:24

Members who have read this thread : 1

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