Professional Documents
Culture Documents
Digital circuit: Circuit in which the signal used can have fixed number of discrete states. It
consists of logic gates, electronic devices. Mobile phone, digital watch, calculators, computers, video
games etc are example of digital circuits.
Advantages of digital circuits:
.co
Digital logic:
Digital Signal/ Logic signal: It is a physical signal which is used for representation of a sequence of
discrete values. They can be represented as:
an
gi
st
en
A and B two signals are input set for a given circuit and produces a output signal C, which depends
on A and B.
C can be result of AND, OR ,NOT, NAND, NOR, XOR function between A and B.
Logic gates: These are use to perform logic operations on logical inputs and produces a single
logical output. If A is a digital signals then A could be either TRUE (a logical 1) or FALSE (a logical 0).
And Gate: The output of AND gate is TRUE only if both the inputs to the AND
gate is TRUE. Truth table for And gate:
Engistan.com | [Engineers Community]
Input
A
False
False
True
True
Output
B
C
False False
True False
False False
True True
Also C= A.B
.co
OR gate: The output of or gate is true if one or both the inputs to the gate are true (1). Truth
table for OR gate:
Output
C
False
True
True
True
an
Input
A
False
False
True
True
gi
st
B
False
True
False
True
en
Also C=A+B
Not gate: It represents negation i.e false for true and true for false. If A is input signal and B
is output t signal then Truth table for Not gate:
Input
A
0
1
Output
B
1
0
`
Also B=~A
Nand gate: It is an AND gate with an inverter on the output
or
an
Also C= .
Output
C
1
1
1
0
.co
Input
A B
0 0
0 1
1 0
1 1
Output
en
gi
st
Also C=
XOR gate: It is used as an exclusive or. The output is true if one, and only one, of the inputs
to the gate is true.
Input
Output
B
an
.co
or
gi
st
Also C=
XNOR gate: It is inverse of XOR. The output is high if both of the inputs to the gate are the
same.
en
= AB+BA
Input
Output
or
= AB+ AB
.co
Also C=
Number system:
an
Note: NOR gates alone or alternatively NAND gates alone can be used to reproduce the functions
of all the other logic gates so they are called Universal gates.
Binary number
Decimal numbers
10
0 to 9
Octal numbers
0 to 7
Hexadecimal
16
en
gi
st
Number System
Complements: They are used in digital computer for simplifying the subtraction operation and for
logic manipulation.
Codes in digital logic:
Binary Codes: In such case signal will have 2 values (0/1) and circuit elements will have two stable
states.
Note:- A Bit is a binary digit.
Engistan.com | [Engineers Community]
Decimal Codes: Binary codes for decimal number require a minimum of 4 bits. There are 5 type of
decimal codes:
BCD
Excess-3
84-2-1
2421
Error detection code: value of parity bit is used for error detection
Reflected Code: In such code only 1 bit changes as we proceed from 1 number to another.
Boolean Laws:
gi
st
an
T1 : Commutative Law
(a) A + B = B + A
(b) A B = B A
T2 : Associate Law
(a) (A + B) + C = A + (B + C)
(b) (A B) C = A (B C)
T3 : Distributive Law
(a) A (B + C) = A B + A C
(b) A + (B C) = (A + B) (A + C)
T4 : Identity Law
(a) A + A = A
(b) A A = A
T5 :
.co
Alphanumeric code: This code consist 10 decimal digits and 26 letter of alphabets.
en
(a)
(b)
T6 : Redundance Law
(a) A + A B = A
(b) A (A + B) = A
T7 :
(a) 0 + A = A
(b) 0 A = 0
T8 :
(a) 1 + A = 1
(b) 1 A = A
T9 :
(a)
T10 :
(b)
(a)
(b)
Engistan.com | [Engineers Community]
Karnaugh map (K map): A Karnaugh Map is a grid-like representation of a truth table. A Karnaugh
map has zero and one entries at different positions. Each position in a grid corresponds to a truth
table entry.
A
0
0
an
.co
For example:
en
gi
st
Combinational: It consists of logic gates whose outputs at any time are determined directly
from the present input without regards to previous inputs.
Engistan.com | [Engineers Community]
function of input and the state of the memory elements. And this is function of previous
input.
gi
st
an
.co
BLOCK DIAGRAM
en
Adders: These are used for addition of bits. There are two type of adder:
Half adder: This circuit consists of two binary inputs (two bits that used need to add) and two
gi
st
an
CIRCUIT DIAGRAM
.co
TRUTH TABLE
Full Adder: It takes three inputs (two bits that user need to add plus one carry bit) and produces
two outputs(sum and carry).
en
BLOCK DIAGRAM
TRUTH TABLE
9
en
gi
st
an
CIRCUIT DIAGRAM
.co
Substractor: These are used for substraction of bits. There are two type of substractor:
Half Substractor: This circuit consists of two binary inputs (two bits that used need to substract)
.co
CIRCUIT DIAGRAM
Full Substracor: This circuit consists of three binary inputs (two bits that used need to substract
en
gi
st
TRUTH TABLE
an
and one borrow) and two binary outputs (difference and borrow).
CIRCUIT DIAGRAM
11
.co
en
gi
st
BLOCK DIAGRAM
an
Binary parallel Adder: It produces arithmetic sum of 2 binary numbers in parallel. It consists of full
adder connected in cascade. It work on the carry propagation concept.
Decimal adder: It need minimum of 9 inputs in decimal form and produces 5 outputs of BCD form.
BCD Adder: used to add two BCD digits and produces a sum digit also in BCD.
Magnitude Comparator: Used to compare two numbers
Decoder: Converts binary information from n inputs to a max of 2^n unique information. For
example:
12
Code converters
BCD to seven segment decoders
Nixie tube decoders
Engistan.com | [Engineers Community]
Relay actuator
BLOCK DIAGRAM
Demultiplexers: A decoder with enable function is demux. It receive information on a signal line
1 : 2 demultiplexer
1 : 4 demultiplexer
1 : 16 demultiplexer
1 : 32 demultiplexer
BLOCK DIAGRAM
gi
st
an
.co
transmit this information on one of 2^n possible output lines. The selection of output is controlled
by bit values of n selection lines.For example:
TRUTH TABLE
en
Encoders: it produces a reverse operation from that of a decoder. An encoder has 2^n or less input
lines and n output lines. For example:
Priority encoders
Decimal to BCD encoder
Engistan.com | [Engineers Community]
13
BLOCK DIAGRAM
2 : 1 multiplexer
4 : 1 multiplexer
16 : 1 multiplexer
32 : 1 multiplexer
en
gi
st
BLOCK DIAGRAM
an
.co
Multiplexers: It selects binary information from one of the many input lines(max 2^n) and directs it
to a single output line. It has n select lines whose combination determine which input is seleted. For
example:
14
BLOCK DIAGRAM
Engistan.com | [Engineers Community]
an
Sequential circuits:
.co
TRUTH TABLE
Basic Flip Flop circuits: a flip-flop or latch is a circuit that has two stable states and used to store
gi
st
state information. It is also called bistable multivibrator. The circuit can have one or more control
inputs and will have one or two outputs. It is the basic storage element in sequential logic. It is
constructed from 2 nand and 2 nor gates.
Type of flip flop:
Clocked RS flip flop: Basic flip flop plus clock is Clocked RS flip flop.
en
BLOCK DIAGRAM
CIRCUIT DIAGRAM
15
.co
an
TRUTH TABLE
gi
st
en
BLOCK DIAGRAM
CIRCUIT DIAGRAM
16
.co
TRUTH TABLE
en
gi
st
TRUTH TABLE
an
JK flip flop: It is refinement of RS flip flop. It is same as SR flip flop but contain feedback from the
output of second to input of first.
17
BLOCK DIAGRAM
Engistan.com | [Engineers Community]
.co
TRUTH TABLE
Registers: It is a group of binary storage cell (flip flop) suitable for holding binary information.
gi
st
an
Shift registers: Store binary information either to left or right. There are four mode of opearation of
a shift register.
Counters: counter is a device which is used to count number of times a particular event or process
has occurred. There are 2 type of counters:
Rippel counter
Synchronous counter
en
Ripple counter: the flip flop output transition serves a source for triggering other flip flop.
LOGICAL DIAGRAM
18
Synchronous counter: The input pulse are applied to all the clock pulse input of flip flops.
2-BIT SYNCHRONOUS UP COUNTER
The JA and KA inputs of FF-A are tied to logic 1. So FF-A will work as a toggle flip-flop. The JB and
KBinputs are connected to QA.
an
.co
LOGICAL DIAGRAM
gi
st
Classification of counters
en
Depending on the way in which the counting progresses, the synchronous or asynchronous counters
are classified as follows:
Up counters
Down counters
Up/Down counters
The 2-bit ripple counter is called as MOD-4 counter and 3-bit ripple counter is called as MOD-8
counter. So in general, an n-bit ripple counter is called as modulo-N counter. Where,MOD number =
2^n
TYPE OF MODULUS:
Engistan.com | [Engineers Community]
19
Frequency counters
Digital clock
Time measurement
A to D converter
Frequency divider circuits
Digital triangular wave generator
en
gi
st
an
.co
20