0% found this document useful (0 votes)
13 views45 pages

Digital Electronics: Number Systems & Logic

Unit 4 covers Digital Electronics, focusing on number systems, code conversions, and arithmetic operations including addition and subtraction using 1's and 2's complements. It also includes topics on Binary Coded Decimal numbers, logic gates, Boolean algebra, and logic design with two and three input variables. The unit concludes with half-adder and full-adder concepts.

Uploaded by

shreepranavg2014
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views45 pages

Digital Electronics: Number Systems & Logic

Unit 4 covers Digital Electronics, focusing on number systems, code conversions, and arithmetic operations including addition and subtraction using 1's and 2's complements. It also includes topics on Binary Coded Decimal numbers, logic gates, Boolean algebra, and logic design with two and three input variables. The unit concludes with half-adder and full-adder concepts.

Uploaded by

shreepranavg2014
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

UNIT-4

Digital Electronics

Syllabus: Introduction, decimal system, Binary, Octal and


Hexadecimal number systems, addition and subtraction, fractional
number, Binary Coded Decimal numbers. Boolean algebra, Logic gates,
Two Variable and three variable K – maps - Half-adder, Full-adder,
Logic Design based on two and three input variables only.
--------------------------------------------------------------------
--------------------------------------------------------------------
--------------------------------------------------------------------
Topics: Introduction, decimal system, Binary, Octal and Hexadecimal
number systems

--------------------------------------------------------------------
Code Conversions:
Converting other number systems to Binary number system:
Octal to Binary:
Decimal to Binary:
Hexadecimal to Binary:
Converting other number systems to Octal number system:
Binary to Octal
Decimal to Octal
Hexadecimal to Octal

Converting other number systems to Decimal number system:


Binary to Decimal
Octal to Decimal
Hexadecimal to Decimal
Converting other number systems to Hexadecimal number system:
Converting Binary to Hexadecimal
Converting Octal to Hexadecimal
Converting Decimal to Hexadecimal
--------------------------------------------------------------------
-------------------------------------------------------
Topics: Addition and subtraction, fractional number
Sub Topic: Ones (1’s) complement
Procedure:
Replace 1 with 0 and 0 with 1

Q1: Find 1’s complement of 1110


Ans: 0001
Q2: Find 1’s complement of 00000
Ans: 11111
Q3: Find 1’s complement of 1010
Ans: 0101
Q4: Find 1’s complement of 1110
Ans: 0001
Q5: Find the ones complement of 6
Ans:
First find binary number for “6” by writing 421 code

421  110

= (4x1)+(2x1)+(1x0)
= 4+2 +0
= 6

Ones complement of ( 110)  001


Answer: 001

The result is 0001


Q6: Find the ones complement of 125
Ans:
26 25 24 23 22 21 20
64 32 16 8 4 2 1
1 1 1 1 1 0 1

64+32+16+8+4+1=125
Binary format of 125 is 1111101

ones complement of 125 is 0000010


--------------------------------------------------------------------
Sub Topic: Twos(2’s) complement
Procedure:
2’s complement=1’s complement +1 (LSB)
Addition:
A B Sum Carry
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
Arithmetic operations:
1. Addition
2. Subtraction

1. Addition:
A+B=C
A is called Augend
B is called Addend

0+0 = Sum 0 , carry 0


0+1= Sum 1 , carry 0
1+0= Sum 1 , carry 0
1+1= Sum 0 ,carry 1
1+1+1= Sum 1 , carry 1

Q1: Find the sum of (1001)2 and (1000)2


Ans:
First number 1 0 0 1
Second number 1 0 0 0
Carry bits 1
Final result 1 0 0 0 1

Therefore, answer is (10001)2


Q2: Find the sum of (1001)2 and (1010)2
Ans:
First number 1 0 0 1
Second number 1 0 1 0
Carry bits 1
Final result 1 0 0 1 1

Therefore, answer is (10011)2

Q3: Find the sum of (11001)2 and (11001)2


Ans:
First number 1 1 0 0 1
Second number 1 1 0 0 1
Carry bits 1 1 1
Final result 1 1 0 0 1 0

Therefore, answer is (110010)2

Q4: Find the sum of (10000)2 and (100)2


Ans:
First number 1 0 0 0 0
Second number 1 0 0
Carry bits
Final result 1 0 1 0 0

Therefore, answer is (10100)2

Q5: Find the sum of (111.11)2 and (11.1)2

First number 1 1 1 . 1 1
Second number 1 1 . 1
Carry bits 1 1 1 1
Final result 1 0 1 1 . 0 1

Therefore, the result is (1011.01)2

Q6: Find the sum of (110.11)2 and (0.1)2

First number 1 1 0 . 1 1
Second number 0 . 1
Carry bits 1
Final result (Sum) 1 1 1 . 0 1

Therefore, the result is (111.01)2

Q7: Find the sum of (8)10 and (9)10. Show the sum in binary.

First number 1 0 0 0
Second number 1 0 0 1
Carry bits 1
Final result (Sum) 1 0 0 0 1

--------------------------------------------------------------------
Topic: Binary Subtraction
A-B

A  Minuend
B Subtrahend

Subtraction using 1’s complement


Procedure:
1. Find minuend and subtrahend
2. Find 1’s complement of subtrahend
3. Add 1’s complement subtrahend to the minuend
4. If carry is generated then add the carry to LSB of the result and
the sign of the result is positive.
5. If carry is not generated then perform 1’s complement again to
the result and the sign is negative.

Q1: Calculate (010)2 − (011)2 using 1’s complement method.


Q2: Calculate (10100)2 − (11111)2 using 1’s complement method.

Q3: Calculate (010.1)2 – (111.1)2 using 1’s complement method.


Q4: Calculate (1011001.01)2 − (1100100.10)2 using 1’s complement
method.
Q5: Calculate (8.5)10 − (3.5)10 using 1’s complement method.
Subtraction using 2’s complement
Procedure:
1. Find minuend and subtrahend
2. Find 2’s complement of subtrahend
3. Add 2’s complement of subtrahend to the minuend
4. If carry is generated then cancel the carry in the result and the
sign of the result is positive.
5. If carry is not generated then perform 2’s complement again to
the result and the sign is negative.

Q1: Calculate (010)2 − (011)2 using 2’s complement method.

Q2: Calculate (10100)2 − (11111)2 using 2’s complement method.


Q3: Calculate (1011.1)2 − (101.1)2 using 2’s complement method.

Check your class notebook


--------------------------------------------------------------------
Topic: Binary Coded Decimal numbers
--------------------------------------------------------------------
Topic: Logic gates
--------------------------------------------------------------------
Topic: Boolean algebra
Topic: Logic Design based on two and three input variables only
Simplification of Boolean expressions using Boolean Laws
--------------------------------------------------------------------
Topic: Two Variable and three variable K – maps
--------------------------------------------------------------------
Topic:Half-adder
--------------------------------------------------------------------
Topic:Full-adder
--------------------------------------------------------------------
END OF UNIT-4

Common questions

Powered by AI

To add binary numbers (1101)2 and (1011)2, align them and add each column starting from the right, carrying over when the sum is 2 or more. 1 + 1 = 0 (carry 1), next column 0 + 1 + 1 (carry) = 0 (carry 1), next column 1 + 0 + 1 (carry) = 0 (carry 1), final column 1 + 1 (carry) = 1 (carry 1), resulting in a 5th column to accommodate the carry. The result is (11000)2 .

Binary Coded Decimal represents each digit of a decimal number with its binary equivalent. The number 47 in decimal is split into two digits, 4 and 7. In BCD, 4 is represented as '0100' and 7 as '0111'. Thus, 47 in BCD is '0100 0111'. BCD is used to simplify the conversion between binary and human-readable decimal numbers, especially in digital displays .

To convert a decimal number to binary, you repeatedly divide the number by 2 and record the remainder. You then read the remainders in reverse order. For example, to convert 29 to binary: divide 29 by 2 to get a quotient of 14 and a remainder of 1. Divide 14 by 2 to get a quotient of 7 and a remainder of 0. Divide 7 by 2 to get a quotient of 3 and a remainder of 1. Divide 3 by 2 to get a quotient of 1 and a remainder of 1. Finally, divide 1 by 2 to get a quotient of 0 and a remainder of 1. Reading the remainders in reverse order gives you 11101. Hence, 29 in binary is 11101 .

K-maps are used in digital electronics to simplify Boolean expressions by visually organizing truth values and identifying simplification opportunities. They help transform complex Boolean expressions into simpler forms by grouping adjacent 1s into rectangles, each representing a simplified expression. For up to three variables, K-maps provide an efficient method for minimizing logic circuits by clearly showing the relationships between different inputs, thus reducing the circuit complexity and power consumption .

A Full-adder is a digital circuit that computes the sum of three bits: two significant bits and an incoming carry bit. It outputs a sum bit and a carry bit. A Half-adder, on the other hand, adds only two bits and provides outputs for the sum and carry, without handling incoming carry bits. Thus, a Full-adder can be utilized in building arithmetic circuits for multi-bit addition, whereas a Half-adder is limited to single-bit additions without carry consideration .

Logic gates are the basic building blocks of digital circuits, used to perform logical operations on binary inputs. Each gate implements a Boolean function, such as AND, OR, NOT, etc., allowing the combination and manipulation of signals. They are fundamental because digital circuits rely on these gates for processing and decision-making, forming the backbone of microprocessors and all computing devices .

To subtract using 1’s complement, find the 1’s complement of the subtrahend and add it to the minuend. For (10011)2 - (1101)2, first find 1's complement of (1101)2, which is (0010)2. Add this to the minuend (10011)2: 0010 + 10011 = 11001. Since there is no overflow, perform 1’s complement on the result to get (00110)2, indicating a negative result .

To find the 2’s complement, first find the 1’s complement by flipping bits, then add 1 to the least significant bit. For 101110, the 1’s complement is 010001. Adding 1 to the least significant bit gives 010010. Thus, the 2’s complement of 101110 is 010010 .

To convert a hexadecimal number to binary, replace each hex digit with its 4-bit binary equivalent. For '3F', 3 in hex is '0011' in binary, and F in hex is '1111' in binary. Therefore, '3F' in hexadecimal is '00111111' in binary .

The 1’s complement of a binary number is found by replacing all 1s with 0s and all 0s with 1s. For the binary number 101101, the 1’s complement is obtained by changing 1 to 0 and 0 to 1. Thus, 101101 becomes 010010 .

You might also like