BCD Code:
In this code, each decimal digit, 0 through 9, is coded by a 4-bit binary number. It is a weighted code and is also sequential. Therefore, it is useful for mathematical operations. It is less efficient than the pure binary, in the sense that it requires more bits.
For example, the decimal number 14 can be represented as 1110 in pure binary but as 0001 0100 in 8421 BCD code. There are six illegal combinations 1010, 1011, 1100, 1101, 1110, and 1111 in this code.
BCD Addition:
If there is no carry and the sum term is not an illegal code, no correction is needed. If there is a carry out of one group to the next group, or if the sum term is illegal code, then 6 (0110) is added to the sum term of that group and the resulting carry is added to the next group.
BCD Subtraction:
If there is no borrow from the next higher group then no correction is required. If there is a borrow from the next group, then 610 (0110) is subtracted from the difference term of this group.
GTU - Computer Engineering (CE) - Semester 3 - 3130704 - Digital Fundamentals - Fundamentals of Digital systems & Logic families - BCD Code - BCD Addition - BCD Subtraction
Digital Fundamentals PPTs are available here: http://www.darshan.ac.in/DIET/CE/GTU-...
This video is recorded by Prof. Krunal Vyas ([email protected], +91-9601901005) at the Computer Engineering Department of Darshan Institute of Engineering & Technology, Rajkot as per GTU Syllabus.
Darshan Institute of Engineering & Technology, Rajkot is a leading institute offering undergraduate, graduate, and postgraduate programs in engineering. The Institute is affiliated to the Gujarat Technological University (GTU) and approved by the AICTE, New Delhi.
Visit us: http://www.darshan.ac.in
Write to us: [email protected]
Facebook: / darshaninstitute.official
Twitter: / darshan_inst
Instagram: / darshan_inst