Electronic Design

  
Reprints     Printer-Friendly    Email this Article    RSS        Font Size     What's This?


[Ideas For Design]
Easily Convert Decimal Numbers To Their Binary And BCD Formats: Backstory

Edmond Vinarub  |   ED Online ID #19774  |   October 2, 2008


For a long time, circa 1990s, based on my own design issues, the problem of presenting decimal/binary data on numeric displays consisting of more then two digits was always a challenge. All the software and available hardware relating BCD to decimal displays always discussed the designs based on two digits.

The key to my thinking was the development of some algorithm that would be able to convert decimal/binary information to BCD information of any numeric size. Following up on this thinking was to first determine how a decimal number of multiple digits relates via its binary equivalent to the final BCD number.

Once I determined this relationship, then the rest was developing a computer program that could generate this end result. The first program was actually written in Basic. Additional refinements that the program indeed “worked” allowed me to convert the program statements to a more useable form for engineering application to a C/C++ program.

The major challenge was to develop an algorithm, which showed the relationship between decimal/binary to BCD data. The design approach used for the development of the algorithm is still appropriate in today’s design world. The algorithmic design is still applicable for today’s technological development. Wherever presentation of BCD information is required, this design has great relevance.


Reprints   Printer-Friendly  Email this Article  RSS    Font Size   What's This?


  • Engineers Rely On Internet For Product Info
  • Rochester Electronics Establishes New Design and Technology Group
  • Custom Sources Light Way To 22-nm IC Lithography
  • In EDA, A Year Of Mergers, Failed And Otherwise
  • Software Turns Scopes Into Vector RF Signal Analyzers
  • Couple’s $15 Million Gift Advances Rice Engineering Education
  • November 7, 2008
  • Startup Sets Sail For Speedier Spice Simulation
    1) Ten Top Design Skills For Tough Times
    (3118 views today)
    2) Build A Smart Battery Charger Using A Single-Transistor Circuit
    (318 views today)
    3) Energy Harvester Perpetually Powers WIreless Sensors
    (311 views today)
    4) Ultracapacitors Branch Out Into Wider Markets
    (296 views today)
    5) Technology Has Been Very Good To Obama, And He Plans To Reciprocate
    (176 views today)
    ALL TOP 20



    Reader Comments

    To Phil: If you click on the authors name, you'll see this same article was first printed in 2004. The link to the code is in that article.

    Mark S -October 08, 2008

    Where is the link to the source code?

    Phil Ouellette -October 06, 2008

    Boy, what a Rube Goldberg approach. I thought everyone knew how to do this, just divide by 10 4 times. This approach takes non-binary modulos (hint: needs division) and then divides AGAIN. Neither good software nor good engineering. C-, could do better.

    PT -October 03, 2008

    POST YOUR COMMENTS HERE
    Name:

    Email:
    Your Comments:

    Enter the text from the image below


    Please refresh the page if you have trouble reading this text.

    Search Electronic Design
         
      
     
    Web Seminar
    Sponsored By:
    Title: Read Pacing: A Performance Enhancing Feature of PCI Express Gen 2 Switch Devices
    Speakers: 
    Date: 07/01/08
    Register: 

    Electronic Design Europe Electronic Design China EEPN Power Electronics Auto Electronics Microwaves & RF
    Mobile Dev & Design Schematics Find Power Products Military Electronics EE Events Related Resources