Professional Documents
Culture Documents
Expt. No: 1
Aim: To verify the truth table of basic digital ICs of NAND, NOR, NOT, AND, OR, EX-OR
gates (7400, 7402, 7404, 7408, 7432,7486).
Apparatus:
I. NAND Gate:
A NAND gate is a complemented AND gate. The output of the NAND gate will be ‘0’
if all the input signals are ‘1’ and will be ‘1’ if any one of the input signal is ‘0’.
a. Logic Diagram:
c. Circuit Diagram:
a. Logic Diagram:
c. Circuit Diagram:
a. Logic Diagram:
c. Circuit Diagram:
IV. OR Gate:
a. Logic Diagram:
c. Circuit Diagram:
V. NOT Gate:
A NOT gate is the physical realization of the complementation operation. It is an
electronic circuit which generates an output signal which is the reverse of the input signal. A
NOT gate is also known as an inverter because it inverts the input.
a. Logic Diagram:
c. Circuit Diagram:
It is similar to OR gate but excludes the combination of both A and B being equal to one. The
exclusive OR is a function that give an output signal ‘0’ when the two input signals are equal
either ‘0’ or ‘1’.
a. Logic Diagram:
c. Circuit Diagram:
Procedure:
1. Connections are given as per the circuit diagrams.
2. For all the ICs 7th pin is grounded and 14th pin is given +5 V supply.
3. To verify the truth table of basic digital ICs.
VHDL CODE :
library ieee;
use ieee.std_logic_1164.all; use
ieee.std_logic_arith.all; use
ieee.std_logic_unsigned.all;
entity gates is
port (a_in,b_in: in std_logic;
not_op,and_op,nand_op,or_op,nor_op,xor_op,xnor_op:
out std_logic);
end gates;
Result:
Date:
Expt. No: 2
Apparatus:
I. HALF ADDER:
A combinational circuit which performs the addition of two bits is called half adder. The
input variables designate the augend and the addend bit, whereas the output variables produce
the sum and carry bits.
a. CIRCUIT DIAGRAM:
c. DESIGN:
DIGITAL ELECTRONICS LAB Page 11 of 69
VFSTR UNIVERSITY DEPT OF ECE
From the truth table the expression for sum and carry bits of the output can be obtained as,
Sum, S = A B
Carry, C = A . B
a. CIRCUIT DIAGRAM:
INP
UT OUTPUT INPUT OUTPUT
S.No S.No
A B S C A B S (V) C (V)
1. 0 0 0 0 1. 0 0
2. 0 0 1 1 2. 0 0
3. 0 1 0 1 3. 0 1
4. 0 1 1 0 4. 0 1
5. 1 0 0 1 5. 1 0
6. 1 0 1 0 6. 1 0
7. 1 1 0 0 7. 1 1
8. 1 1 1 1 8. 1 1
c. DESIGN:
From the truth table the expression for sum and carry bits of the output can be obtained
as, SUM = A’B’C + A’BC’ + AB’C’ + ABC
Using Karnaugh maps the reduced expression for the output bits can be obtained as,
SUM
CARRY
CARRY = AB + AC + BC
Procedure:
1. Connections are given as per the circuit diagrams.
2. For all the ICs 7th pin is grounded and 14th pin is given +5 V supply.
3. Apply the inputs and verify the truth table for the half adder and full adder circuits.
library ieee;
use ieee.std_logic_1164.all; use
ieee.std_logic_arith.all; use
ieee.std_logic_unsigned.all;
entity halfadder is
port (a_in, b_in: in std_logic;
sum, carry: out std_logic);
end halfadder;
architecture dataflow of halfadder is
DIGITAL ELECTRONICS LAB Page 13 of 69
VFSTR UNIVERSITY DEPT OF ECE
begin
sum <= a_in xor b_in;
carry<= (a_in and b_in);
end dataflow;
library ieee;
use ieee.std_logic_1164.all; use
ieee.std_logic_arith.all; use
ieee.std_logic_unsigned.all;
entity fulladder is
port (a_in, b_in, c_in: in std_logic;
sum, carry: out std_logic);
end fulladder;
architecture dataflow of fulladder is
begin
sum <= a_in xor b_in xor c_in;
carry<= (a_in and b_in) or (b_in and c_in) or (a_in and
b_in);
end dataflow;
Result:
Date:
Expt. No: 3
HALF SUBTRACTOR
Aim: To design and verify the truth table of the Half subtractor, Full subtractor, circuits.
Apparatus:
I. HALF SUBTRACTOR:
The half-subtractor is a combinational circuit which is used to perform subtraction of two
bits. It has two inputs, X (minuend) and Y (subtrahend) and two outputs D (difference) and B
(borrow).
a. CIRCUIT DIAGRAM:
d. DESIGN:
From the truth table the expression for sum and carry bits of the output can be obtained as,
Sum, S = A B
Carry, C = A . B’
Procedure:
1. Connections are given as per the circuit diagrams.
2. For all the ICs 7th pin is grounded and 14th pin is given +5 V supply.
3. Apply the inputs and verify the truth table for the half adder and full adder circuits.
VHDL CODE:
library IEEE;
use
IEEE.STD_LOGIC_1164.A
LL; use IEEE.STD_LOG
IC_ARITH.ALL;
use
IEEE.STD_LOGIC_UNSIGNED
.ALL; entity hs is
Port ( a, b : in
std_logic;
d, br : out
std_logic)
;
end hs;
architecture dataflow of hs is
begin
d<= a xor b;
br<= (not a) and b;
end dataflow;
Result:
Experiment: 4
ENCODER
Aim: To Design and verify the truth table of code conversion from binary to gray code (4
bit) using basic Logic Gates.
Apparatus Required:
Designer kit
Digital ICs:7486: Quad 2 input EXOR
Connecting Wires
Pin Diagram:
Fig 4.1:Pin diagram of Binary to gray code converter using 7486 Ic(Exor Gate)
Theory:
Code Converters:A code converter is a circuit that makes two digital systems using different
codes for the same information. It means that a code converter is a code translator from one
code to the other. The code converter is used since to systems using two different codes but
they need to use the same information. So the code converter is the solution.
Binary-to Gray Converter: An interesting application for the exclusive-OR gate is a logic
gate to change a binary number to its equivalent in Gray Code. The logic circuit can be used to
convert a 4-bit binary number ABCD into its Gray-code equivalent, G1, G2, G3 and G4.
Circuit Diagram:
Truth Table:
INPUTS OUTPUTS
A B C D G4 G3 G2 G1
0 0 0 0 0 0 0 0
0 0 0 1 0 0 0 1
0 0 1 0 0 0 1 1
0 0 1 1 0 0 1 0
0 1 0 0 0 1 1 0
0 1 0 1 0 1 1 1
0 1 1 0 0 1 0 1
0 1 1 1 0 1 0 0
1 0 0 0 1 1 0 0
1 0 0 1 1 1 0 1
1 0 1 0 1 1 1 1
1 0 1 1 1 1 1 0
1 1 0 0 1 0 1 0
1 1 0 1 1 0 1 1
1 1 1 0 1 0 0 1
1 1 1 1 1 0 0 0
Procedure :
1. Collect the components necessary to accomplish this experiment.
2. Plug the IC chip into the breadboard.
3. Connect the supply voltage and ground lines to the chips. PIN7 = Ground
and PIN14 = +5V.
4. Make connections as shown in the respective circuit diagram.
5. Connect the inputs of the gate to the input switches of the LED.
6. Connect the output of the gate to the output LEDs.
7. Once all connections have been done, turn on the power switch of the breadboard
8. Operate the switches and fill in the truth table ( Write "1" if LED is ON and "0" if L1 is
OFF Apply the various combination of inputs according to the truth tabe and obseve the
condition of Output LEDs.
Observation Table: Input Variable: A B C D
Output Variable: G3 G2 G1 G0
LED ON: RED Light:Logic 1
LED OFF: Green Light:Logic 0
INPUTS(LED) OUTPUTS(LED)
A B C D G3 G2 G1 G0
Calculation:
Kmap Simplification:
For G3
For G2
For G1
For G0
Boolean Expression: G3 =
G2 =
G1 =
G0=
VHDL CODE :
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
use
ieee.std_logic_unsigned.all;
entity binary_gray is
port(b_in: in std_logic_vector(3 downto
0); g_op: out std_logic_vector (3 downto
0)); end binary_gray;
architecture dataflow of binary_gray
is begin
g_op(3)<= b_in(3);
g_op(2)<= b_in(3) xor b_in(2);
g_op(1)<= b_in(2) xor b_in(1);
g_op(0)<= b_in(1) xor b_in(0);
end;
Result:
Lab tutorial
1) Gray code is also known as
Experiment: 5
DECODER
Aim: To Design and verify the truth table of code conversion from gray to binary code (4
bit) using basic Logic Gates.
Apparatus Rgequired:
Trainer Kit
Digital ICs:7486: Quad 2 input EXOR
Connecting Wires
Pin Diagram:
Fig 5.1:Pin diagram of Gray to Binary code converter using 7486 Ic(Exor Gate)
Theory:
Code Converters:A code converter is a circuit that makes two digital systems using different
codes for the same information. It means that a code converter is a code translator from one
code to the other. The code converter is used since to systems using two different codes but
they need to use the same information. So the code converter is the solution.
Gray-to Binary Converter:An interesting application for the exclusive-OR gate is a logic gate
to change a gray number to its equivalent in binary Code. The logic circuit can be used to
convert a 4-bit gray number ABCD into its binary-code equivalent, B3,B2,B1 and B0.
Application: Some sensors send information in Gray code. These must be converted to
binary in order to do arithmetic with it. Occasionally, it is necessary to convert back.
Circuit Diagram:
A B C D B3 B2 B1 B0
0 0 0 0 0 0 0 0
0 0 0 1 0 0 0 1
0 0 1 1 0 0 1 0
0 0 1 0 0 0 1 1
0 1 1 0 0 1 0 0
0 1 1 1 0 1 0 1
0 1 0 1 0 1 1 0
0 1 0 0 0 1 1 1
1 1 0 0 1 0 0 0
1 1 0 1 1 0 0 1
1 1 1 1 1 0 1 0
1 1 1 0 1 0 1 1
1 0 1 0 1 1 0 0
1 0 1 1 1 1 0 1
1 0 0 1 1 1 1 0
1 0 0 0 1 1 1 1
Procedure :
1. Collect the components necessary to accomplish this experiment.
2. Plug the IC chip into the breadboard.
3. Connect the supply voltage and ground lines to the chips. PIN7 = Ground
and PIN14 = +5V.
4. Make connections as shown in the respective circuit diagram.
5. Connect the inputs of the gate to the input switches of the LED.
6. Connect the output of the gate to the output LEDs.
7. Once all connections have been done, turn on the power switch of the breadboard
8. Operate the switches and fill in the truth table ( Write "1" if LED is ON and "0" if L1 is
OFF Apply the various combination of inputs according to the truth tabe and obseve the
condition of Output LEDs.
Observation Table: Input Variable: A B C D
Output Variable: B3 B2 B1 B0
LED ON: RED Light:Logic 1
LED OFF: Green Light:Logic 0
INPUTS(LED) OUTPUTS(LED)
A B C D B3 B2 B 1 B0
Calculation:
Kmap Simplification:
For B0 For B1
For B2 For B3
Boolean Expression: B3 =
B2 =
B1 =
B0=
VHDL CODE:
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
entity gray2binary is
Port ( g : in STD_LOGIC_VECTOR (3 downto 0);
b : out STD_LOGIC_VECTOR (3 downto 0));
end gray2binary;
Result :
Lab tutorial
1) Gray code equivalent of binary 010 is:
2) Ques1: What are code converters?
Experiment:
MULTIPLEXER AND DEMULTIPLEXER
Aim: a) To find the Truth Table of 4:1 Multiplexer using IC 74153
b) To find the Truth Table of 1:4 Demultiplexer using IC 74139
Apparatus Required:
Ref: http://www.electronics-tutorials.ws/combination/comb_3.html
The Boolean expression for this 4-to-1 Multiplexer above with inputs I0 to I3 and data select
lines S0 ,S1 is given as:
Multiplexer Symbol:
Truth Table of 4:1 Mux(IC 74153)( Channel A) with Active low mode:
Ref: http://www.electronics-tutorials.ws/combination/comb_3.html
The Boolean expression for this 1-to-4 Demultiplexer above with outputs D0 to D3 and data
select lines S0 , S1 is given as:
The function of the Demultiplexer is to switch one common data input line to any one of the 4
output data lines. Some standard demultiplexer IC´s also have an "enable output" input pin
which disables or prevents the input from being passed to the selected output. Also some have
latches built into their outputs to maintain the output logic level after the address inputs have
been changed. However, in standard decoder type circuits the address input will determine
which single data output will have the same value as the data input with all other data outputs
having the value of logic "0".
Input(Channel A) Output
Ea S0 S1 D0 D1 D2 D3
1 × × 1 1 1 1
0 0 0 0 1 1 1
0 0 1 1 0 1 1
0 1 0 1 1 0 1
0 1 1 1 1 1 0
Procedure:
Input(Channel A) Output
Ea S0 S1 D0 D1 D2 D3
entity demux is
Port ( I,en : in std_logic;
sel: in std_logic_vector(1
downto 0);
y:outstd_logic_vector(3d
ownto0));
end demux;
architecture dataflow of
demux is signal x:
std_logic_vector( 1 downto
0); begin
x<= en & a;
y <="0001" when sel="00" and x="01" else
"0010" when sel="01" and x="01" else
"0100" when sel="10" and x="01" else
"1000" when sel="11" and x="01" else
"0000";
end dataflow;
VHDL CODE(MUX):
entity mux4to1 is
port( A,B,C,D: in std_logic;
S: in std_logic_vector(1 downto 0);
O: out std_logic);
end mux4to1;
Process(S,A,B,C,D)
variable temp:std_logic;
Begin
case S is
end case;
O<=temp;
end Process;
end behavioral;
Result:
Lab tutorial
1) The IC number of Dual 4:1 MUX is
5) Multiplexer converts:
6) Demultiplexer converts:
Experiment: 8
Aim: To Design and verify the Truth Table of 3-bit Parity Generator and 4-bit Parity
Checker using basic Logic Gates with an even parity bit.
Apparatus Required:
Trainer kit
Digital ICs:7486: Quad 2 input EXOR
Connecting Wires
Pin Diagram:
Fig 6.1:Pin diagram of 3-Bit Even Parity Generator using 7486 Ic(Exor Gate)
Fig 6.2: Pin diagram of 4-Bit Even Parity Checker using 7486 Ic(Exor Gate)
Theory:
Parity bits are extra signals which are added to binary information to enable error checking.
There are two types of Parity - even and odd. An even parity generator will produce a logic 1
at its output if the data word contains an odd number of ones. If the data word contains an even
number of ones then the output of the parity generator will be low. By concatenating the Parity
bit to the dataword, a word will be formed which always has an even number of ones i.e. has
even parity.
If a dataword is sent out with even parity, but has odd parity when it is received then
the data has been corrupted and must be resent. As its name implies the operation of an Odd
Parity generator is similar but it provides odd parity. A parity bit can be added to code either
at the beginning or at the end depending on the system design. However the total number of
1’s including parity bit is even for even parity and odd for odd parity.
The parity detector can detect a single error or an odd number of errors but cannot check
for two errors. Parity is used on communication links (e.g. Modem lines) and is often included
in memory systems. The message is transmitted and then checked at the receiving end for
errors. For this purpose a circuit is required which generates parity bit in the transmiter and
check the receiving message for errors.
Circuit Diagram:
Procedure:
1. Collect the components necessary to accomplish this experiment.
2. Plug the IC chip into the breadboard.
3. Connect the supply voltage and ground lines to the chips. PIN7 = Ground
and PIN14 = +5V.
4. Make connections as shown in the respective circuit diagram.
5. Connect the inputs of the gate to the input switches of the LED.
6. Connect the output of the gate to the output LEDs.
7. Once all connections have been done, turn on the power switch of the breadboard
8. Operate the switches and fill in the truth table ( Write "1" if LED is ON and "0" if L1 is
OFF Apply the various combination of inputs according to the truth tabe and obseve the
condition of Output LEDs.
Observation Table:
Parity Generator: Input Variable: A,B,C
Output Variable: P
LED ON: RED Light:Logic 1
LED OFF: Green Light:Logic 0
Input Output
A B C P
Input Output
A B C P Ch
Calculation:
Parity Generator:
K Map Simplification:
Parity Checker:
K Map Simplification:
Parity Checker Ch =
library IEEE;
use IEEE.STD_LOGIC_1164.all;
entity parity_gen_data is
port(
d0 : in STD_LOGIC;
d1 : in STD_LOGIC;
d2 : in STD_LOGIC;
d3 : in STD_LOGIC;
parity_even : inout STD_LOGIC;
parity_odd : out STD_LOGIC
);
end parity_gen_data;
end parity_gen_data;
library IEEE;
use IEEE.STD_LOGIC_1164.all;
entity perity_checker is
port(
d3 : in STD_LOGIC;
d2 : in STD_LOGIC;
d1 : in STD_LOGIC;
d0 : in STD_LOGIC;
parity_even : in STD_LOGIC;
parity_even_checker : out STD_LOGIC
);
end perity_checker;
end perity_checker;
Result :
Lab tutorial
1) What is the need of parity generator and parity checker ?
2) Why can’t the parity method detect even number of error in transmitted
data ?
3) Design 3-bit parity generator and 4-bit parity checker circuit for odd
parity?
Experiment
Comparator
Theory:
A comparator used to compare two 4-bit words. The two 4-bit numbers are word A: A3A2A1A0, and word B:
B3 B2B1B0) So the circuit has 8 inputs and 3 binary outputs: A>B, A=B and A
Digital or Binary Comparators are made up from standard AND, NOR and NOT gates that
compare the digital signals present at their input terminals and produce an output depending
upon the condition of those inputs.
For example, along with being able to add and subtract binary numbers we need to be able to
compare them and determine whether the value of input A is greater than, smaller than or
equal to the value at input B etc. The digital comparator accomplishes this using several logic
gates that operate on the principles of Boolean Algebra. There are two main types of Digital
Comparator available and these are.
1. Identity Comparator – an Identity Comparator is a digital comparator that has only
one output terminal for when A = B either “HIGH” A = B = 1 or “LOW” A = B = 0
2. Magnitude Comparator – a Magnitude Comparator is a digital comparator which
has three output terminals, one each for equality, A = B greater than, A > B and less
than A < B
The purpose of a Digital Comparator is to compare a set of variables or unknown numbers,
for example A (A1, A2, A3, …. An, etc) against that of a constant or unknown value such
as B (B1, B2, B3, …. Bn, etc) and produce an output condition or flag depending upon the
result of the comparison. For example, a magnitude comparator of two 1-bits, (A and B)
inputs would produce the following three output conditions when compared to each other.
Logic diagram
WORKING:
Equality: Word A equal word B iff: A3=B3, A2=B2, A1=B1, A0=B0.
Inequality:
If A3 = 1 and B3 = 0, then A is greater than B (A>B). Or
If A3 and B3 are equal, and if A2 = 1 and B2 = 0, then A > B. Or
If A3 and B3 are equal & A2 and B2 are equal, and if A1 = 1, and B1 = 0, then A>B. Or
If A3 and B3 are equal, A2 and B2 are equal and A1 and B1 are equal, and if A0 = 1 and B0 = 0, then A > B.
If A3 = 0 and B3 = 1, then A is less than B (A< B. Or
If A3 and B3 are equal & A2 and B2 are equal, and if A1 = 0, and B1 = 1, then A< B.
Procedure:
1. Check all the components for their working.
2. Insert the appropriate ICs into the IC base.
3. Make connections as shown in the circuit diagram
4. Verify the Truth Table and observe the outputs.
5. Repeat the same steps but for the circuit diagram and apply inputs in the following table, also record the
output at each:
Observation table
VHDL CODE:
VHDL CODE :
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
use
ieee.std_logic_unsigned.all;
entity comparator is
port (a_in, b_in: in std_logic_vector (3 downto 0)
; g_op, e_op, L_op: out std_logic);
end comparator;
RESULT:
Expt. No: 4
Apparatus:
I. RS FLIP FLOP:
The clocked RS flip flop consists of NAND gates and the output changes its state
with respect to the input on application of clock pulse. When the clock pulse is high the S
and R inputs reach the second level NAND gates in their complementary form. The Flip
Flop is reset when the R input high and S input is low. The Flip Flop is set when the S input
is high and R input is low. When both the inputs are high the output is in an indeterminate
state.
a. LOGIC SYMBOL:
Practical Values:
a. LOGIC SYMBOL:
b. CIRCUIT DIAGRAM:
c. CHARACTERISTIC TABLE:
Practical Values:
a. LOGIC SYMBOL:
b. CIRCUIT DIAGRAM:
c. CHARACTERISTIC TABLE:
Practical Values:
a. LOGIC SYMBOL:
b. CIRCUIT DIAGRAM:
c. CHARACTERISTIC TABLE:
Practical Values:
Procedure:
1. Connections are given as per the circuit diagrams.
2. For all the ICs 7th pin is grounded and 14th pin is given +5 V supply.
3. Apply the inputs and observe the status of all the flip flops.
VHDL CODE(SR-FF) :
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
use
ieee.std_logic_unsigned.all;
entity srff is
port (rst, clk: in std_logic;
sr: in std_logic_vector (1 downto
0); q, qb: inout std_logic);
end srff;
architecture behavioral of srff
is begin
process
(clk) begin
if (rst=’1’) then
q<=’0’;
qb<=’1’;
elsif (rising_edge (clk))
then case (sr) is
when”00”=>q<=q; qb<=qb;
when”01”=>q<=’0’; qb<=’1’;
when”10”=>q<=’1’; qb<=’0’;
when”11”=>q<=’Z’; qb<=’Z’;
when others=>null;
end
case; end if;
end process;
end behavioral;
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
use
ieee.std_logic_unsigned.all;
entity dff is
port (clk, rst: in std_logic;
d: in std_logic;
q, qb:out
std_logic); end dff;
architecture behavioral of dff
is begin
process
(clk) begin
if rst=’1’
then
q<=’0’;
qb
<=’1’;
elsif (rising_edge (clk))
then q<=d;
qb<=not
(d); end if;
end process;
end;
Result:
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
use
ieee.std_logic_unsigned.all;
entity jkff is
port (clk, rst: in bit;
jk: in bit_vector (1 downto
0); q, qb: inout bit);
end jkff;
architecture behavioral of jkff is
signal div: std_logic_vector(22 downto
0); signal clkdiv:std_logic;
begin
process(clk)
is begin
if rising_edge (clk)
then
div<=div+’1’;
end if;
end process;
clkdiv<=div(22);
process (clkdiv,
rst) begin
if (rst='1')
then
q<='0';
qb<=’1’;
elsif (rising_edge (clkdiv))
then case (jk) is
when”00”=>q<=q; qb<=qb;
when”01”=>q<=’0’; qb<=’1’;
when”10”=>q<=’1’; qb<=’0’;
when”11”=>q<=not(q);
qb<=not(qb); when others=>null;
end
case; end if;
end
process;
end ;
VHDL CODE(T-FF) :
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
use
ieee.std_logic_unsigned.all;
entity tff is
port (t: in std_logic;
clk, rst: in std_logic;
DIGITAL ELECTRONICS LAB Page 55 of 69
VFSTR UNIVERSITY DEPT OF ECE
q, qb: inout
std_logic);
end tff;
architecture behavioral of tff is
signal div:std_logic_vector(22 downto
0); signal clkdiv:std_logic;
begin
process
(clk) begin
if (rising_edge(clk))
then div<=div+’1’;
end if;
end process;
clkdiv<=div(22)
; process
(clkdiv) begin
if (rst=’1’) then
q<=’0’;
qb<=’1’;
elsif (rising_edge(clkdiv))
then case (t )is
when ’0’=>q<=q; qb<=qb;
when ’1’=>q<=not(q);
qb<=not(qb); when others=>null;
end
case;
end if;
end
process; end ;
RESULT:
AIM:
To design and implement
(i) Serial in serial out
(ii) Serial in parallel out
(iii) Parallel in serial out
(iv) Parallel in parallel out
APPARATUS REQUIRED:
Sl.No. COMPONENT SPECIFICATION QTY.
1. D FLIP FLOP IC 7474 2
2. OR GATE IC 7432 1
3. IC TRAINER KIT - 1
4. PATCH CORDS - 35
THEORY:
A register is capable of shifting its binary information in one or both
directions is known as shift register. The logical configuration of shift register
consist of a D-Flip flop cascaded with output of one flip flop connected to input
of next flip flop. All flip flops receive common clock pulses which causes the shift
in the output of the flip flop. The simplest possible shift register is one that
uses only flip flop.
PIN DIAGRAM:
LOGIC DIAGRAM:
SERIAL IN SERIAL OUT:
TRUTH TABLE:
Serial in Serial out
CLK
1 1 0
2 0 0
3 0 0
4 1 1
5 X 0
6 X 0
7 X 1
LOGIC DIAGRAM:
SERIAL IN PARALLEL OUT:
TRUTH TABLE:
OUTPUT
CLK DATA QA QB QC QD
1 1 1 0 0 0
2 0 0 1 0 0
3 0 0 0 1 1
4 1 1 0 0 1
LOGIC DIAGRAM:
PARALLEL IN SERIAL OUT:
TRUTH TABLE:
CLK Q3 Q2 Q1 Q0 O/P
0 1 0 0 1 1
1 0 0 0 0 0
2 0 0 0 0 0
3 0 0 0 0 1
LOGIC DIAGRAM:
PARALLEL IN PARALLEL OUT:
TRUTH TABLE:
DATA INPUT OUTPUT
CLK DA DB DC DD QA QB QC QD
1 1 0 0 1 1 0 0 1
2 1 0 1 0 1 0 1 0
PROCEDURE:
RESULT:
AIM:
To design and implement 3 bit synchronous up/down counter.
APPARATUS REQUIRED:
Sl.No. COMPONENT SPECIFICATION QTY.
1. JK FLIP FLOP IC 7476 2
2. 3 I/P AND GATE IC 7411 1
3. OR GATE IC 7432 1
4. XOR GATE IC 7486 1
5. NOT GATE IC 7404 1
6. IC TRAINER KIT - 1
7. PATCH CORDS - 35
THEORY:
A counter is a register capable of counting number of clock pulse arriving
at its clock input. Counter represents the number of clock pulses arrived. An
up/down counter is one that is capable of progressing in increasing order or
decreasing order through a certain sequence. An up/down counter is also called
bidirectional counter. Usually up/down operation of the counter is controlled by
up/down signal. When this signal is high counter goes through up sequence and
when up/down signal is low counter follows reverse sequence.
K MAP:
STATE DIAGRAM:
CHARACTERISTICS TABLE:
Q Qt+1 J K
0 0 0 X
0 1 1 X
1 0 X 1
1 1 X 0
LOGIC DIAGRAM:
TRUTH TABLE:
PROCEDURE:
(i) Connections are given as per circuit diagram.
RESULT:
Thus the 3 bit synchronous up/down counter was designed and
implemented using the IC7476.
Apparatus Required: -
Procedure: -
Circuit Diagram:
Result:-