Search Results - MEL PICBASIC Forum


Search:

Type: Posts; User: Darrel Taylor; Keyword(s):

Search: Search took 0.02 seconds.

  1. Replies
    29
    Views
    60,758

    Re: New software filter for adc reading

    I agree!
    That Avg = (Avg*15 + ADval)/16 running average is only going to work with floating point math.
    It's surprising how many times we've seen it used around here in an integer only language.
    ...
  2. Replies
    29
    Views
    60,758

    Re: New software filter for adc reading

    Sorry for the delay, I was getting unexpected results from the moving average and I wanted to make sure it wasn't something I was doing wrong.
    But I 'll get to that in a minute.

    Al, here's the...
  3. Replies
    29
    Views
    60,758

    Re: New software filter for adc reading

    Sure, post it here. This thread is about your routines.

    My stuff is at the office, so I'll run it and the moving average Monday (if I don't get snowed in).

    I'm still thinking about starting the...
  4. Replies
    29
    Views
    60,758

    Re: New software filter for adc reading

    Well no.

    The sorting routine was OK.
    It needs that statement because the sorting uses Raw_Data[Index + 1]
    If you make your suggested change, it will overrun the array.

    The problem is in the...
  5. Replies
    29
    Views
    60,758

    Re: New software filter for adc reading

    It sounded like an interesting idea, so I thought I'd see what it could do.

    I created a circuit with 2.50 volts going to AN0 of a 12F683.
    The A/D converter reads ~511 with 10-bit results
    Using...
Results 1 to 5 of 5