Summry PPT Chapter 1
Summry PPT Chapter 1
Summry PPT Chapter 1
2
Number System
Number system is used to represent the
numbers.
The different types of number systems are:
Decimal number
Binary number
Octal numbers
Hexadecimal numbers
3
Decimal Number
It uses digits from 0 to 9 for representing the
numbers.
It is represented with base 10.
A decimal number can be represented using
positional weights.
Example:
(198)10 = 1 X 102 + 9 X 101 + 8 X 100
4
Binary Number
It consists of only two digits, 0 and 1.
It is represented with base 2.
A binary number can be represented using positional
weights.
Example:
(198)10 = (11000110)2
= 1 X 27 + 1 X 2 6 + 0 X 25 + 0 X 2 4 + 0 X 23 + 1 X 2 2 + 1 X
21 + 0 X 20
= 128 + 64 + 0 + 0 + 0 + 4 + 2 + 0
= 198
5
Octal Number
It uses digits from 0 to 7 for representing the
numbers.
It is represented with base 8.
An octal number can be represented using positional
weights.
Example:
(237)8 = 2 X 82 + 3 X 81 + 7 X 80
= 2 X 64 + 3 X 8 + 7 X 1
= 128 + 24 + 7
= (159)10
6
Hexadecimal Number
It uses 16 symbols, 0 to 9 and A to F for representing
the numbers.
It is represented with base 16.
A hexadecimal number can be represented by using
positional weights.
Example:
A3BH = (A3B)16 = A X 162 + 3 X 161 + B X 160
= 10 X 162 + 3 X 161 + 11 X 160
= 2560 + 48 + 11
= (2619)10
7
Arithmetic Operations
Arithmetic operations are performed in
arithmetic unit of the digital systems by using
binary numbers.
The various types of arithmetic operations are:
Binary addition
Binary subtraction
Binary multiplication
Binary division
8
Complements
Complements are the binary representation of
negative numbers in digital systems.
The various types of complements are:
1’s complement: It is obtained by changing all 0’s to 1’s
and all 1’s to 0’s, of a binary number.
2’s complement: It is obtained by adding 1 to the 1’s
complement.
9’s complement: It is obtained by subtracting each digit in
the number by 9.
10’s complement: It is obtained by adding 1 to the 9’s
complement.
9
Binary Coded Decimal
Binary Coded Decimal (BCD) is the
combination of four digits, 8241, which
represent the binary numbers.
Example:
BCD equivalent of 1 is 0001
BCD equivalent of 2 is 0010
BCD equivalent of 5 is 0101
BCD equivalent of 9 is 1001
10
Codes
Code is the symbolic representation of discrete
information, which can be represented in the form of
numbers and letters.
Codes are classified in five groups:
Weighted binary codes: These codes follow the positional
weighting principle in which the position of the numbers
represent the weight. The different types of weighted codes
are:
8421 code
2421 code
Reflective code
Sequential code
11
Codes (contd..)
Non-weighted codes: These codes are not positionally
weighted. Each position within the binary number is not
assigned a fixed value. The different types of non-weighted
codes are:
Excess-3 code
Gray code
Error detecting codes: These codes are used to detect errors
in the decimal numbers. The different types of error
detecting codes are:
Check sum
Parity check
12
Codes (contd..)
Error correcting codes: These codes are used to
correct the errors in the decimal numbers. The
different types of error correcting codes are:
Hamming codes
Alphanumeric codes: These codes represent
numbers, letters and special symbols. The different
types of alphanumeric codes are:
ASCII codes
EBCDIC code
Hollerith code
13
Boolean Algebra
Mathematician George Boole defined Boolean
algebra as the technique, which provides the rules for
carrying out the logical operations.
The logical operations available in Boolean algebra
are:
Logical AND operation: It is given as Y = A.B for two
Boolean variables A and B. The values of AND operation
for different values of A and B are:
If A=0,B=0 then A.B = 0
If A=1,B=0 then A.B = 0
If A=0,B=1 then A.B = 0
If A=1,B=1 then A.B = 1
14
Boolean Algebra
Mathematician George Boole defined Boolean
algebra as the technique, which provides the rules for
carrying out the logical operations.
The logical operations available in Boolean algebra
are:
Logical AND operation: It is given as Y = A.B for two
Boolean variables A and B. The values of AND operation
for different values of A and B are:
If A=0,B=0 then A.B = 0
If A=1,B=0 then A.B = 0
If A=0,B=1 then A.B = 0
If A=1,B=1 then A.B = 1
15
Boolean Algebra(contd..)
Logical OR operation: It is given as Y=A+B. The values of
OR operation for different values of A and B are:
If A=0, B=0 then A+B = 0
If A=1, B=0 then A+B = 1
If A=0, B=1 then A+B = 1
If A=1, B=1 then A+B = 1
Logical complementation operation: It is also known as the
NOT operation and it converts the logical 1 to 0 and logical
0 to 1.
If A is a Boolean variable, then the complement of A is represented
by A* or A′.
Alternatively, a bar over the variable is used to represent the
complement of the variable.
16
Basic Laws of Boolean Algebra
The basic laws of Boolean algebra are used to provide
mathematical expressions for logical operations.
The Boolean rules define only two variables, binary 1
and binary 0. The basic rules of Boolean algebra are:
Boolean addition Boolean multiplication
0+0=0 0.0 = 0
0+1=1 0.1 = 0
1+0=1 1.0 = 0
1+1=1 1.1 = 1
17
Properties of Boolean Algebra
The properties of Boolean algebra depend on the
following operators:
Two binary operators denoted by the symbols ‘+’ and ‘.’
One unary operator denoted by either the bar (¯) symbol or
prime (') symbol
The various properties of Boolean algebra are:
Commutative property: The order of a Boolean operation
conducted on the variables makes no difference on the
result. For example:
Boolean addition is commutative, i.e. A+B = B+A
Boolean multiplication is commutative, i.e. A.B = B.A
18
Properties of Boolean Algebra
(Contd..)
Associative property: A Boolean operation conducted on
several variables provides the same result irrespective of
their grouping. For example:
Boolean addition is associative. It is represented as:
A+(B+C) = (A+B)+C
Boolean multiplication is associative. It is represented as:
A.(B.C) = (A.B).C
Distributive Property: Boolean algebra is distributive for
both addition and multiplication operations.
Boolean addition is distributive over the Boolean multiplication. It
is represented as:
A+B.C= (A+B).(A+C)
Boolean multiplication is distributive over the Boolean addition. It
is represented as:
A.(B+C)= A.B+A.C
19
DeMorgan’s Theorems
According to DeMorgan’s first theorem, the
complement of the product of two binary variables is
equal to the sum of the complements of two binary
variables.
It can be stated as:
(AB)* = A* + B*
According to DeMorgan’s second theorem, the
complement of the sum of the two binary variables is
equal to the product of the complements of two
binary variables.
It can be stated as:
(A + B)*= A*.B*
20
Sum of Products and Product of Sums
Sum of Products (SOP) and Product of Sums (POS)
are the logical variables that are used to express
logical functions.
SOP: It is the logical sum of two or more logical product
term. Basically, it is an OR operation of AND operated
variables. For example:
Y = AB+BC+AC
POS: It is the logical product of two or more logical sum
terms. Basically, it is an AND operation of OR operated
variables. For example:
Y = (A+B)(B+C)(A+C)
21
Karnaugh Map
Karnaugh map is a systematic method for simplifying
and manipulating switching expressions.
It is used to represent the information contained in a
truth table or the information available in the form of
POS or SOP. The characteristics of a K-map are:
In an n-variable K-map, there are 2n cells and each cell
matched to one combination of n variables.
In an n-variable K-map, a collection of 2m cells and each
adjacent to m cells is known as a group.This group can be
expressed by a product containing n-m variables where n is
the number of variables in the K-map.
22
Types of Logic Gates
The following are the types of the logic gates
used in logic circuits:
Basic logic gates
OR gate
AND gate
NOT gate
23
OR Gate
The OR gate is used to represent the addition
operation between the two inputs A and B.
Output of the operation is represented by
Y=A+B
A
Y=A+B
B