# Tag Archives: Algorithms

## From Binary To BCD…And Back Again (Part 2)

In the previous post I described the algorithm for converting a binary number to binary-coded-decimal (BCD). In this post I’ll describe an algorithm for doing the reverse; converting a BCD number to binary. The algorithm is based on repeated division and is best explained by example. Begin with a decimal number and divide by 2. …

## From Binary To BCD…And Back Again (Part 1)

Binary coded decimal (BCD) is a way of representing numbers in a computer as decimal rather than binary digits. Most commonly 4 bits are used to represent each digit since 4 bits can contain the numbers 0-9 and it allows two digits to be packed into a single byte. For those who still enjoy assembly …

## A PKS31 Beacon In An FPGA

Back in January 2012 I described a technique for producing PSK31 signals that requires no multiplications or explicit wave shaping. It was based upon viewing the PSK signal not as a single modulated waveform but as as the sum of two unmodulated waveforms whose individual frequencies depend upon whether you are transmitting a one or …