Lab Manual - Analog & Digital Electronics (ESC 301)
Lab Manual - Analog & Digital Electronics (ESC 301)
LAB MANUAL
Code: ESC-301
Website: https://www.hetc.ac.in/
1
EXPERIMENT – 1
1.1. TITLE: Introduction (Familiarization with basic gates and universal gates).
1.3. THEORY:
Logic gates are idealized or physical devices implementing a Boolean function, which it performs a
logical operation on one or more logical inputs and produce a single output. Depending on the context, the
term may refer to an ideal logic gate, one that has for instance zero rise time and unlimited fan out or it
may refer to anon-ideal physical device. The main hierarchy is as follows:
1.3.1.1. AND GATE: The AND gate performs a logical multiplication commonly known as AND
function. The output is high when both the inputs are high. The output is low level when any one of the
inputs is low. 7408 is the two Inputs AND gate IC. A & B are the Input terminals & Y is the Output
terminal. Its logical equation is, Y = A.B.
1.3.1.1.1. SYMBOL:
2
1.3.1.1.3. TRUTH TABLE:
Input Output
A B Y
0 0 0
0 1 0
1 0 0
1 1 1
1.3.1.2. OR GATE: The OR gate performs a logical addition commonly known as OR function. The
output is high when any one of the inputs is high. The output is low level when both the inputs are low.
7432 is the two Input OR gate IC. A & B is the input terminals & Y is the Output terminal. Its logical
equation is, Y = A + B.
1.3.1.2.1. SYMBOL:
Input Output
A B Y
0 0 0
0 1 1
1 0 1
1 1 1
1.3.1.3. NOT GATE: The NOT gate is called an inverter. The output is high when the input is low. The
output is low when the input is high. It has one input (A) & one output (Y). IC No. is 7404. Its logical
equation is, Y = A.
3
1.3.1.3.1. SYMBOL:
Input Output
A Y
0 1
1 0
1.3.1.4. NAND GATE: The NOT-AND operation is known as NAND operation. NAND gate is inverted
AND gate. The output is high when both inputs are low and any one of the input is low. The output is low
level when both inputs are high. The IC no. for NAND gate is 7400. Its logical equation is, Y = (A. B).
1.3.1.4.1. SYMBOL:
4
1.3.1.4.3. TRUTH TABLE:
Input Output
A B Y
0 0 1
0 1 1
1 0 1
1 1 0
1.3.1.5. NOR GATE: The NOT- OR operation is known as NOR operation. NOR gate is inverted OR
gate. The output is high when both inputs are low. The output is low when one or both inputs are high.
The IC no. for NOR gate is 7402. Its logical equation is, Y = (A + B).
1.3.1.5.1. SYMBOL:
Input Output
A B Y
0 0 1
0 1 0
1 0 0
1 1 0
1.3.1.6. XOR GATE: XOR gate is not a basic gate. XOR operation can be performed using basic gates.
Output of XOR gate is high when any one of the inputs is high. The output is low when both the inputs
are low and both the inputs are high. The IC no. for XOR gate is 7486. Its logical equation is, Y= A⊕B.
5
1.3.1.6.1. SYMBOL:
Input Output
A B Y
0 0 0
0 1 1
1 0 1
1 1 0
1.3.1.7. XNOR GATE: XNOR operation can also be performed using basic gates. Output of XNOR gate
is high when both the inputs are low and both the inputs are high. The output is low when any one of the
inputs is high. The IC no. for XNOR gate is 74266. Its logical equation is, Y=A⊙B.
1.3.1.7.1. SYMBOL:
6
1.3.1.7.2. PIN DIAGRAM:
Input Output
A B Y
0 0 1
0 1 0
1 0 0
1 1 1
a. TTL family is the fastest saturating logic family (working in between the saturation and cut-off
modes). Also, TTL gates are available in a variety of forms, such as high-speed TTL, high-speed
Schottky TTL, low-power TTL etc.
b. Typical supply voltage is only +5 V with a permitted variation of ±0.25 V. At present, TTL gates of
3-volt and even to 1.5-volt supply are possible.
c. It has good noise immunity. Typical noise-margin is about 0.4 V.
d. Power dissipation is in the range of several mW only. In the case of low-power Schottky TTL gates,
this is less than 2 mW per gate.
e. TTL gates are compatible with other logic families.
f. Commercial and military versions of TTL gates are available.
g. These gates are more freely available in the open market than most other logic families.
h. Good fan-out; TTL gates can drive up to 10 gates.
i. TTL gates producing almost all of the logic functions are available in the market.
j. TTL gates exhibit low output impedance for high/low states.
7
e. TTL gates generate transient voltages at switching instants.
f. Wired-OR capability is not possible for the conventional TTL gates; open-collector gates are required
for this application.
1.3.1.10. APPLICATIONS OF TTL GATES: Before the advent of VLSI devices, TTL integrated
circuits were a standard method of construction for the processors of minicomputer and
midrange mainframe computers, such as the DEC VAX and Data General Eclipse; however some
computer families were based on proprietary components (e.g. Fairchild CTL) while supercomputers and
high-end mainframes used Emitter-coupled logic. They were also used for equipment such as machine
tool numerical controls, printers and video display terminals, and as microprocessors became more
functional for "glue logic" applications, such as address decoders and bus drivers, which tie together the
function blocks realized in VLSI elements. The Gigatron TTL is a more recent (2018) example of a
processor built entirely with TTL integrated circuits.
1.3.2. BREADBOARD: The breadboard is organized into rows (1, 2, 3, 4,…) and columns (A, B, C,
D,…J) of electrical sockets. The figure below depicts the photograph of a breadboard. Those rows and
columns can be further subdivided into groups. The breadboards that are provided with the logic trainer
have pairs of columns with + and – labels (usually between red and blue lines). These are power rails or
buses that are used to supply a common voltage (+5V or +12V) and a common ground to the circuits in
the main part of the board. Good bus management will save you time and trouble with complicated
circuits by simplifying circuit wiring and by removing unnecessary clutter. Clutter is your enemy in
building circuits. Between the power rails are groups of sockets that will be used to build the circuit and,
within these groups of sockets, only the rows of sockets are electrically connected. The two groups across
the central gap are not connected.
To prevent damage to the breadboard sockets, use 22-gauge solid wire to make connections. Cut the wires
to the correct length or use the pre-cut wires. If needed strip about 1/2” of insulation from each end and
push the bare wires into the breadboard sockets until they bottom out. Forcing wires or component leads
into the board will damage the internal socket connections or make for an intermittent connection. If wires
or component leads do not fit easily into the breadboard, they may be too thick for the breadboard sockets.
To keep the circuit organized and easier to troubleshoot use colored wires to make your wiring easier to
follow and locate signals. For example, red wires for power connections, black or green wires for ground
connections, and other colored wires for signals. Use the shortest wire possible to make the electrical
connection.
8
1.3.2.1. ADVANTAGES OF DESIGNING WITH BREADBOARDS:
a. It is adjustable.
b. It acts as a shield.
c. It is flexible.
d. Makes it easy for testing.
1.3.2.2. DISADVANTAGES OF DESIGNING WITH BREADBOARDS:
1.4. PROCEDURE:
I. Place the breadboard gently on the observation table.
II. Fix the IC which is under observation between the half shadow line of breadboard, so there is no
shortage of voltage.
III. Connect the wire to the main voltage source (Vcc) whose other end is connected to last pin of the IC
(14 place from the notch).
IV. Connect the ground of IC (7th place from the notch) to the ground terminal provided on the digital
lab kit.
V. Give the input at any one of the gate of the ICs i.e. 1st, 2nd, 3rd, 4th gate by using connecting wires.
(In accordance to IC provided).
VI. Connect output pins to the led on digital lab kit.
VII. Switch on the power supply.
VIII. If LED glows red then output is true, if it glows green output is false, which is numerically
denoted as 1 and 0 respectively.
Input Output
A B Y
9
1.5.2. TRUTH TABLE OF OR GATE:
Input Output
A B Y
Input Output
A Y
Input Output
A B Y
Input Output
A B Y
Input Output
A B Y
10
Input Output
A B Y
1.6. RESULT:
Thus the logic gates are studied and their truth tables were verified.
1.7. PRECAUTIONS:
1.8. CONCLUSION:
11
EXPERIMENT – 2
2.1. TITLE: Design a Full Adder using basic gates and verify its output / Design a Full Subtractor circuit
using basic gates and verify its output.
2.3. THEORY: A combinational logic circuit is a type of digital circuit that uses logic gates to implement
Boolean functions. The output of a combinational logic circuit only depends on the current combination
of inputs, regardless of the previous state.
2.3.1. HALF ADDER: An adder, or summer is a digital circuit that performs addition of numbers. The
half adder adds two single binary digits A and B. It has two outputs, sum (S) and carry (C).
Input Output
A B S C
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
12
2.3.1.3. HALF ADDER USING BASIC GATES:
2.3.2. FULL ADDER: A full adder adds binary numbers and accounts for values carried in as well as out.
A one-bit full adder adds three one-bit numbers, often written as A, B, and Cin; A and B are the operands,
and Cin is a bit carried in from the previous less-significant stage. The circuit produces a two-bit output
such as sum (S) and carry (Cout).
Input Output
A B Cin S Cout
0 0 0 0 0
0 0 1 1 0
0 1 0 1 0
0 1 1 0 1
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1
13
2.3.2.2. K-MAP FOR SUM AND CARRY FOR FULL ADDER:
2.3.3. HALF SUBTRACTOR: A subtractor is a digital circuit that performs subtraction of numbers.
Subtractor can be designed using the same approach as that of an adder. The half subtractor is a
14
combinational circuit which is used to perform subtraction of two bits. It has two inputs, the minuend X
and subtrahend Y and two outputs the difference (D) and borrow (B).
Input Output
X Y D B
0 0 0 0
0 1 1 1
1 0 1 0
1 1 0 0
15
b. Half subtractor is used in ALU (Arithmetic Logic Unit) of computer processors to add binary bits.
2.3.4. FULL SUBTRACTOR: The full subtractor is a combinational circuit which is used to perform
subtraction of three input bits: the minuend X, subtrahend Y, and borrow in Bin. The full subtractor
generates two output bits: the difference (D) and borrow (Bout). Bin is set when the previous digit is
borrowed from X.
Input Output
X Y Bin D Bout
0 0 0 0 0
0 0 1 1 1
0 1 0 1 1
0 1 1 0 1
1 0 0 1 0
1 0 1 0 0
1 1 0 0 0
1 1 1 1 1
16
2.3.4.4. ADVANTAGES OF FULL SUBTRACTOR:
a. Full subtractors are used in ALU (Arithmetic Logic Unit) in computers CPUs.
b. Full subtractors are extensively used to perform arithmetical operations like subtraction in electronic
calculators and many other digital devices.
c. Full subtractors are used in different microcontrollers for arithmetic subtraction.
d. They are used in timers and program counters (PC).
2.4. PROCEDURE:
Input Output
A B Cin S Cout
Input Output
X Y Bin D Bout
17
2.6. RESULT:
Thus full adder and full subtractor were designed and their truth tables were verified.
2.7. PRECAUTIONS:
2.8. CONCLUSION:
18
Q24. What is difference between half adder and half subtractor?
Q25. If input of half subtractor is 11 then output is?
Q26. In Full Subtractor how many inputs are used?
Q27. In output of Full Subtractor what we gate?
Q28. In Full Subtractor Difference=?
Q29. How many NAND gate required to make a Full Subtractor?
Q30. In Full Subtractor how many Half Subtractor are required?
Q31. Draw the full subtractor diagram?
19
EXPERIMENT – 3
3.1. TITLE: Construction of simple Decoder & Multiplexer circuits using logic gates.
3.3. THEORY: A combinational logic circuit is a type of digital circuit that uses logic gates to implement
Boolean functions. The output of a combinational logic circuit only depends on the current combination
of inputs, regardless of the previous state.
3.3.1. DECODER: A decoder is a combinational logic circuit that converts binary information from the n
coded inputs to a maximum of 2n unique outputs. They are utilized in a wide variety of applications,
including instruction decoding, data multiplexing and data demultiplexing, seven segment displays, and as
address decoders for memory and port-mapped input/output.
Input Output
E A1 A0 Y3 Y2 Y1 Y0
0 × × 0 0 0 0
1 0 0 0 0 0 1
1 0 1 0 0 1 0
1 1 0 0 1 0 0
1 1 1 1 0 0 0
20
3.3.1.2. K-MAP FOR OUTPUTS OF 2×4 DECODER:
a. Increased flexibility: Binary decoders provide a flexible way to select one of multiple outputs based
on a binary code, allowing for a wide range of applications.
b. Improved performance: By converting a serial code into a parallel set of outputs, binary decoders
can improve the performance of a digital system by reducing the amount of time required to transmit
information from a single input to multiple outputs.
c. Improved reliability: By reducing the number of lines required to transmit information from a single
input to multiple outputs, binary decoders can reduce the possibility of errors in the transmission of
information.
21
3.3.1.6. APPLICATIONS OF DECODER:
a. Converting digital signals into analogue signals, which are more suitable for human senses.
b. Inputting data to a specified output line, as in addressing core memory.
c. Code conversions.
d. Minimizing the effects of system decoding in high-performance memory systems.
3.3.2. MULTIPLEXER: A multiplexer (or mux), also known as a data selector, is a device that selects
between several analog or digital input signals and forwards the selected input to a single output line. The
selection is directed by a separate set of digital inputs known as select lines. A multiplexer of 2n inputs has
n select lines, which are used to select which input line to send to the output.
22
3.3.2.3. 4:1 MULTIPLEXER USING BASIC GATES:
a. Communication System.
b. Computer Memory.
c. Computer System of a Satellite Transmission.
d. Telephone Network.
23
3.4. PROCEDURE:
Input Output
E A1 A0 Y3 Y2 Y1 Y0
3.6. RESULT:
Thus, Decoder & Multiplexer circuits were designed and their truth tables were verified.
3.7. PRECAUTIONS:
3.8. CONCLUSION:
24
Q5. What is digital multiplexer?
Q6. How many 4:1 multiplexer will be required to design 8:1 multiplexer?
25
EXPERIMENT – 4
4.1. TITLE: Realization of S-R/ J-K / D flip flops using logic gates.
4.3. THEORY: Sequential circuits are digital circuits that store and use the previous state information to
determine their next state. Unlike combinational circuits, which only depend on the current input values to
produce outputs, sequential circuits depend on both the current inputs and the previous state stored in
memory elements. Sequential circuits are commonly used in digital systems to implement state machines,
timers, counters, and memory elements. Block disgram of sequential circuit is represented below.
4.3.1. S-R FLIP FLOP: It is a sequential circuit with two inputs, one is S and other is R. S here stands
for Set and R here stands for Reset. Set basically indicates set the flip flop which means output 1 and reset
indicates resetting the flip flop which means output 0. Here clock pulse is supplied to operate this flop
flop, hence it is clocked flip flop.
26
4.3.1.1. TRUTH TABLE FOR S-R FLIP FLOP:
S R Qn+1 State
0 0 Qn Hold
0 1 0 Reset
1 0 1 Set
1 1 × Invalid
Qn S R Qn+1
0 0 0 0
0 0 1 0
0 1 0 1
0 1 1 ×
1 0 0 1
1 0 1 0
1 1 0 1
1 1 1 ×
27
4.3.1.4.2. S-R FLIP FLOP CONSTRUCTION USING 4 NAND GATES:
Sequential logic circuits, as opposed to combinational logic circuits, depend not only on the present inputs
but also on past inputs. They utilize memory elements like flip flops to remember past data. The S-R flip
flop is a primary example of a memory element in sequential logic circuits. By capturing and storing
binary values, S-R flip flops contribute significantly to the operation of sequential logic systems.
SR Flip-flops serve a vital role in many different types of digital electronics systems. They are used
extensively in memory devices and data storage applications due to their ability to retain a binary state.
This is particularly important for computer systems, where reliable data storage and retrieval is critical.
Besides, they are also used in counters and shift registers, allowing for the storage and shifting of binary
data. In such applications, multiple flip-flops are connected in a chain, with the output of one flip-flop
connected to the input of the next.
4.3.2. J-K FLIP FLOP: A J-K flip-flop is a sequential bi-state single-bit memory device. In general it
has one clock input pin (CLK), two data input pins (J and K), and two output pins (Q and Q̅).
28
4.3.2.1. TRUTH TABLE FOR J-K FLIP FLOP:
J K Qn+1 State
0 0 Qn Hold
0 1 0 Reset
1 0 1 Set
1 1 Qn Toggle
Qn S R Qn+1
0 0 0 0
0 0 1 0
0 1 0 1
0 1 1 1
1 0 0 1
1 0 1 0
1 1 0 1
1 1 1 0
29
4.3.2.4.2. J-K FLIP FLOP CONSTRUCTION USING 4 NAND GATES:
a. Versatility: Among the basic flip-flops, the J-K flip-flop is the most versatile.
b. Improved variation: It is an improved variation of the SR Flipflop.
c. Speed: The J-K flip flop is much faster than other flip-flops.
d. Toggle state: The J-K flip flop has a toggle state.
4.3.2.6. DISADVANTAGES OF J-K FLIP FLOP:
a. Complexity: The JK flip-flop is more complex than some other types of flip-flops, which can make it
more difficult to design and implement in digital systems.
b. Power consumption: The JK flip-flop can consume more power than other types of flip-flops,
especially when used in toggle mode.
c. Timing problem: The JK flip-flop has a timing problem known as “RACE”. The condition of RACE
arises if the output Q changes its state before the timing pulse of the clock input has time to go in
OFF state. This condition is not possible always thus a much-improved flip-flop named Master Salve
JK Flip Flop was developed. This eliminates all the timing problems by using two RS flip-flop
connected in series.
4.3.2.7. APPLICATIONS OF J-K FLIP FLOP:
a. Shift registers.
b. Storage registers.
c. Counters and control circuits.
30
4.3.3. D FLIP FLOP: D flip flop is an electronic devices that is known as “delay flip flop” or “data flip
flop” which is used to store single bit of data. The D flip flop has two inputs, data and clock input which
controls the flip flop. when clock input is high, the data is transferred to the output of the flip flop and
when the clock input is low, the output of the flip flop is held in its previous state.
D Qn+1 State
0 0 Reset
1 1 Set
Qn D Qn+1
0 0 0
0 1 1
1 0 0
1 1 1
31
4.3.3.4. D FLIP FLOP USING LOGIC GATES:
32
4.4. PROCEDURE:
S R Qn+1 State
J K Qn+1 State
D Qn+1 State
4.6. RESULT:
Thus, S-R, J-K & D Flip flops were designed using logic gates and their truth tables were verified.
4.7. PRECAUTIONS:
4.8. CONCLUSION:
33
Q3. What are the inputs of J-K Flip flop where this race around condition occurs?
Q4. When S-R Flip flop is said to be in a SET state?
Q5. When S-R Flip flop is said to be in a RESET state?
Q6. What is the truth table of J-K Flip flop?
Q7. What is the function of clock signal in Flip flop?
Q8. What is the advantage of J-K Flip flop over S-R Flip flop?
Q9. In D Flip flop input is 0 what is output?
Q10. What type of Flip flop you can use in memory?
Q11. What type of Flip flop you can use in counter circuit?
34
EXPERIMENT – 5
5.1. TITLE: Design of Shift Register using J-K Flip Flop / D Flip Flop.
5.3. THEORY: A shift register is a type of digital circuit using a cascade of flip-flops where the output of
one flip-flop is connected to the input of the next. They share a single clock signal, which causes the data
stored in the system to shift from one location to the next. Shift registers can have
both parallel and serial inputs and outputs. These are often configured as “Serial-in serial-out (SISO)”,
“Serial-in parallel-out (SIPO)” and “Parallel-in serial-out (PISO)”. There are also types that have both
serial and parallel input and types with serial and parallel output. There are also "bidirectional" shift
registers, which allow shifting in both directions: L → R or R → L. A PIPO register (parallel-in parallel-
out) is very fast – an output is given within a single clock pulse.
35
5.3.1. SERIAL-IN/SHIFT-RIGHT/SERIAL-OUT OPERATION: Data is shifted in the right hand
direction one bit at a time with each transition of the clock signal. The data enters the shift register serially
from the left hand side and after four clock transitions the 4-bit registers has 4-bits of data. The data is
shifted out serially one bit at a time from the right hand side of the register if clock signals are
continuously applied. Thus after 8 clock signals the 4-bit data is completely shifted out of the shift
register.
Serial shift registers can be implemented using any type of flip-flops such as J-K Flip Flop / D Flip Flop.
Serial shift register implemented using J-K Flip Flop and D flip-flops are represented below.
36
5.3.4. TIMING DIAGRAM OF A SERIAL-IN/SHIFT-RIGHT/SERIAL-OUT REGISTER:
Outputs �� �� �� ��
Reset 0 0 0 0
CLK pulse 1 1 0 0 0
CLK pulse 2 0 1 0 0
CLK pulse 3 0 0 1 0
CLK pulse 4 0 0 0 1
37
d. Delay line.
e. Serial to parallel converter.
f. Parallel to serial converter.
g. Ring counter.
h. Twisted ring counter or Johnson counter.
5.4. PROCEDURE:
I. Connections are given as per circuit diagram.
II. Logical inputs are given as per circuit diagram.
III. Observe the output and verify the truth table.
Outputs �� �� �� ��
Reset
CLK pulse 1
CLK pulse 2
CLK pulse 3
CLK pulse 4
5.6. RESULT:
Thus the Shift registers were designed and their truth table is verified.
5.7. PRECATIONS:
• All connections should be made neat and tight.
• Digital lab kits and ICs should be handled with utmost care.
• While making connections main voltage should be kept switched off.
• Never touch live and naked wires.
5.8. CONCLUSION:
38
Q9. What is parallel loading?
Q10. What is the serial output?
Q11. What is the parallel output?
Q12. What are shift registers?
Q13. What is the basic difference between a shift register and a counter?
Q14. How will you use a shift register to multiply or divide a binary number by 2?
Q15. What is a universal shift register?
39
EXPERIMENT – 6
6.3. THEORY:
It can be seen above, that the external clock pulses (pulses to be counted) are fed directly to each of the J-
K flip-flops in the counter chain and that both the J and K inputs are all tied together in toggle mode, but
only in the first flip-flop, flip-flop FFA (LSB) are they connected HIGH, logic “1” allowing the flip-flop
to toggle on every clock pulse. Then the synchronous counter follows a predetermined sequence of states
in response to the common clock signal, advancing one state for each pulse.
The J and K inputs of flip-flop FFB are connected directly to the output QA of flip-flop FFA, but
the J and K inputs of flip-flops FFC and FFD are driven from separate AND gates which are also supplied
with signals from the input and output of the previous stage. These additional AND gates generate the
required logic for the JK inputs of the next stage.
If we enable each JK flip-flop to toggle based on whether or not all preceding flip-flop outputs (Q) are
“HIGH” we can obtain the same counting sequence as with the asynchronous circuit but without the
ripple effect, since each flip-flop in this circuit will be clocked at exactly the same time.
40
Then as there is no inherent propagation delay in synchronous counters, because all the counter stages are
triggered in parallel at the same time, the maximum operating frequency of this type of frequency counter
is much higher than that for a similar asynchronous counter circuit.
This synchronous counter counts sequentially on every clock pulse the resulting outputs count upwards
from 0 (0000) to 15 (1111). Therefore, this type of counter is also known as a 4-bit Synchronous Up
Counter.
41
6.3.2.3. TRUTH TABLE OF SYNCHRONOUS UP COUNTER:
CLK QD QC QB QA
0 0 0 0 0
1 0 0 0 1
2 0 0 1 0
3 0 0 1 1
4 0 1 0 0
5 0 1 0 1
6 0 1 1 0
7 0 1 1 1
8 1 0 0 0
9 1 0 0 1
10 1 0 1 0
11 1 0 1 1
12 1 1 0 0
13 1 1 0 1
14 1 1 1 0
15 1 1 1 1
6.3.3. SYNCHRONOUS DOWN COUNTER: Synchronous down counter can easily be constructed by
connecting the AND gates to the Q output of the flip-flops (as shown below) to produce a waveform
timing diagram the reverse of the above. Here the counter starts with all of its outputs HIGH (1111) and it
counts down on the application of each clock pulse to zero, (0000) before repeating again.
42
6.3.3.1. STATE DIAGRAM OF SYNCHRONOUS DOWN COUNTER:
43
6.3.3.3. TRUTH TABLE OF SYNCHRONOUS DOWN COUNTER:
CLK QD QC QB QA
0 1 1 1 1
1 1 1 1 0
2 1 1 0 1
3 1 1 0 0
4 1 0 1 1
5 1 0 1 0
6 1 0 0 1
7 1 0 0 0
8 0 1 1 1
9 0 1 1 0
10 0 1 0 1
11 0 1 0 0
12 0 0 1 1
13 0 0 1 0
14 0 0 0 1
15 0 0 0 0
a. Alarm Clock, Set AC Timer, Set time in camera to take the picture, flashing light indicator in
automobiles, car parking control etc.
b. Counting the time allotted for special process or event by the scheduler.
c. The UP/DOWN counter can be used as a self-reversing counter.
d. It is also used as clock divider circuit.
6.4. PROCEDURE:
44
6.5. OBSERVATION TABLE:
CLK QD QC QB QA
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
CLK QD QC QB QA
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
45
6.6. RESULT:
Thus the Counters were designed and their truth table is verified.
6.7. PRECATIONS:
6.8. CONCLUSION:
46
EXPERIMENT – 7
7.3. THEORY:
7.3.1. MOD- N COUNTER: The n-bit counter (consists of n Flip Flops) can count maximum 2�
numbers. Its modulus or MOD number is 2� . For example, 3-bit binary counter is a MOD-8 counter.
This basic counter can be modified to produce MOD numbers less than 2� by allowing the counter to skip
states those are normally part of counting sequence. Let us design MOD-6 counter using J-K Flip Flops.
Step 1: Find number of Flip Flops required to build the counter: If we are designing MOD-N counter
and n number of flip-flops are required then n can be found out by this equation: N <=2n
Here we are designing Mod-6 counter. Therefore, N= 6 and number of Flip flops (n) required is 3.
Step 2: Draw the state diagram: This counter counts from 0 to 5 and again reset to 0.
47
Step 4: Write an excitation table for J-K Flip flops:
48
Step 6: Implementation of the counter:
7.4. PROCEDURE:
49
7.6. RESULT:
Thus the Counter was designed and its truth table is verified.
7.7. PRECATIONS:
7.8. CONCLUSION:
50
EXPERIMENT – 8
8.3. THEORY: A Digital to Analog Converter (DAC) converts a digital input signal into an analog
output signal. The digital signal is represented with a binary code, which is a combination of bits 0 and 1.
The block diagram of DAC is shown in the following figure −
A Digital to Analog Converter (DAC) consists of a number of binary inputs and a single output. In
general, the number of binary inputs of a DAC will be a power of two.
51
8.3.1. TYPES OF DAC: There are two types of DAC: Weighted Resistor DAC and R-2R Ladder DAC.
WEIGHTED RESISTOR DAC: A weighted resistor DAC produces an analog output, which is almost
equal to the digital (binary) input by using binary weighted resistors in the inverting adder circuit. In short,
a binary weighted resistor DAC is called as weighted resistor DAC. The circuit diagram of a 3-bit binary
weighted resistor DAC is shown in the following figure:
The bits of a binary number can have only one of the two values. i.e., either 0 or 1. Let the 3-bit binary
input is �2 �1 �0 . Here, the bits �2 and �0 denote the Most Significant Bit (MSB) and Least Significant Bit
(LSB) respectively. The digital switches shown in the above figure will be connected to ground, when the
corresponding input bits are equal to ‘0’. Similarly, the digital switches shown in the above figure will be
connected to the negative reference voltage, (− VR ) when the corresponding input bits are equal to ‘1’. In
the above circuit, the non-inverting input terminal of an op-amp is connected to ground. That means zero
volts is applied at the non-inverting input terminal of op-amp. According to the virtual short concept, the
voltage at the inverting input terminal of op amp is same as that of the voltage present at its non-inverting
input terminal. So, the voltage at the inverting input terminal’s node will be zero volts. The output voltage
(Vo ) is:
1 1 1
�� = − �� {�2 ( 20 ) + �1 ( 21 ) + �0 ( 22 )}
R-2R LADDER DAC: The R-2R Ladder DAC overcomes the disadvantages of a binary weighted
resistor DAC. As the name suggests, R-2R Ladder DAC produces an analog output, which is almost equal
to the digital (binary) input by using a R-2R ladder network in the inverting adder circuit. The circuit
diagram of a 3-bit R-2R Ladder DAC is shown in the following figure:
52
The bits of a binary number can have only one of the two values. i.e., either 0 or 1. Let the 3-bit binary
input is �2 �1 �0 . Here, the bits �2 and �0 denote the Most Significant Bit (MSB) and Least Significant Bit
(LSB) respectively. The digital switches shown in the above figure will be connected to ground, when the
corresponding input bits are equal to ‘0’. Similarly, the digital switches shown in above figure will be
connected to the negative reference voltage, (− VR ) when the corresponding input bits are equal to ‘1’. It
is difficult to get the generalized output voltage equation of a R-2R Ladder DAC. But, we can find the
analog output voltage values of R-2R Ladder DAC for individual binary input combinations easily.
53
8.3.4. APPLICATIONS OF DAC:
a. Audio Processing.
b. Video Encoding.
c. Digital Display.
d. Calibration.
e. Controlling Motor.
8.4. PROCEDURE:
�2 �1 �0 VO
8.6. RESULT:
Thus the DAC was designed and its truth table is verified.
8.7. PRECATIONS:
8.8. CONCLUSION:
Q1. What is the primary disadvantage of the flash analog-to digital converter (ADC)?
Q2.What is the major advantage of the R/2R ladder digital-to-analog (DAC), as compared to a binary-
weighted digital-to-analog DAC converter?
54
Q3. A 4-bit R/2R digital-to-analog (DAC) converter has a reference of 5 volts. What is the analog output for
the input code 0101.
Q4. What is the resolution of a digital-to-analog converter (DAC)?
55
EXPERIMENT – 9
9.3. THEORY: The amplifier is said to be class A power amplifier if the q point and the input signal are
selected such that the output signal is obtained for a full input cycle. For this class the position of q point
is approximately y at the midpoint of the load line. For all the values of input signal the transistor remains
in the active region and never entire into the cutoff or saturation region. The collector current flows for
3600 (life cycle) of the input signal in other words the angle of the collector current flow is 3600 the class
a amplifiers or furthers classified as directly coupled and transformer coupled and transformer coupled
amplifiers in directly coupled type .The load is directly connected in the collector circuit while in the
transformer coupled type, the load is coupled to the collector using the transformer.
56
9.3.2. ADVANTAGES OF CLASS A AMPLIFIER:
a. Distortion analysis is very important.
b. It amplifies audio frequency signals faithfully hence they are called as audio amplifiers.
9.4. PROCEDURE:
9.5. CALCULATIONS:
Input power: Pdc= VccIc =
Outpower: Pac = VPP2/8RL =
η = Efficiency=output power/input power*100 = Pac /Pdc*100 =
57
9.6.2. OUTPUT:
9.7. RESULT:
9.8. PRECATIONS:
9.9. CONCLUSION:
58
EXPERIMENT – 10
a. Op amp (IC-741).
b. Bread Board.
c. DC Dual power supply.
d. Oscilloscope.
e. Capacitors & Resistors.
10.3. THEORY: The basic RC Oscillator which is also known as a Phase-shift Oscillator, produces a sine
wave output signal using regenerative feedback obtained from the resistor-capacitor combination. This
regenerative feedback from the RC network is due to the ability of the capacitor to store an electric charge.
This resistor-capacitor feedback network can be connected to produce a leading phase shift (phase
advance network) or interchanged to produce a lagging phase shift (phase retard network) the outcome is
still the same as the sine wave oscillations only occur at the frequency at which the overall phase-shift is
360o. By varying one or more of the resistors or capacitors in the phase-shift network, the frequency can
be varied and generally this is done by keeping the resistors the same and using a 3-ganged variable
capacitor. In a Resistance-Capacitance Oscillator or simply an RC Oscillator, we make use of the fact that
a phase shift occurs between the input to a RC network and the output from the same network by using
RC elements in the feedback branch, for example.
10.3.1. RC PHASE-SHIFT NETWORK: The circuit on the left shows a single resistor-capacitor
network whose output voltage “leads” the input voltage by some angle less than 90o. An ideal single-pole
RC circuit would produce a phase shift of exactly 90o, and because 180o of phase shift is required for
oscillation, at least two single-poles must be used in an RC oscillator design. The phase Shift Network is
represented schematically below:
59
10.3.2. CIRCUIT DIAGRAM:
10.4. PROCEDURE:
I. Construct the RC phase circuit on the breadboard as shown in the circuit diagram.
II. Use: V+ = 12 V, V-- = -12 V, Ri = 10kΩ, and Rf = 470kΩ.
III. Capacitor value is 0.0022 uF.
IV. Find fc practically and theoretically.
60
10.5. THEORETICAL FREQUENCY CALCULATION:
10.8. RESULT:
Thus the Oscillator was designed and frequency of oscillation was calculated both theoretically and
practically.
10.9. PRECATIONS:
10.10. CONCLUSION: The practical circuit of RC phase shift oscillator is successfully conducted, it has
generated a sine wave of frequency fc=2.589 KHz. The error percentage is 11 %.
61
10.11. VIVA QUESTIONS:
62
EXPERIMENT – 11
a. IC 555 timer.
b. Capacitor.
c. Resistor.
d. Power supply ( 0-12V).
e. Multi-meter.
f. CRO.
g. Function Generator.
h. Bread Board.
i. Connecting Wire.
11.3. THEORY: Schmitt trigger converts an irregular – shaped waveform to a square wave or pulse. The
output of Schmitt trigger is a square wave when the input is sine wave or triangular wave, where as if the
input is a saw tooth wave then the output is a pulse wave. So this circuit is also known as squaring circuit.
555 timer can be used as Schmitt trigger. Here two internal comparators are tied together and externally
biased at VCC/2 through R1 & R2. Since the upper comparator will trip at (2/3) VCC and the lower
comparator at (1/3) VCC the bias provided by R1 & R2 is centered within these two thresholds. Thus a
sine wave of sufficient amplitude (> VCC /6 = 2/3 VCC – VCC/2) to exceed the reference levels causes
the internal flip–flop to alternately set and reset providing a square wave output The input voltage Vin
triggers (changes the state of ) the output Vo every time it exceeds certain voltage levels called Upper
threshold voltage, VUT and Lower threshold voltage, VLT. The hysteresis width is the difference
between these two threshold voltages i.e. VUT – VLT.
63
11.3.2. ADVANTAGES OF SCHMITT TRIGGER:
a. Versatility.
b. Cost-effectiveness.
c. Ability to amplify a weak input signal.
11.4. PROCEDURE:
64
11.5. EXPECTED WAVEFORMS:
11.6. OBSERVATION:
65
11.6.2. OUTPUT WAVEFORM:
11.7. RESULT:
11.8. PRECATIONS:
11.9. CONCLUSION:
66