EXP4
EXP4
Experiment No 4
Aim: Studying and verifying BCD to Excess-3 code conversion circuit and prove its Truth
Table.
Apparatus Required: Scientech 2611DS Digital Workstation, Logic Trainer Kit,
Logic Gates, LED Indicators, Connecting Wires.
Theory:
1. BCD to Excess-3 Code Conversion
Binary-Coded Decimal (BCD) is a method of representing decimal numbers (0-9) in a 4-
bit binary format. The Excess-3 (XS-3) code is a non-weighted code obtained by adding 3
(0011) to the corresponding BCD number.
Binary-Coded Decimal (BCD) is a binary representation of decimal numbers where each
digit is represented using 4-bit binary. Excess-3 code is a self-complementary, non-
weighted code used in digital electronics, primarily for error detection and simplification
of certain arithmetic operations.
Excess-3 code is derived from BCD by adding 3 (0011 in binary) to each BCD digit.
For example,
BCD of 5 = 0101
Adding 3 (0011) = 1000 (Excess-3 code)
1
23104096 January 30, 2025
4. Truth table
Decimal B3 B2 B1 B0 E3 E2 E1 E0
0 0 0 0 0 0 0 1 1
1 0 0 0 1 0 1 0 0
2 0 0 1 0 0 1 0 1
3 0 0 1 1 0 1 1 0
4 0 1 0 0 0 1 1 1
5 0 1 0 1 1 0 0 0
6 0 1 1 0 1 0 0 1
7 0 1 1 1 1 0 1 0
8 1 0 0 0 1 0 1 1
9 1 0 0 1 1 1 0 0
5. Conversion Logic
The conversion can be performed using combinational logic circuits. The logic
expressions for the Excess-3 bits (E3, E2, E1, E0) in terms of BCD bits (B3, B2, B1, B0)
are:
E0 = B0' (Complement of B0)
E1 = B0.B1 + (B0 + B1)'
E2 = B2' (B0 + B1) + B2 (B0 + B1)'
E3 = B3 + B2 (B0 + B1)
These equations ensure that each BCD digit is correctly converted into the corresponding
Excess-3 code.
Procedure:
1. Connect +5V and ground to the DB07 experimental board from an external DC power
source or from the Digital Lab Scientech 2611.
2. Connect input B0, B1, B2, B3 as per Truth Table 2 to represent the BCD digits (0000
to 1001 for decimal 0 to 9).
3. Turn on the power supply to the circuit.
4. Measure the outputs E0, E1, E2, E3 on a multimeter or observe them on the LED
display of Digital Lab Scientech 2611.
5. Compare the observed outputs with the expected Excess-3 values from the truth table.
6. Repeat the process for all possible BCD inputs (0000 to 1001).
2
23104096 January 30, 2025
Observation:
Result: The circuit correctly converted each 4-bit BCD input into its corresponding 4-bit
Excess-3 output as per Truth Table 2