Median algorithm for 8051
- From: "Arthur Richards" <fake@xxxxxxxxxxxxxx>
- Date: Wed, 2 May 2007 15:47:06 +1000
I need to find the median of a 64 element unsigned int array. I would use
qsort() but my Keil compiler doesn't support it. I'm using the small model
so the algorithm should be non-recursive. Just to make it interesting I have
less than 500 microseconds to do the calc on a 25 MHz Silabs C8051F410.
The data is obtained sequentially from a ADC so that it may be possible to
do some of the calculation while the ADC is still working.
I would welcome any suggestions/code etc.
Arthur
.
- Follow-Ups:
- Re: Median algorithm for 8051
- From: Neil
- Re: Median algorithm for 8051
- From: nospam
- Re: Median algorithm for 8051
- From: CBFalconer
- Re: Median algorithm for 8051
- From: Paul Carpenter
- Re: Median algorithm for 8051
- From: Chris Hills
- Re: Median algorithm for 8051
- From: Rene Tschaggelar
- Re: Median algorithm for 8051
- From: Peter Harrison
- Re: Median algorithm for 8051
- From: Mark McDougall
- Re: Median algorithm for 8051
- Prev by Date: Re: Fault management engine
- Next by Date: Re: Quotable source for numbers of embedded vs. desktop CPUs?
- Previous by thread: Re: Fault management engine
- Next by thread: Re: Median algorithm for 8051
- Index(es):
Relevant Pages
|