Professional Documents
Culture Documents
Lecture 2
Lecture 2
Lecture 2
1
Unit 1 : Basics of Digital Electronics
Introduction
Logic Gates
Flip Flops
Decoder
Encoder
Multiplexers
Demultiplexer
Registers
2
Half Adder
• A combinational circuit that performs the arithmetic addition of two bits is
called a half-adder.
• Two input variables used.
• The output variables are Sum and Carry.
• The variable S represents the least significant bit of the sum.
• The C output is 0 unless both the inputs are 1.
3
Half Adder
4
Full Adder
• A combinational circuit that performs the arithmetic addition of three bits
is called a full-adder.
• Two half-adders are needed to implement a full-adder.
• Three input variables used.
• The output variables are Sum and Carry.
• The variable S represents the least significant bit of the sum.
• The binary variable C gives the output carry.
5
Full Adder
S=A⊕B⊕Cin
C=AB+ACin+BCin
6
Decoder
• The combinational circuit that change the
binary information into 2N output lines is
known as Decoders.
used in code
conversions like binary
to decimal
7
Encoder
• Uses of Encoders –
• Encoders are very common electronic circuits
used in all digital systems.
• Encoders are used to translate the decimal
values to the binary in order to perform the
binary functions such as addition, subtraction,
multiplication, etc.
8
9
10
11
12
13
Applications of multiplexer
• Data Routing
• Parallel to Serial Conversion
• Logic Function Generation
14
15
A Demultiplexer, sometimes abbreviated DMUX is a circuit that has
one input and more than one output. It is used when a circuit wishes
to send a signal to one of many devices
16
17
Difference between of Multiplexer and Demultiplexer :
18
Register.
• A group of flip-flop is known as a Register.
• It increase the storage capacity in terms of
number of bits.
• 1 bit= 1 FF.
• n-bit register =n number of flip-flop and it is
capable of storing an n-bit word.
19
Concept of Serial Load/ Parallel load
20
• There are two common types of registers:
1. Parallel load Register
2. Shift Register.
21
1. Parallel load Register
• parallel if all the bits of the register are loaded at
the same time using a common clock pulse.
• When a clock edge is applied to the register’s C
input, all four inputs are loaded in parallel.
24
25
2. Shift Registers
• Used to implement arithmetic operations
27
Concept behind clocks in SISO
• i/p 1111 ->Q3 Q2 Q1 Q0 (initially all 0 0 0 0)
• At Clk 1->1 0 0 0
• At Clk 2->1 1 0 0
• At Clk 3->1 1 1 0
• At Clk 4->1 1 1 1
• (it is right shift of SISO)
28
29
30
31