Documente Academic
Documente Profesional
Documente Cultură
1
2 Digital computers and Digital System
The signals in all the present day electronic digital system have
only two discrete values and are said to be BINARY.
3 Digital computers and Digital System
Processor
Control unit Or
Arithmetic unit
Storage
Or
memory unit
1 x 24 + 1 x 23 + 0 x 22 + 1 x 21 + 0 x 20 + 1
x 2−1 + 1 x 2−2
6
Binary to decimal conversion
7 6 5 4 3 2 1 0
27 26 25 24 23 22 21 20
128 64 32 16 8 4 2 1
1 0 0 1 1 1 0 0
128 + 0 + 0 + 16 + 8 + 4 + 0 + 0 = 156
7 Hexadecimal Numbers
2 Ac
0010 1010 1100
2ac = 001010101100
Numbers with different bases
9
Addition Subtraction
11 Two’s compliment
computer?
manageable?
The Answer is
Two’s compliment
12
Two’s compliment
For 6 = 0110
complement)
14 Operation with 2’s complement
Add 4 & -6
15 Operation with 2’s complement
Add 4 and -6
4 in binary = 100
4 100
-6 010
∟ Let the manual switches A and B represent two binary variables with
values equal to 0 when the switch is open and 1 when the switch is
closed.
19 SWITCHING CIRCUITS
Logic 0 (0 - 0.8V)
20 INTEGRATED CIRCUIT
An integrated circuit (IC) is a small silicon crystal called a chip, containing
electrical components such as Transistors, Diodes, Resistors & Capacitors.
as “Boolean Algebra”
1938: Claude Shannon was the first to apply Boole’s work to the
A B
A+B B+A
B A
A
B
AB B
A
B+A
29 ASSOCIATIVE LAWS
A A A+B
A+(B+C)
B B
(A+B)+C
C B+C C
A
B
A(BC)
A
B
AB
(AB)C
C BC C
30 DISTRIBUTIVE LAWS
B+C A AB
B
C B
X
X
A A
C AC
X=A(B+C) X=AB+AC
31 RULES OF BOOLEAN ALGEBRA
1. A 0 A 7. A A A
2. A 1 1 8. A A 0
3. A 0 0 9. A A
4. A 1 A 10. A AB A
5. A A A 11. A A B A B
6. A A 1 12.( A B )( A C ) A BC
___________________________________________________________
A, B, and C can represent a single variable or a combination of variables.
32 DEMORGAN’S THEOREMS
C CD
D
B+CD
B
A(B+CD)
A
36
CONSTRUCTING A TRUTH
TABLE FOR A LOGIC CIRCUIT
Once the Boolean expression for a given logic circuit has been
determined, a truth table that shows the output for all possible
values of the input variables can be developed.
A(B+CD)
B+CD = 1+0 = 1
B+CD = 0+1 = 1
B+CD = 1+1 = 1
Summary:
A(B+CD)=1
A(B+CD)=1 0 0 1 0 0
0 0 1 1 0
0 1 0 0 0
When A=1 and 0 1 0 1 0
B=1 regardless 0 1 1 0 0
of the values 0 1 1 1 0
1 0 0 0 0
of C and D 1 0 0 1 0
When A=1 and C=1 1 0 1 0 0
41
42 LOGIC GATES
The three simplest gates are the AND, OR, and NOT
gates.