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

Edmond Vinarub
ED Online ID #19774
October 2, 2008

 

Copyright © 2006 Penton Media, Inc., All rights reserved.
Printing of this document is for personal use only.
Reprints
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.

fig 1
fig_01.gif 1


PartFinder

Find real-time pricing, stock status, same-day/next-day shipping options and more. Brought to you by Digi-Key. Go to PartFinder.    
GlobalSpec

PART SEARCH :
Powered by: GlobalSpec - The Engineering Search Engine
Sponsored Links

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