Re: Median algorithm for 8051
- From: Chris Hills <chris@xxxxxxxxxxxx>
- Date: Wed, 2 May 2007 09:25:58 +0100
In article <f198ko$6r3$1@xxxxxxxxxxxxxxxxxxxxxxxxxx>, Arthur Richards <fake@xxxxxxxxxxxxxx> writes
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.
What do you mean the Keil compiler doesn't support it?
Is this home work?
'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
--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ chris@xxxxxxxxxxxx www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
.
- References:
- Median algorithm for 8051
- From: Arthur Richards
- Median algorithm for 8051
- Prev by Date: Re: Warning -- Off Topic, Job Ad
- Next by Date: Re: DIP package LED dot matrix displays
- Previous by thread: Re: Median algorithm for 8051
- Next by thread: Re: Median algorithm for 8051
- Index(es):
Relevant Pages
|