Vous êtes sur la page 1sur 50

# INDUSTRIETECHNIK

## ELECTRICAL and ELECTRONIC

ENGINEERING
Instructor Manual

Training Unit

Digital Technique 3
Theory

No: EE 090

Training Unit
Digital Technique 3
Theoretical Part
No.: EE 090

Edition:

2008

Editor:

## MCE Industrietechnik Linz GmbH & Co

Education and Training Systems, DM-1
Lunzerstrasse 64 P.O.Box 36, A 4031 Linz / Austria
Tel. (+ 43 / 732) 6987 3475
Fax (+ 43 / 732) 6980 4271
Website: www.mcelinz.com

DIGITAL TECHNIQUE 3

CONTENTS

Page

1

1.1
1.1.1

1.1.2

1.1.3

1.2
2

2.1.1

2.1.2

2.2

2.3

2.3.1

2.3.2

2.3.3

3.1

3.2

## Arithmetic circuits ...............................................................................................28

DIGITAL TECHNIQUE 3

LEARNING OBJECTIVES

## The trainee should...

enumerate and explain the basic principles of Boolean Algebra
apply the logical basic functions in NOR and NAND technique, with the help of the
De'Morgan Law
on the basis of a task develop a truth table and a function
with the help of Boolean Algebra, simplify a function and convert into a logic circuit
with the help of the KV diagram, simplify circuit functions of up to a maximum of four
Input variables

DIGITAL TECHNIQUE 3

BOOLEAN ALGEBRA

The Boolean algebra (logic algebra, switching algebra) has been named after the English
mathematician George Boole (1815 - 1864).
By it, the mathematical treatment of circuit tasks in digital technology is understood. To
simplify the circuits, or reduce the cost of circuits or to find solutions with certain defined
gates we can use the laws of the Boolean algebra.

1.1

1.1.1

3 X 4 = 12

3 + 4 = 7

4 x 3 = 12

4 + 3 = 7

## Principle of factor permutation

Principle of summand

Q = A B

Q = A V B

Q = B A

Q = B V A

NOTE:
The commutative principle corresponds to the principles of factor permutation and
summand permutation in mathematics. It says that the inputs of AND and OR gates can
be exchanged.

1.1.2

## For AND function:

For OR function:

NOTE:
Variables which are associated with each other by an AND or OR function may be
combined.

1.1.3

## For AND function:

Truth table:

For OR function

Circuit:

Circuit:

Truth table:

NOTE:
The principle of distributivity resembles the parenthesis rules in mathematics.

Circuit:

Truth table:

NOTE:
This rule says that an OR gate with two negated inputs can be used instead of a NAND
gate.

10

Circuit:

Truth table:

NOTE:
This rule says that an AND gate with two negated inputs can be used instead of a NOR
gate.

11

Circuit:

Circuit:

Truth table:

NOTE: This rule means that an AND gate can be replaced by a NOR gate with two
negated inputs.

12

Circuit:

Circuit:

Truth table:

NOTE:
This rule means that an OR gate can be replaced by a NAND gate with two negated
inputs.

13

1.2

1.

## Double negation of a logic variable

2.

Negation
AND and/or OR linkage of a logic variable and its negation.

3.

## Absorption (from Latin: absorbere, to eat up):

AND and/or OR linkage of a logic variable with the constant "OH and/or "1",

4.

## Tautology (from Greek: the same)

AND and/or OR linkage of a logic variable with itself.

5.

Commutative law:

14

6.

Law of association:

7.

Law of Distributivity:

8.

De Morgan's law:

9.

Special functions:

15

## A synthesising of logic circuits according to a task is to be understood as the conversion

of a required task into a functioning logic circuit.
First, the problem must be transferred to a truth fable.

Example:

Heating control

The burner Q shall be switched an when the circulating pump A is working and the
temperature sensor B for the warm water supply or the room temperature sensor C
responds.

## Truth table (Function table):

Minterme:
These lines of the truth table which have a 1 at the output Q.

Maxterme:
These lines which have a 0 at the output Q.

16

There are two ways for establishing the output function Q according to the truth table:

2.1.1

## Disjunctive normal form

Each line of the truth table which has a "1" at the output Q is connected in series (AND
function).
The associated input variables (A, B, C, ...) which have a "1" signal are written directly,
those that have a "0" signal, are written as negated.
If several lines have a "1" at the output Q, then they are connected in parallel (OR
function).

Logic diagram:

17

## Simplification of the Logic function:

Circuit:

Distributivity law:

18

Circuit:

2.1.2

## Conjunctive normal form

For all lines of the truth fable which have a "0" at the output, the parallel connection (OR
function) will apply, with the Input variables being inverted.
The corresponding line groups are then connected in series (AND function).

Normally, formulation is preferably done after the disjunctive normal method, as the
expressions are usually shorter and can be more easily simplified.

19

2.2

## Important tips for the solution of logic circuit problems

For the solution of digital circuit problems, the solution steps should always follow a
certain sequence:

## 1. Exact determination of the Input and output variables.

2. Preparation of a truth fable (sometimes very comprehensive).
3. Reading the logic function from the truth table:
a) disjunctive normal form,
b) conjunctive normal form.
4. Presentation of the function and simplification, using the laws of the logic algebra and
the KV diagram
5. Logic circuit.

20

2.3

## Karnaugh-Veitch diagram (KV diagram)

Two minterms are considered to be neighbouring if they differ in only one logic variable.

Example:
If the disjunctive normal form contains two neighbouring minterms, a simplification will
always be possible.

In two neighbouring minterms always that variable is omitted which is present as negated
in one minterm, and as not negated in the other.

## The Karnaugh-Veitch procedure consists in graphically drawing minterms in such a way

so that all neighbouring minterms are situated together.

2.3.1

21

2.3.2

22

2.3.3

## KV diagram for four Input variables

Example 1:

23

Example 2:

NOTE:
Only blocks of two, four, eight, etc, can be comprised and abbreviated.

24

3.1

CALCULATION TECHNIQUE

For the addition of binary digits several circuit possibilities are available, Always one of
these adding circuits is necessary for each binary digit. The circuit may be derived from

Truth fable:

Function:

Logic diagram:

Simplified symbol:

25

The circuit - also called "half-adder - supplies one carry-over C but it does not consider
any carry-overs that come from the preceding digit.

Truth table:

A, B

= summands

Cn-1

Si

## = sum of the 1st half adder

Cl, C2, Cn

= Carry-overs

S2

= sum

26

Logic diagram:

Simplified symbol:

27

3.2

Arithmetic circuits

If a complete calculated value has to be obtained, then for each binary digit the
appropriate number of full adders has to be connected in such a way that each step
accepts the carry-over from the preceding digit.
Consequently, any desired number of full adders could be connected. Practically, usually
there are mathematical quantities with a word length of 4 bit.

Logic diagram:

28

Exercises:

## 1. Driving a 7-segment display via conjunctive normal form.

Design a logical circuit (truth table, function, and logic diagram), with which c 7segment display module is able to display the figures 0 - 9.

Truth table:

7-segment display

29

Logic diagram:

30

## 2. Driving a 7-segment display via disjunctive normal form.

Design a logical circuit (truth table, function, KV diagram, and logic Diagram), with
which a 7-segment display module can display the figures 0-9.

Truth table:

31

## Functions (disjunctive normal form):

32

KV diagrams:

33

34

Simplified functions:

35

Logic diagram:

36

## EE090 - Digital Technique 3

Theoretical Test

37

DIGITAL TECHNIQUE 3
TEST 1

## 2. Describe the Law of Associativity.

3. Take the function from this logic diagram and simplify it in accordance with the Law of
Distributivity.

## 5. Transform the function Equivalency into the NAND technique.

6. From this truth table, write the disjunctiive and the conjunctive normal forms.

38

7. Simplify this function and name the law of the Boolean algebra.

## 11. Explain the farm "Minterme".

12. Name two examples for the application of the associative law (function and logic
circuit)

13. Take the function from this logic diagram and simplify it according to the Law of
Distributivity.

39

## 15. Design a logic circuit with the outputs:

Q1 = A < B
Q2 = A = 13
Q3 = A > B

16. The output of a logic circuit should be "1" when any two of three inputs become "1"
Write the function for the output, convert the function into NAND-technique and draw
the KV diagram.

17. From the truth fable (inputs A B C), develop the disjunctive normal form and simplify it
with the help of the KV diagram.

## 19. Prepare the truth table of a full adder.

40

20. From this truth table, develop the disjunctive normal form and simplify it with the help
of the KV diagram.

41

DIGITAL TECHNIQUE 3
TEST 1
(Solution)

## 1. It corresponds to the mathematical rules of summand and factor interchange and it

says that the Inputs of AND and/or OR gates can be interchanged.

2. Variables which are linked with each other via an AND and/or OR function can be
compiled.

3.

4.

5.

42

7.

8.

9.

43

## 10. Truth table:

Function:

Logic diagram:

11. Minternnes are those lines in the truth fable which have the result "1" at the output "Q".

44

12.

13.

## Conjunctive normal form

45

15.

16.

46

17.

18.

47

19.

20.

48

KEY TO EVALUATION

PER CENT

MARK

88 100

75 87

62 74

50 61

0 49

49