Académique Documents
Professionnel Documents
Culture Documents
Training Unit
Digital Technique 2
Theory
No: EE 089
Training Unit
Digital Technique 2
Theoretical Part
No.: EE 089
Edition:
2008
All Rights Reserved
Editor:
DIGITAL TECHNIQUE 2
CONTENTS
Page
Truth Table...........................................................................................................6
1.2
Logic Types..........................................................................................................7
1.2.1
1.2.2
Negative logic...................................................................................................7
1.2.3
AND function........................................................................................................9
2.1.1
2.1.2
2.1.3
2.1.4
2.2
OR-Function.......................................................................................................13
2.2.1
(Disjunction) OR gate.....................................................................................13
2.2.2
Contact-associated OR connection................................................................13
2.2.3
2.2.4
2.3
NOT-function......................................................................................................16
2.3.1
2.3.2
2.3.3
2.4
2.5
2.6
2.7
The inhibition......................................................................................................26
3.2
Function tables...................................................................................................27
3.3
3.4
3.5
3.6
3.7
3.8
EXERCISES ...............................................................................................................35
DIGITAL TECHNIQUE 2
LEARNING OBJECTIVES
DIGITAL TECHNIQUE 2
BINARY VARIABLES
Closed
open
Accomplished
not accomplished.
NOTE:
Two mutually exclusive states are called BINARY STATES.
0 means:
Often the symbols L and 0 are used instead of 1 and 0, to be distinguished from the
decimal system. Lately, the allocation H (= high) and L (= low) has been in use, especially
for data sheets; thus, H = 1, L = 0.
The technical realisation of binary states is very simple. Every switch, for example, has
only two states: ON - OFF.
1.1
Truth Table
For Illustration of the functional relationship between the independent Input variables A
and B, and the dependent output variables Q, the so-called truth or function tables are
used.
Example for a simple truth table:
1.2
Logic Types
In electronic digital technology, usually electric potentials are being allocated to the binary
states 1 and 0. Depending on the allocation, we talk of positive logic, negative logic, or
neutral logic.
For a positive logic, the 1 -signal is more positive than the 0-signal.
In negative logic, the 1 -signal is more negative than the 0-signal.
1.2.1
Positive logic
1.2.2
Negative logic
1.2.3
Neutral logic
As the figure shows, the 1- or 0-signal corresponds to a defined voltage value with a
certain range of tolerance.
It has been mentioned before that nowadays in many papers, descriptions , and data
sheets the terms Low (L) and High (H) are used today instead of 0 and 1 (0 and L). This is
the so-called neutral logic and it is used to express that the H signal is more positive than
the L-signal, with the potentials also sometimes being negative.
These terms come from US language usage; they avoid the difficulties in expressing
positive and negative logics. In case of circuit-related technical problems, L and H provide
reasonable explanations of theoretical principles,
For realisations, 1 and 0 seem can be more easily understood, especially truth tables
displaying 1 and 0 are much more clear.
All logic decisions of binary data processing can be realised with the three basic functions
AND, OR, and NOT.
2.1
2.1.1
AND function
Symbol:
Old:
New:
The AND function has at least two Input variables (A, B, ...).
The output Q has the "1" signal if all inputs have the "1" signal.
Example:
The elevator starts as soon as the door is closed and after the floor
2.1.2
Description:
Only after the switches A and B and C have been closed, the output Q (contactor coil) will
be energized.
10
Truth table:
Function:
Q=ABC
That is:
Q is equal to A and B and C
Symbol:
2.1.3
Circuit possibilities:
11
Description:
If the Inputs A and B are in contact with 0V then both diodes are in conduction direction.
The entire voltage drops at the resistance. The output Q is also in contact with 0V ("0"signal).
If an Input (A or B) is set to a "1" signal, always one diode remains conducting. Only after
both Inputs have the "1" signal no current flows any more via the diodes, so that there is
no voltage drop at the resistance. The output Q carries the "1" signal.
Truth Table:
Function:
Q=AB
Symbol:
Old:
2.1.4
New
Q=A.B
Q=AB
NOTE:
The AND connection has the "1" signal at the output Q only if all inputs A, B, C, also
have the "1" signal.
12
2.2
2.2.1
OR-Function
(Disjunction) OR gate
Symbol:
Old:
New:
2.2.2
Contact-associated OR connection
Description:
Even if only one of the inputs A or B or C is closed, there is voltage at the output Q
(contactor coil).
13
Truth table:
Function:
Q=AvBvC
This means:
Q equals A or B or C
Symbol:
Old:
2.2.3
Circuit possibilities:
14
New:
Description:
If both inputs are in contact with OV, no current will flow (no voltage drop at the resistor
R). The output Q has the "0" signal.
If a "1" signal is applied to one of the two inputs then one of the two diodes becomes
conducting. The entire voltage drops at the resistor R.
The output Q has the "1" signal.
Truth table:
Function:
Q=AvB
Old:
2.2.4
New:
A=A+B
NOTE:
The OR connection has the "1" signal at the output Q if at least one Input has the "1"
signal.
15
2.3
2.3.1
NOT-function
Symbols:
Old:
New:
2.3.2
Contact-associated NOT-function
Description:
The alarm siren does not sound if the relay is under voltage.
Truth table:
Function:
16
2.3.3
Wiring possibilities:
Description:
If Input A has a "0" signal, the transistor is locked, Q has a "1" signal.
If Input A has a "1" signal, the transistor is conducting, Q has a "0" signal.
Truth table:
Function:
NOTE:
The transistor activates a Signal conversion.
17
2.4
NAND function
Symbol:
Old:
New:
Truth table:
Function:
Description:
If there is a 0" signal on both inputs (transistors are locked) then output Q has a "1"
signal:
18
If a "1" signal is applied to one of the inputs, still one of the transistors will remain locked.
Output Q has a "1" signal.
Only if both inputs have the "1" signal then current will flow (IC) and the output Q will have
the 0 Signal.
19
2.5
AND-NAND Function
Symbol
Old:
New:
Circuit:
Truth table:
Function:
20
2.6
NOR Function
Symbol
Old:
New:
Truth table:
Function:
Description:
If the inputs A and B have a "0" signal, then both transistors are locked, Output Q has the
"1" signal. If a "1" signal is applied to the basis of a transistor, then the transistor performs
a fully advanced control, current flows (IC) and the entire voltage drops at the resistor
(RC). The output Q has a "0" signal.
21
2.7
OR-NOR function
Symbol:
Old:
New
Circuit:
Truth table:
Function:
22
Exercises:
On the basis of the texts, prepare a logic circuit with the associated formula:
1. If you want to smoke, several criteria will have to be fulfilled until the cigarette of the
pipe is burning:
a) Cigarette AND fire AND the desire to smoke,
OR
b) b) Pipe AND tobacco AND fire AND the desire to smoke.
Furthermore, it must be assured that
c) you do NOT sleep OR sleep at that moment
Solve the exercise with "AND", "OR" and "NOT".
Logic diagram:
Function:
23
A=
main motor
B=
C=
pedal
D=
E=
F=
G=
H=
K=
24
OR if
the two-hand safety device G is switched on AND the pushbuttons H and K have been
pressed by the operator
the pedal C has been actuated AND, furthermore, the light barrier D is NOT
interrupted
Function:
25
3.1
LOGIC FUNCTIONS
The inhibition
The inhibition is a special form of the conjunction (AND form). One of the two Input
quantities is first negated.
Is inhibition A
Is inhibition B
Inhibition A:
Inhibition B:
Inhibition A:
Symbol:
Inhibition B:
Symbol:
26
3.2
Function tables
3.3
The implication is a special form of disjunction (OR-function). One of the two Input
quantities is first negated.
Is implication A
Is implication B
Implication A:
Implication B:
Implication A:
Symbol:
27
Implication B:
3.4
Symbol:
Symbol:
Old:
New:
The output of the anti-valence circuit has the "1" signal if the two Inputs don't have the
same signals.
28
Truth table:
Except for the last line the result is equal to an OR function. This means that the last
combination is excluded.
Its name, therefore: "EXCLUSIVE-OR = XOR.
3.5
29
Truth table:
Function:
3.6
Symbol:
Old:
New
The output of the equivalency circuit has the "1" signal if both inputs have the same
signal.
30
Truth table:
The switching operation is a negation of the XOR function. Consequently, its name:
"NOXOR" from NOT EXCLUSIVE OR.
31
3.7
Truth table:
Function:
32
3.8
"0000"
2. constant 1
"1111"
3. Identity A
"0011"
4. Identity B
"0101"
33
34
EXERCISES
35
b) Draw the Logic circuit for the following contact circuits, prepare the truth table and the
function
36
c)
Write the function from this logic circuit and draw the contact circuit.
d)
Draw the logic and contact circuits and prepare the truth table for this function:
Truth table:
37
38
DIGITAL TECHNIQUE 2
TEST 1
1. Draw an AND circuit with diodes for three Input variables and prepare the related
Truth table.
3. The signal-time diagram of two Input variables has the following picture.
Draw the output signal for a XOR.
39
6. Draw and name the logic symbols of the two outputs of this signal-time diagram.
7. Which logic function has the "1" signal at the output Q if the Input variable A is smaller
than the variable B?
8. Name two gate types with which all logic circuit problems can be solved.
40
9. Which logic function has the "1" signal at the output Q if at least one Input variable has
the "0" signal?
11. Draw an OR circuit with diodes for three Input variables and prepare the associated
truth table.
13. The signal-time diagram of two Input variables has the following picture.
Draw the output signal for a NOXOR.
14. Draw the logic circuit of an inhibition B. Prepare the associated truth table and the
function.
41
16. Draw and name the logic symbols of both outputs of this signal-time
17. Which logic function has a "0" signal at the output Q if the Input variable A is smaller
than the variable B?
42
18. Which logic function has the "0" signal at the output Q if at least one Input variable has
the "1" signal?
43
DIGITAL TECHNIQUE 2
TEST 1
(Solution)
1.
2.
3.
44
4.
5.
6.
7.
45
9. NAND -function
10.
11.
46
12.
13.
14.
47
15.
16.
17. Implication B
48
19.
20.
49
KEY TO EVALUATION
PER CENT
MARK
88 100
75 87
62 74
50 61
0 49
50