Re: Hey, what is all this 'off topic' posting?
- From: kensmith@xxxxxxxxxxxxxxx (Ken Smith)
- Date: Sun, 4 Sep 2005 18:04:10 +0000 (UTC)
In article <pan.2005.09.04.15.39.36.685094@xxxxxxxxxx>,
keith <krw@xxxxxxxxxx> wrote:
[...]
>> With asm you know you will need 10 times more time to deliver 1/10th
>> of the functionality.
>
>Only if you've never heard of a macro.
You missed an obvious argument. I spend at least as much time on
designing the system as typing in code. If coding in C was infinitely
fast, it could only save me about half the time.
Example:
How do I store temperature?
The ADC input gives me an LSB of 0.43 degrees C.
I have to be able to display the value easily so I select, 0.1C
increments.
The highest temperature I need to deal with is 100C. That is 1000, 0.1C
increments.
I get zero from the ADC for all temperatures below 0C, so positive values
are all I need.
As a result, a 16 bit unsigned will work for temperature.
Now given the ADC input, what is the fastest way to turn the raw number
into my units?
the LSB from the converter is worth 4.3 in my numbering system.
The 4 part is easy. The 0.3 part is ging to take a little thinking.
..... etc ....
BTW: a table look up is the way to go if you've got the space.
--
--
kensmith@xxxxxxxxx forging knowledge
.
- Follow-Ups:
- Re: Hey, what is all this 'off topic' posting?
- From: Pooh Bear
- Re: Hey, what is all this 'off topic' posting?
- From: John Larkin
- Re: Hey, what is all this 'off topic' posting?
- From: Frank Bemelman
- Re: Hey, what is all this 'off topic' posting?
- References:
- Hey, what is all this 'off topic' posting?
- From: Bob Monsen
- Re: Hey, what is all this 'off topic' posting?
- From: SioL
- Re: Hey, what is all this 'off topic' posting?
- From: Frank Bemelman
- Re: Hey, what is all this 'off topic' posting?
- From: keith
- Hey, what is all this 'off topic' posting?
- Prev by Date: Re: Is New Orleans finished ?
- Next by Date: Re: OT: Is New Orleans finished ?
- Previous by thread: Re: Hey, what is all this 'off topic' posting?
- Next by thread: Re: Hey, what is all this 'off topic' posting?
- Index(es):
Relevant Pages
|