Re: Extracting Digits from a Number



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
.



Relevant Pages

  • Re: tech: Stern displays issues
    ... The easy one - The six-digit match/credit display is missing the ... 10'000's digit (which is the tens digit of the credits left half of the ... problem, and two, the 100K resistor in this circuit registers 97K ohms, ... 300K resistor in the other bad circuit would show 297 for a single beat, ...
    (rec.games.pinball)
  • Simple GUI application attempted.
    ... if the digit to be displayed is ... It would be nice if the ColorModel classes had 'set' methods, ... DigitDisplayImage class, after which the following code example would ... work to display the digit "4". ...
    (comp.lang.java.help)
  • Re: Number Of Decimal Digits In Frequency Display
    ... >> Is the signle digit in the decimal poriton of the frequency display, ... newsagents in the city used to stock the South/West and London ... he hasn't seem more than one place of decimals. ...
    (alt.radio.digital)
  • Re: Tech: Bally Solid State 6-digit repair also WTB
    ... missing a single digit, etc. ... working displays get burnt also? ... The 100k resistors are the ones to upgrade, I do it if any look burnt (the resistor not the display.) If you don't leave them on for a long time I wouldn't worry about this..... ...
    (rec.games.pinball)
  • Re: Need Help.
    ... you'll be using the "mul" instruction. ... but gives a quotient and remainder. ... If you want to accept multiple digit numbers as input... ... Once you can display a correct answer all the way up to 9 + 9, ...
    (comp.lang.asm.x86)