8 Bit Bin-Dec Converter Needed

  • Uberness
    11th Sep 2011 Member 0 Permalink
    Here's my random binary generator:


    Now, I need an 8 bit bin-dec converter to make it a real random number generator.
  • surfcash
    11th Sep 2011 Member 0 Permalink
    i have one but its gigantic
  • BloodLust
    11th Sep 2011 Member 0 Permalink
    couldnt u just use a sort of reverse rom conected to a rom?

    im not sure how you would do the first part simply, only ways i can think are either slow or really complex

    BUT with a series of switchs i think you could get it to work it just wouldnt go fast.....WHICH is why you would need a buffer
  • BlueAmulet
    11th Sep 2011 Member 0 Permalink

    Deleted

    Edited once by BlueAmulet. Last: 12th Apr 2024
  • Synergy
    11th Sep 2011 Member 0 Permalink
    Check out my saves. I have a 36-bit binary to decimal converter (aswell as 20 and 5 bit I think). I can easily make it 8 bit. It would be far far smaller than the 36 bit version and far quicker. Reply or message me if you want me to make an 8-bit adaption for you.

    But yeah it would easily be small enough to fit into the corner of the screen.
  • BloodLust
    11th Sep 2011 Member 0 Permalink
    @Synergy (View Post)
    mind elaborating on your design?

    ive been needing one for a barcode reader i made a while back that id like to redesign and i need a converter to convert a series of inputs to a single output

    like 8 inputs and ten outputs and would work like a rom run backwards
  • Synergy
    11th Sep 2011 Member 0 Permalink
    The design my binary to decimal converter is based on is the double dapple method used to convert binary to BCD. It involves an algorithm where the bits a proceedurely shifted from a binary register into the BCD registers where after each shift the value is recorded and if it is less than 5 the next left shift begins, if it is 5 or more, 3 is added to the original value and the next shift begins. The amount of left shifts is the same as the amount of bits being encoded into BCD.

    After that is is just the simple process of converting the BCD into information readable by a 7 seg display decoder.
  • JoJoBond
    11th Sep 2011 Member 0 Permalink
    I tried building a sequential 8-Bit binary to decimal converter.
    No reset yet.
  • BloodLust
    11th Sep 2011 Member 0 Permalink
    @Synergy (View Post)
    is there a simpler way to do it?

    i don't need one for big numbers or multiple digits or any kind of math operations, i just need something for 0-9

    EDIT: and i dont mean binary like the ones with the different numbers that can equal virtually any other number, i mean like 10010000 for the digit zero