Math operations execution time


Closed Thread
Results 1 to 20 of 20

Hybrid View

  1. #1
    Join Date
    Aug 2008
    Location
    Portugal
    Posts
    240


    Did you find this post helpful? Yes | No

    Default Re: Math operations execution time

    Hi;

    Following what Dave has said, take a look at this link, by Darrel Taylor;
    http://www.darreltaylor.com/DT_Analog/

    By the way rasciodc, i'm Portuguese too, i'm from Maia.
    Thanks and Regards;
    Gadelhas

  2. #2
    Join Date
    Apr 2007
    Location
    Pennsylvania, USA
    Posts
    158


    Did you find this post helpful? Yes | No

    Default Re: Math operations execution time

    Thank you Dave, and Gadelhas! I am excited to try this!
    Shawn

  3. #3
    Join Date
    Jan 2012
    Posts
    8


    Did you find this post helpful? Yes | No

    Default Re: Math operations execution time

    Quote Originally Posted by gadelhas View Post
    Hi;

    Following what Dave has said, take a look at this link, by Darrel Taylor;
    http://www.darreltaylor.com/DT_Analog/

    By the way rasciodc, i'm Portuguese too, i'm from Maia.
    Thanks, gadelhas, for the link! very useful!! mainly for beginners like me!
    And, actually I´m Brazilian! living in São Paulo at the time....

    Just accumulate 64, 10 bit readings in a row into the same word variable, then do a shift to the right by 4 places which will give you a 12 bit result.
    Dave, thanks for the explanation! How much time would this algorithm take to do this, any idea? (just wondering if I can use it in my altimeter...)
    Thanks!

  4. #4


    Did you find this post helpful? Yes | No

    Default Re: Math operations execution time

    Isn't the 12-14-16 bit reading just a guess about being between the 2- 10 bit readings which could be off the expanded factor bits ??
    If the a/d values do not bounce in the 64 samples, the actual voltage could be up or down on that step but the guess would be middle.
    Don
    amgen

  5. #5
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default Re: Math operations execution time

    Quote Originally Posted by amgen View Post
    If the a/d values do not bounce in the 64 samples, the actual voltage could be up or down on that step but the guess would be middle.
    Yes, but in practice the numbers jump around enough so oversampling can extract more data from the result. The main drawback is speed, but it is very effective.

    Here's some sources of info:
    http://www.atmel.com/dyn/resources/p...ts/doc8003.pdf
    http://ww1.microchip.com/downloads/e...otes/Achieving Higher ADC Resolution Using Oversampling 01152A.pdf
    Attached Images Attached Images
    Last edited by ScaleRobotics; - 28th January 2012 at 20:35.
    http://www.scalerobotics.com

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