Understanding BCD Code in Digital Electronics
Understanding BCD Code in Digital Electronics
Work
Practical #1
Digital Electronics I
Management II-2016
BDC CODE
FUNDAMENTALS
In BCD, each digit that represents a decimal digit (0, 1,...8 and 9) is represented
with its equivalentbinaryin four bits (nibble or quartet) (this is so because it is
the number of bits necessary to represent nine, the highest number that is
can be represented in BCD).
CHARACTERISTICS
Weighting
Most current numbering systems are weighted, that is,
each position in a sequence of digits has an associated weight. The system
Binary is, in fact, a weighted positional numbering system. Without
embargo, some binary codes, like Gray code, are not weighted, it is
to say, they do not have an associated weight for each position. Others, like the same code
natural binary or the natural BCD do exist.
Distance
It is a feature applicable only to binary combinations. The distance
between two combinations is the number of bits that change from one to the other.
for example, if you have the combinations of four bits 0010 and 0111,
corresponding to 2 and 7 in natural binary, it will be said that the distance between them
It is equal to two since two bits change from one to the other.
In addition, with the concept of distance, the minimum distance of a can be defined
code. This is nothing more than the shortest distance between two of the
combinations of that code.
Continuity
It is a characteristic of binary codes that fulfill all possible
code combinations are adjacent, meaning that from any combination
the code changes only one bit. In this case, it is said that the code is
I continue. When the last combination of the code is, in turn, adjacent to the
first, it is about a cyclic code.
Autocomplementarity
Binary code is self-complementary when the nine's complement of
the decimal equivalent of any combination of the code can be found
inverting the values of each of the bits (unary logical operation of
negation) and the result is still a valid combination in that code. This
characteristic is observed in some BCD codes, such as the Aiken code or the
Excess-3 BCD code. Self-complementary codes facilitate operations.
arithmetic.
APPLICATION
REPRESENTATION
Decimal: 0 1 2 3 4 5 6 7 8 9
Example
The BCD encoding of the decimal number 59237 is:
Decimal: 5 9 2 3 7
BCD: 0101 1001 0010 0011 0111
The previous representation (in BCD) is different from the representation of the same.
pure binary decimal number:
e