Binary-coded Decimal - BCD in Electronics

BCD in Electronics

BCD is very common in electronic systems where a numeric value is to be displayed, especially in systems consisting solely of digital logic, and not containing a microprocessor. By utilizing BCD, the manipulation of numerical data for display can be greatly simplified by treating each digit as a separate single sub-circuit. This matches much more closely the physical reality of display hardware—a designer might choose to use a series of separate identical seven-segment displays to build a metering circuit, for example. If the numeric quantity were stored and manipulated as pure binary, interfacing to such a display would require complex circuitry. Therefore, in cases where the calculations are relatively simple working throughout with BCD can lead to a simpler overall system than converting to binary.

The same argument applies when hardware of this type uses an embedded microcontroller or other small processor. Often, smaller code results when representing numbers internally in BCD format, since a conversion from or to binary representation can be expensive on such limited processors. For these applications, some small processors feature BCD arithmetic modes, which assist when writing routines that manipulate BCD quantities.

Read more about this topic:  Binary-coded Decimal

Famous quotes containing the word electronics:

    We live in a highly industrialized society and every member of the Black nation must be as academically and technologically developed as possible. To wage a revolution, we need competent teachers, doctors, nurses, electronics experts, chemists, biologists, physicists, political scientists, and so on and so forth. Black women sitting at home reading bedtime stories to their children are just not going to make it.
    Frances Beale, African American feminist and civil rights activist. The Black Woman, ch. 14 (1970)