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.
...
Type: Posts; User: Darrel Taylor; Keyword(s):
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.
...
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...
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...
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...
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...