2point moving averager (using only Fliplops and adders)

Discussion in 'Homework Help' started by Addil, Feb 20, 2014.

  1. Addil

    Thread Starter New Member

    Feb 20, 2014
    1
    0
    Hi,

    I require some help creating a 2point moving averager using only flipflops and adders (no digital signal processing). I need to implement this into my project any help will be much appreciated.

    many thanks
     
  2. MrChips

    Moderator

    Oct 2, 2009
    12,451
    3,370
    How would you calculate the average of two numbers?
     
  3. WBahn

    Moderator

    Mar 31, 2012
    17,788
    4,807
    And, once you consider how to add two numbers, the next thing you need to do is consider what, mathematically, a "two-point moving average" means.

    In particular, if you have

    x[0] The present input data value
    x[-1] The previous input data value
    x[-2] and so on...
    x[-n]

    and

    y[-1] The last output of the system
    y[-2] The one before that
    y[-n] and so on...

    What would be an expression for the new output, y[0].
     
Loading...