








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This is lab manual for Digital Logic Design and Electronics course lab. It was given by Prof. Urvashi Sarin at Bengal Engineering and Science University. It includes: Digital, Logic, Elements, Clock, Memory, Elements, Analog, Electronics, ADC, Analog, Converter
Typology: Exercises
1 / 14
This page cannot be seen from the preview
Don't miss anything!









Experiment #9 9.1 Fall 1999
This experiment introduces the fundamental circuit elements of digital electronics. These include a basic set of three LOGIC GATES which suffice to build anything digital; the “555” TIMER as a source of logic signals, and two types of memory element. Boolean Algebra, the mathematics of two-valued variables, will be used to design digital circuits.
Most physical quantities can assume any value within some continuous range; this value varies with time in a dynamic process. The output voltage of a transducer that observes it will change with time in an analogous way. Such continuous signals, V = V(t), are called analog signals, and circuits which preserve the information in this form, such as linear amplifiers and sine-wave oscillators, are collectively known as “Analog Electronics.”
In contrast to this, the voltages in digital circuits have only two states: HIGH and LOW. Information is conveyed by the pattern of HI and LO voltages. These may occur at the same time in a set of parallel wires (parallel or combinational logic); or as a time sequence of HIGH’s and LOW’s moving along a single wire (sequential logic).
Analog information can be translated into digital form by an Analog-to-Digital Converter (ADC). A set of N on/off values or BITS has 2N possible different values. If you try to represent a voltage, V, by a 7 bit sequence, your uncertainty will be about 1%, since there are 2^7 = 128 possible combinations of digital values. A higher accuracy needs more digits or bits.
Experiment #9 9.2 Fall 1999
Logic states
The voltage in a digital circuit is allowed to be in only one of two states: HIGH and LOW. We usually abbreviate these as HI and LO.
HI is taken to mean logical (1) or logical TRUE. LO is taken to mean logical (0) or logical FALSE.
In the TTL logic family (see Fig. 9.1 on following page):
Any voltage in the range 2.8 to 5.0 V is HI. Any voltage in the 0 to 0.8 V is LO. Any voltage outside this range is undefined, and therefore illegal, except briefly during transitions.
We will refer to HI as the “5 volt” level, and LO as the “ 0 volt” level.
Experiment #9 9.4 Fall 1999
Figure 9.1. Basic logic operations and gates.
0
Volts
Time
HIGH
LOW typical 0.4 V
Transition from LOW to HIGH
TTL logic levels
typical 3.5 V
Logical States Logical “1” = YES = TRUE = Switch closed = +5 V (TTL Logic) Logical “0” = NO = FALSE = Switch opened = 0 V (TTL)
Basic Logic Operation
Operation Switches Condition that circuit is closed
Boolean Notation
Symbol Truth Table
Series
(A AND B are closed)
A • B or AB
A B
A. B
A B A. B 0 0 0 0 1 0 (^1 0 ) 1 1 1
OR
Parallel
(A OR B is closed) (^) A + B A B
A+B
A B A + B 0 0 0 0 1 1 (^1 0 ) 1 1 1
NOT Same as invert
Different switch
1 means open 0 means closed
0 1 1 0
_
Other Gates NAND A B
Experiment #9 9.5 Fall 1999
Fundamental laws
We imagine a logical variable, A , that takes on the values 0 or 1. If A = 0 then A = 1 and if A = 1 then A = 0 OR AND NOT A + 0 = A A • 0 = (^0) A + A = 1 A + 1 = 1 A • 1 = A A^ •^ A^ =^0 A + A = A A • A = A A = A A + A = 1 A^ •^ A^ =^0
Equality
Two Boolean expressions are equal if and only if their truth tables are identical.
Associative Laws
Distributive Laws
Related identities:
DeMorgan’s Theorems
A • B • K = A + B +K A + B +K = A • B • K
Example of Method of Proof:
Here’s an example of proving theorems by direct comparison of truth tables. We take on DeMorgan’s first theorem for two variables, AB = A + B :
A B AB (^) AB 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0
Experiment #9 9.7 Fall 1999
logic values of the earlier signals. The fundamental circuit is the RS memory element. The JK flip-flop possesses external controls over the input to an RS memory that lies at its core.
RS (Reset-Set Memory) Element
The truth table shows how the circuit remembers. Suppose that it is originally in a state with Q= and R=S=0. A positive pulse, S, at the input sets it into the state Q=1, where it remains after S returns to zero. A later pulse, R, on the other input resets the circuit to Q=0, where it remains until the next S pulse.
JK Flip Flops. (74107)
There are three kinds of input to the JK flip flop:
There are two outputs, Q and its complement.
In the absence of a clock pulse, the output remains unchanged at the previously acquired value, Qn , which is independent of the present-time data inputs J and K. Only on arrival of a clock
pulse, C, can the output change to a new value, Qn + 1. The value of Qn + 1 depends on the J and K
inputs just before the clock pulse in the way specified in the truth table. The change occurs at the
Signals R S
Q
R
S
Q = R + P
P = S + Q
Circuit Symbol
R
S
Q
Q
Truth Table S R Q P=Q 0 0
1 1
0 0 1 1
Stays the same 1 0 0 1 0 0 Disallowed SET RESETtime P = Q
Fig. 9.4. RS memory element.
JK Flip Flop (74107) (^) J K Q n+1 Qn+ 0
0
(^1 ) 0 1
time
Q
Q
J
K
C (^) Outputs
CLR Direct Input
Clock Input
Data inputs C
Qn Qn+
CLR C 1 1 1 1 0 anything (^0 )
Qn
Qn Qn
Qn
Always
Toggle mode
Stays the same ( = J) ( = J)
Boolean Expression: Qn+1 = (CLR)(JnKn+JnKnQn+JnKnQn) Fig. 9.5. JK flip-flop description.
Experiment #9 9.8 Fall 1999
downward going trailing edge of the clock pulse, as indicated by the downward arrow in the truth table.
The direct input, CLR, overrides the clock and data inputs. During normal operation, CLR = 1. At the moment CLR goes to zero, the output goes to zero and remains there so long as CLR = 0. All these options are contained in the Boolean expression in the figure.
555 Timer and digital clock
1
2 3
4
8
6
5
7
GND
TRIG
OUT
RST
DIS
THR
BYP
(b) Pin layout
DC supply 8 Control Voltage
5 Threshold 6
Trigger 2
5 kΩ
5 kΩ
Reset 4 Discharge 7 Ground (^1)
5 kΩ
R
S
Q
Clear
Output
3
Upper Comparitor
Lower Comp.
Output Amplifier
Discharge switch
(a) Block diagram of "555" V+
Figure 9.6 555 Timer chip
Experiment #9 9.10 Fall 1999
7400 Series TTL Chips
Normal supply voltage: +5.0 V Absolute maximum: +5.5 V Current: Types 7400, 7402, 7404: 12mA per chip. Type 7486: 30mA per chip.
Experiment #9 9.11 Fall 1999
Suggestions
Fig. 9.8. Pin arrangements for TTL chips.
Experiment #9 9.13 Fall 1999
The RS memory
The TTL digital clock
The JK Flip-flop.
555 Clock
10X Probe
5V 0V Panel Switch
CH. 1.
CH. 4./ Trig.
Counter/ Timer
SCOPE
Set to Totalize
VB
Fig. 9.10. Digital clock and stop-watch.
Experiment #9 9.14 Fall 1999
555 Clock
5V 0V Panel Switch
CH. 1.
CH. 4./ Trig.
SCOPE J
K
C
Q
Q
CLR 5V or 0V
}
Wires from 5V or 0V
Fig. 9.11. JK test circuit.