Re: Input filtering for a microcontroller
- From: Clifford Heath <no.spam@xxxxxxxxxx>
- Date: Mon, 19 Jun 2006 13:27:24 +1000
Ignoramus15879 wrote:
Here I am kind of limited with
memory, and computing RMS requires an array.
No it doesn't. It only requires two variables:
one that sums the squares, and one that counts
how many values have been summed. Any time you
want RMS, do the division. Any time adding a
sample would cause overflow, divide both values
by 2.
.
- References:
- Input filtering for a microcontroller
- From: Ignoramus19197
- Re: Input filtering for a microcontroller
- From: Paul E. Schoen
- Re: Input filtering for a microcontroller
- From: Ignoramus15879
- Input filtering for a microcontroller
- Prev by Date: Re: Counterfeit or re-marked Electronic components.
- Next by Date: Re: RS232 Datalogging and Control
- Previous by thread: Re: Input filtering for a microcontroller
- Next by thread: Re: Monitor Question
- Index(es):