Re: Extracting Digits from a Number
- From: roberson@xxxxxxxxxxxxxxxxxx (Walter Roberson)
- Date: Sat, 10 Sep 2005 05:17:30 +0000 (UTC)
In article <1126306892.317811.213390@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Kosio <aarongeier@xxxxxxxxx> wrote:
>My reasoning is that I want to send a number to a 7 segment, 8-digit
>LED display, but I have to know each individual number to set the
>display. These numbers will be updated fairly often.
In the old days, there were dedicated chips for this purpose...
>I am using an
>SPI protocol to send data between the micro and the LED Display...
>Basically I send the numbers digit by digit to the display, so I need
>to know individual digits of the numbers passed to the micro.
Does that imply that you are sending the digits in sequence?
That's a bit different than the task of being able to extract an
arbitrary digit from the middle of a number.
Does the protocol allow the least significant digit to be sent
first?
>I'll have to look more into how the division algorith works on this
>compiler, but with limited ROM space on the micro (and I'm tight as it
>is already), two lines of division code take up roughly 3% of my
>program space.
You only have about 64 instruction locations available for your
entire program??
--
I was very young in those days, but I was also rather dim.
-- Christopher Priest
.
- References:
- Extracting Digits from a Number
- From: Kosio
- Re: Extracting Digits from a Number
- From: Keith Thompson
- Re: Extracting Digits from a Number
- From: Kosio
- Extracting Digits from a Number
- Prev by Date: Re: why is it comming
- Next by Date: Re: C, lexical
- Previous by thread: Re: Extracting Digits from a Number
- Next by thread: Re: Extracting Digits from a Number
- Index(es):
Relevant Pages
|