Documente Academic
Documente Profesional
Documente Cultură
ENGINEERINGPAPERS.BLOGSPOT.COM
Authorised By
SANTOSH BHARADWAJ REDDY
Email: help@matlabcodes.com
Engineeringpapers.blogspot.com
More Papers and Presentations available on above site
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
• The hexadecimal number system has radix or base of 16 and uses digits 0, 1, 2, 3, 4, 5,
6, 7, 8, 9, 10, 11, 12, 13, 14, 15.
• The letters A, B, C, D, E, and F are used for 10, 11, 12, 13, 14, and 15, respectively.
• Example: (B65F) 16 = 11 x 163 + 6 x 162 + 5 x 161 + 15 x 160
= (46687)10.
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
•The above process can be reversed to convert from the hexadecimal numbers to binary
numbers.
•Binary Octal: Partition the binary number into groups of three each starting from the
binary point and proceeds to the left and to the right.
CODES:
Coding and encoding is the process of assigning a group of binary digits, commonly
referred to as ‘bits’. By assigning each item of information a unique combination of bits
(1’s and 0’s), a code is a symbolic representation of an information transform. The bit
combination is referred to as ‘CODEWORDS’.
There are many different coding schemes, each having some particular advantages and
characteristics. One of the main efforts in coding is to standardize a set of universal codes
that can be used by all.
In a broad sense we can classify the codes into five groups:
(i) Weighted Binary codes
(ii) Non-weighted codes
(iii) Error–detecting codes
(iv) Error–correcting codes
(v) Alphanumeric codes.
Weighted Binary Codes
In weighted binary codes, each position of a number represents a specific weight. The
bits are multiplied by the weights indicated; and the sum of these weighted bits gives the
equivalent decimal digit.
The best approach is to evaluate how many code words can be derived from a
combination of n bits.
Example: Let n = no. of bits in the codeword and x = no. of unique words
If n = 1, then x = 2 (0, 1)
n = 2, then x = 4 (00, 01, 10, 11)
n = 3, then x = 8 (000, 001, …111)
and in general, n = j, then x = 2 j
if we have available j no. of bits in the code word, we can uniquely encode max 2 j
distinct elements of information.
x<2j
or j > log2X
or j > 3.32 log10 X Where j = number of bits in code word.
Binary Codes Decimal Codes (BCD codes)
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
In BCD codes, individual decimal digits are coded in binary notation .Thus binary codes
representing 0 to 9 decimal digits are allowed. Therefore all BCD codes have at least four
bits (Q min. no. of bits required to encode to decimal digits = 4)
But with 4 bits, total 16 combinations are possible (0000, 0001, ..., 11 11) but only 10 are
used (0 to 9). The remaining 6 combinations are invalid and commonly referred to as
‘UNUSED CODES’.There are many binary coded decimal codes (BCD) all of which are
used to represent decimal digits. BCD codes have at least 4 bits and at least 6 unassigned
or unused code words.
Examples:
(a) 8421 BCD code, sometimes referred to as the Natural Binary Coded Decimal Code
(NBCD);
(b)* Excess-3 code (ES-3);
(c)** 84 –2 –1 code (+8, +4, –2, –1);
(d) 2 4 2 1 code
Self complementing BCD codes
The excess 3, 8 4–2–1 and 2421 BCD codes are also known as self complementing
codes.
Self complementing property– 9’s complement of the decimal number is easily obtained
by changing 1’0 to 0’s and 0’s to 1’s in corresponding codeword or the 9’s complement
of self complementing code word is the same as its logical complement.
Ex: The decimal digit 3 in 8.4–2–1 code is coded as 0101. The 9’s complement of 3 is 6.
The decimal digit 6 is coded as 1010 that is 1’s complement of the code for 3. This is
termed as self complementing property.
Non Weighted Codes
These codes are not positionally weighted. This means that each position within a binary
number is not assigned a fixed value. Excess-3 codes and Gray codes are examples of
nonweighted codes.
Gray code (Unit Distance code or Reflective code)
There are applications in which it is desirable to represent numerical as well as other
information with a code that changes in only one bit position from one code word to the
next adjacent word. This class of code is called a unit distance code (UDC). These are
sometimes also called as ‘cyclic’, ‘reflective’ or ‘gray’ code. These codes find great
applications in Boolean function minimization using Karnaugh map.
Binary to Gray conversion
(1) Place a leading zero before the most significant bit (MSB) in the binary number.
(2) Exclusive-OR (EXOR) adjacent bits together starting from the left of this number will
result in the Gray code equivalent of the binary number.
Gray to Binary conversion
Scan the gray code word from left to right. The first 1 encountered is copied exactly as it
stands. From then on, 1’s will be written until the next 1 is encountered, in which case a 0
is written. Then 0’s are written until the next 1 is encountered, in which case a 1 is
written, and so on.
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
1010010
Example 2. Convert Gray code word 10001011 into binary.
10001011
↓↓↓↓ ↓ ↓ ↓ ↓
11110010
⇒ (10001011) Gray = (11110010)2.
Error Detecting Codes:
In a single bit error, a 0 is changed to a 1 or a 1 is changed to a 0.
In a burst error, multiple (two or more) bits are changed.
The purpose of error detection code is to detect such bit reversal errors. Error detection
uses the concept of redundancy which means adding extra bits for detecting errors at the
destination.
For single bit error detection, the most common way to achieve error detection is by
means of a parity bit.
Checksums–The checksum method is used to detect double errors in bits. Since the
double error will not change the parity of the bits, the parity checker will not indicate any
error.
Error Correcting Codes
Block codes: [(n, k) codes] in block codes, each block of k message bits is encoded into a
larger block of n bits (n > k), as shown. These are also known as (n, k) codes.
Hamming distance and minimum distance
The weight of a code word is defined as the number of nonzero components in it. For
example,
Code word Weight
010110 3
101000 2
000000 0
The ‘Hamming distance’ between two code words is defined as the number of
components in which they differ.
For example, Let U = 1010
V = 0111
W = 1001
Then, D (U, V) = distance between U and V = 3
Similarly, D (V, W) = 3 and D (U, W) = 2
The ‘minimum distance’ (Dmin) of a block code is defined is the smallest distance
between any pair of codewords in the code.
From Hamming’s analysis of code distances, a minimum distance (Dmin) of at least 3 to
correct single error and with this minimum. distance we can detect upto 2 errors.
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
Negative level logic system (NLLS): Out of the given two voltage levels, the
more negative value is assumed as logic ‘1’ & the other as logic ‘0’.
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
Truth Table:
A Y
0 1
1 0
And -gate: the output of AND gate is high if all the inputs are high. Or the output
of and gate is low if any one input is low or all the inputs are low.
A B Y
0 0 0
0 1 0
1 0 0
1 1 1
Internal circuit diagram of AND gate with positive level logic system.
OR-gate: the output of an OR gate is high if any one input is high or all inputs are
high. The output of an OR gate is zero if all the inputs are zeros
Internal circuit diagram of OR gate with positive level logic system.
A B Y
0 0 0
0 1 1
1 0 1
1 1 1
The circuit, which is working as OR gate with positive level logic system, will
work as AND gate with negative level logic system.
Truth table is also called table of combinations.
The number of rows in the truth table is given by 2n where ‘n’ is the number of
inputs to the gate.
Universal Gates: NAND and NOR gates are called Universal gates.
NAND gate: this is nothing but AND gate followed by NOT gate. “The output of
NAND gate is high if any one input or all inputs are low.
Truth Table:
A B Y
0 0 1
Bharadwaj 0 1 www.engineeringpapers.blogspot.com
1
1 0 1
1 1 0
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
Realization of basic gates using NAND gates:
NOT
AND
OR
NOR
NOR gate: it is nothing but OR gate followed by NOT gate. ”the output of NOR
gate is high if all the inputs are low”.
The output of NOR gate is low if any one input is high or all inputs are high.
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
A B Y
0 0 1
0 1 1
1 0 1
1 1 0
The circuit which is behaving as NAND gate with positive level logic system will
behave as NOR gate with negative level logic system and vice-versa.
Realization of basic gates using NOR gates:
Exclusive-OR gate(X-OR): the output of n X-OR gate is high for odd number of high
inputs”
A B Y
0 0 0
0 1 1
1 0 1
1 1 0
Realization of X-OR gates using NAND and NOR gates:
The Exclusive NOR gate: The Exclusive NOR gate is sometimes reffered to as the
‘COINCIDENCE’ or ‘EQUIVALENCE’ gate. This is often shortened as ‘XNOR’
gate. ‘The unique output of the XNOR gate is a LOW only when an odd number of
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
inputs are HIGH’. It is X-OR followed by NOT. The output is high for odd number of
low inputs. The output is high for even number of high inputs.
Truth table Logic Symbol
A B Y
0 0 1
0 1 1
1 0 1
1 1 0
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
2) What is a good choice??
The deciding factors are:
– Cost
– Possibility of extending the gate to more than two inputs
• NAND and NOR are more popular choices.
Points to Remember
Boolean algebra works with binary variables
A Boolean algebra is an algebraic system consisting of the set [0, 1] the binary
operations called OR, AND, or NOT denoted by the symbols”+”,”.” and “prime”.
Boolean algebra enables the logic designer to simplify the circuit used, achieving
economy of construction and reliability of operation.
Boolean algebra suggests the economic and straightforward way of describing the
circuitry used in any computer system
Boolean algebra is unique in the way that; it takes only two different values either
0 or 1.
It does not have negative number. It does not have fraction number.
The basic Boolean postulates:
Logical Multiplication s based on AND functions.
0.0=0
0.1=0
1.0=0
1.1=1
0+0=0
0+1=1
1+0=1
1+1=1
0’=1
1’=0
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
Boolean properties:
A) Properties of AND function
X.0 =0
0. X =0
X.1 =X
1. X =X
B) Properties of OR function
X+0=X
0+X=X
X+1=X
1+X=1
E) Distributive laws:
X(Y+Z) =X.Y+X.Z
X+(Y+Z) =(X+Y) +Z
G) Absorption laws:
X+XY=X
X(X+Y)
X+X’Y=X+Y
X (X’+Y) =XY
H) Demorgan’s laws:
(X+Y)’=X’.Y’
(X.Y)’=X’+Y’
In Boolean algebra’1’ is called multiplicative identity and ‘0’ is called additive
identity.
Literal a primed or unprimed Boolean variable called literal. Each variable can
have maximum of two literals. Example :X is a variable which can have two
literals X and X’
Proof for some important properties:
X+YZ=(X+Y) (X+Z)
(X+Y)(X+Z)=X.X+X.Z+X.Y+YZ
=X+XZ+XY+YZ
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
=X (1+Z) + X.Y+Y.Z
=X+X.Y+YZ
= X (1+Y) +YZ=X+YZ
X+X’Y=X+Y
= (X+X’) (X+Y) =X+Y
X (X’+Y) =XY
X (X’+Y) =XX’+XY=0+XY=XY
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
• Product terms (example X’YZ)
• Sum terms (example X+Y+Z’)
3) In Boolean algebra, product means logical AND operation and sum means logical OR
operation.
4) Two standard forms Standard forms of Boolean functions are:
• Sum-of-Products (SOP)
• Product-of-Sums (POS)
5) Product terms are called minterms and sum terms are called maxterm
MINTERM: A product term in which all the variables appear exactly once, either
complemented or uncomplemented is called a minterm.
• Property: It represents exactly one combination of the binary variables in a truth table. It
has the value ‘1’ for that combination and ‘0’ for all others.
• For n variables there are 2n distinct minterms.
• Example: Given two variables X, Y, the four minterms are X’Y’, X’Y, XY’ and XY.
• The symbol for a minterm is mj, where j denotes the decimal equivalent for which the
minterm has the value of 1.
Standard product or a minterm (m): consider two binary variables x and y
combined with an AND operation. Since each variable appears in different form
or in its complement form there are four possible combinations. X’Y’, X’Y, XY’
and XY. Each of these four AND terms is called a minterm or a standard product
term.
2-Variable: X Y Minterm (m)
0 0 X’.Y’ m0
0 1 X’.Y m1
1 0 X.Y’ m2
1 1 X.Y m3
Standard sum or Maxterm(M): A sum term that contains all the variables in
complemented or uncomplemented form is called a maxterm.
• For n variables there are 2n distinct maxterms.
• Each maxterm is the logical sum of the variables, with each variable being
complemented if the corresponding bit of the binary number is 1 and uncomplemented if
it is 0.
• The symbol for a maxterm is Mj where j denotes the decimal equivalent of the binary
combination for which the maxterm has the value 0.
• Example: Given two variables X, Y, the four maxterms are (X+Y), (X+Y’), (X’+Y),
and (X’+Y’). Each of these four OR terms is called a maxterm or a standard sum term.
X Y Maxterm (M)
0 0 X+Y M0
0 1 X+Y’ M1
1 0 X’+Y M2
1 1 X’+Y’ M3
3-Variable:
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
Conical form: Expressing the Boolean function in standard sum of product form
(SSOP) or Standard product Sums form (SPOS) is called Canonical form.
A Boolean function may be expressed algebraically from a given truth table by
forming a minterm for each combination of the variables which produces a 1 in
the function, and then taking the OR of all those terms.
X Y F
0 0 0
0 1 1
1 0 1
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
1 1 0
X Y F
0 0 0
0 1 1
1 0 1
1 1 1
Authorised By
SANTOSH BHARADWAJ REDDY
Email: help@matlabcodes.com
Engineeringpapers.blogspot.com
More Papers and Presentations available on above site
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
2 1 2
1 0 3
4 16 4 0
8 3 1
4 2 2
2 1 3
1 0 4
• While combining the squares in K-maps it is necessary to ensure that all the minterms
are included.
• To minimize the number of terms in the simplified function any redundant term has to
be avoided. So, the procedures of merging the squares need to be systematic.
• Three terms introduced to systematize the combining procedure are listed below.
Implicant
Prime Implicant
Essential Prime Implicant
• An implicant is a product term (product of one or more literals) that could be used to
cover minterms of the function. All the rectangles on a map made up of squares
containing 1’s correspond to implicants.
• A prime implicant is an implicant that is not a part of any other implicant of the
function. Equivalently, prime implicant is a set of squares that is not a subset of any set
containing larger number of squares.
• An essential prime implicant is a prime implicant that covers at least one minterm that
is not covered by any other prime implicant.
MINIMIZATION USING QUINE-MCCLUSKEY (TABULAR) METHOD:
The K-map method is suitable for simplification of Boolean functions up to 5 or 6
variables. As the number of variables increases beyond this, the visualization of adjacent
squares is difficult as the geometry is more involved.The ‘Quine-McCluskey’ or
‘Tabular’ method is employed in such cases. This it a systematic step by step procedure
for minimizing a Boolean expression in standard form.
Procedure for Finding the Minimal Expression:
Arrange all minterms in groups, such that all terms in the same group have same
number of 1’s in their binary representation.
Start with the least number of 1’s and continue with grouping of increasing
number of 1’s. the number of 1’s in each term is called the index of that term i.e.,
all the minterms of some index are placed in a some group. The lowest of value
index is zero.
Separate each group by a thick line. This constitutes the I stage.
Compare every term of the lowest index (say i) group with each term in the
successive group of index (say, i + 1).
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
If two minterms differ only one variable, that variable removed and a dash (–) is
placed at the position, thus a new term with only less literal is formed. If such a
situation occurs, check marks is placed next to both minterms.
After all pairs of terms with indices i and (i + 1) have been considered, a thick
line is drawn under the last terms.When the above process has been repeated for
all the groups of I stage, one stage of elimination have been completed. This
constitutes the II stage.
The III stage of elimination should be repeated of the nearly formed groups of
second stage. In this stage, two terms can be compared only than they have dashes
in some positions.
The process continues to next higher stages until no further comparisons are
possible. (i.e., no further elimination of literals).
All terms which remain unchecked (No sign) during the process are
considered to be prime implicants (PIs). Thus, a set of all PIs of the function is
obtained.
From the set of all prime implicates, a set of essential prime implicants (EPIs)
must be determined by preparing prime implicant chart as follow.
The PIs should be represented m rows and each minterm of the function in a
column.
Crosses should be placed in each row to show white composition of minterms that
makes the PIs.
A complete PIs chart should be inspected for columns containing only a single
cross. PIs that cover minterms with a single cross in their column are called EPIs.
The minterms which are not covered by the EPIs are taken into consideration and
a minimum cover is obtained form the remaining PIs.
Digital IC gates are classified not only by their logic operation, but also by the
specific logic circuit family to which they belong. Each logic family has its own
basic electronic circuit upon which more complex digital circuit and functions are
developed.
Different types of logic gate families:
RTL: Resister transistor logic gate family.
DCTL: Direct coupled transistor Logic gate family
RCTL: resistor capacitor transistor logic
DTL: Diode Transistor logic gate family
TTL: Transistor Logic gate family
IIL: Integrated injection logic
HTL: High threshold Logic
ECL: Emitter coupled logic
MOs: Metal Oxide Semi conductor
CMOS: Complementary Metal Oxide Semi-conductor
Some Common 74xx gates
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
• 7404 - inverter
• 7400 (2-input NAND), 7402 (2 Input Nor)
• 7408 (2-input AND), 7432 (2-input OR)
• 7410 (3-input NAND)
• 7486 (2-input XOR)
• 7420 (4 input NOR)
HTL is a modified from of DTL and IIL is a modified form of DCTL
Because of high package density MOS and I2L logic gate families are used for
Large Scale integration (LSI) functions.
TTL, ELC and CMOS are used for medium Scale Integration (MSI) or Small
Scale Integration (SSI).
Each logic gate family is identified with a series number. For example TTL
family ICs are variable in 74/54 series.CMOS IC’s usually designed with 4000
series and ECL family with 10000 series.
RTL, DTL, ECL, and I2L Logic families use bipolar transistors. Hence these
families are called bipolar logic gate families.
MOS and CMOS families’ uses unipolar transistors called Metal-Oxide
Semiconductor Filed effect Transistor. Hence these families are called unipolar
logic gate families.
Fan-out: the number of standard loads that the output of the gate can drive without
disturbing its normal operation
Fad-in: the maximum number of inputs that can be applied to the logic gate.
Power dissipation: the power consumed per gate.
Propagation delay: the average transition delay time for the signal to propagate
from input to output when the signals change in value.
Noise Margin: it is the limit of a noise voltage which may be present without
impairing the proper operation of the circuit.
Figure of merit: the product of propagation delay time and power dissipation is
known as figure of merit of performance of a gate. Normally minimum value is
desired.
Logic Swing: the difference between the two output voltages(VoH-VoL) is known
as the logic swing of the circuit
Noise Immunity: the ability to with stand variation in they input levels
Saturation logic: a form of logic gates in which one output state is the saturation
voltage level of the transistor. Ex: RTL, DTL, TTL.
Unsaturated logic or Current Mode Logic: a form at logic with transistor operated
outside the saturation region. Ex: CML or ECL.
ECL has ultra-fast switching speed and low logic swing.
The temperature range of 74-series of TTL logic gate family is 00C to 700C.this
series of IC’s is used for commercial applications
The temperature range of 54-series of TTL logic gate family is -550C to
1250C.this series of IC’s is used for Military l applications
Voltage parameters of the digital ICS:
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
High level input voltage,V1H:this is the minimum input voltage which is
recognized by the gate as logic 1
Low level input voltage,V1L:this is the maximum input voltage which is
recognized by the gate as logic 0
High level output voltage,V0H:this is the minimum voltage available at the output
corresponding to logic 1
Low level output voltage, VOL: this is the maximum voltage available at the output
corresponding to logic 0.
The number of various functions available in a logic family is known as the
breadth of logic family.
When the output of logic gates is connected together additional logic functions are
performed. This is known as wired logic.
When the output is available in complemented as well as un complemented form
it is referred to as complementary outputs. This eliminates the need of using
additional inverters.
Passive pull-up: in a bipolar logic circuit, a resistance Rc used in the collector
circuit of the output transistor is known as passive pull-up.
Active pull-up: in a bipolar circuit a BJT and diode circuit used in the collector
circuit of the output transistor instead of Rc is known as active pull-up. this
facility is available is TTL
The advantages of active pull-up over passive pull up are increased speed of
operation and reduced power dissipation
Open collector output: in a bipolar logic circuit if nothing is connected at the
collector of the output transistor and this collector terminal is available as IC pin,
it is known as open collector output.
Tri-state logic: in the tri-state logic, in addition to low impedance 0 and 1 there is
a third state known as the high-impedance state. When the gate is disabled it is in
the third state.
In TTL logic gate family three different types of output, configurations are
available: they are open collector output type, totem-pole output type and tri-state
output type.
The advantages of open-collector output type are wired-logic can be performed
and loads other than the normal gate can be used.
The tri-state logic devices are used in bus oriented systems.
If any input of TTL circuit is left floating, it will function as if it is connected to
logic 1 level.
The supply voltage range of 74-series is 5±0.25V and for 54-series is 5 ±0.5 V
Negative supply is performed in ECL family because, the effect of noise present
in the supply line is reduced considerably and any accidental short-circuiting of
output to ground will not damage the gate.
MOS logic is mainly used for LSI and VLSI applications because the silicon chip
area required for fabrication of a MOS device is very small.
The fan-out of MOS logic gates is very high because of their high input
impedance.
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
If any unused input terminal of a MOS gate is left unconnected, a large voltage
may get induced at the unconnected input which may damage the gate.
Different versions available in TTL logic gate family
74/54L: Low-power
74/54H: High-power/high-speed
74/54LS: Low-power Schottky
74/54S: Schottky
74/54 LS: Low power Schottky
74/54 AS: Advanced Schottky
74/54 ALS: Advanced Low-Power Schottky
The supply voltage required for ECL logic family is -5.2V±10%
Comparison of Different Logic Gate families:
Faster logic gate family is ECL. it is also called current model Logic
Slowest Logic gate family is CMOS
The logic gate family, which consumes less power CMOS
The logic gate family, which consumes more power ECL
The logic gate family, which is having highest fan out CMOS
In CMOS circuit, nMOS transistor conducts if the gate to source voltage is more
positive where as pMOS conducts if gate to source voltage is more negative.
NMOS is faster than PMOS
In tristate logic in addition to two low impedance outputs 0 and 1, there is third
state known as high impedance state.
TTL Logic Circuits: If the diodes of DTL gate are replaced by transistor. The
modified circuit, called TTL.
TTL standard Inverter
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
Standard 2 input TTL NAND gate
The diode “D1” is used to keep the transistors Q4 in OFF stats when Q# is in ON
state.
2-input NAND gate with open-collector output configuration.
Gates with open collector output can be used for wired-AND operation
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
. =
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
Similar to open collector output in TTL, open emitter outputs are available in
ECL. The outputs of two or more ECL gates can be connected to get
additional logic without using additional hardware. Wired-OR operation is
possible with ECL ckts
Authorised By
SANTOSH BHARADWAJ REDDY
Email: help@matlabcodes.com
Engineeringpapers.blogspot.com
More Papers and Presentations available on above site
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
CMOS Gate circuits: A logic circuit that combines p-channel and n-channel MOS
transistors on the same chip is known as complementary MOS or CMOS circuit. Major
advantage of CMOS is very low power dissipation. Since technology has improved such
that a very small chip area is required to fabricate MOS devices the CMOS can now
operate on faster speed. Indeed the CMOS circuits have already replaced TTL in many
practical applications. CMOS can operate over a supply range of 3.3 V to 15V. But lower
power supply reduces the noise immunity.
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
Transistor Counts (CMOS)
Inverter: 2 transistors
Two input NAND: 4 transistors
Two input AND: 6 transistors
Two input NOR: 4 transistors
Two input OR: 6 transistors
Three input NAND: 6 transistors
Three input AND: 8 transistors
Three input NOR: 6 transistors
Three input OR: 8 transistors
NAND, NOR gates are better than AND, OR gates because they take less transistors.
NAND gates better than NOR gates because they are faster (we won’t discuss why, you
will find out in
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
S = A ⊕B
C = A.B
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
2. Full-Adder: a combinational circuit that performs the addition of three bits is
called a full-adder .it consists of three inputs and two outputs
Inputs Outputs
AB C S C0
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
Difference, D= A ⊕ B
Borrow, Bo= AB
Inputs Outputs
A B D Bo Half adder can be
1 0 0 0 converted into half
subtract or with an
0 1 1 1 additional inverter.
1 0 1 0 Full Subtractor: Full
1 1 0 0 subtractor subtracts
one bit from the other by taking previous borrow into account and generates
difference and borrow.
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
Inputs Outputs
A B C D Bo
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
Difference, 1 0 1 0 0
D= ∑(1,2,4,7) D= 1 1 0 0 0
A ⊕ B ⊕C 1 1 1 1 1
Borrow, Bo= ∑ (1, 2,3,7 )
Bo= A.B +C ( A ⊕B )
Quarter adder/subs tractor: the sum output of half adder is called Quarter adder.
The difference output of half substarctor is called Quarter subtract or. quarter
adder/subtract or is a same as two input XOR gate
Four bit binary parallel adder can be constructed by using three full adders and
one half adder or by using four adders with input carry for least significant bit full
adder is zero.
Four bit binary parallel adder shown in figure is also called Ripple carry adder.
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
Authorised By
SANTOSH BHARADWAJ REDDY
Email: help@matlabcodes.com
Engineeringpapers.blogspot.com
More Papers and Presentations available on above site
Where, Pi = Ai ⊕ Bi; called carry propagate, & Gi = Ai. Bi, called carry generate.
Boolean function for the carry output of each stage and substitute for each Ci its value
from the previous equations:
C1 = G 0 + P 0 C0
C2 = G1 + P1 C1 = G1 + P1 (G0 + P0 C0) = G1 + P1 G0 + P1 P0 C0.
C3 = G2 + P2 C2 = G2 + P2 (G1 + P1 G0 + P1 P0 C0)
= G2 + P2 G1 + P2 P1 G0 + P2 P1 P0 C0.
Carry look-ahead adder is faster than ripple carry adder
4-bit binary parallel adder with a look-ahead carry generator (FAST ADDER):
In the 4-bit look ahead carry generator. The carry outputs are generated simultaneously
with the application of Augend word, addend word and the input carry. What is
remaining are the sum outputs.
The sum output Si = Pi ⊕ Ci.
S0 = P0 ⊕ C0 = A0 ⊕ B0 ⊕ C0
S1 = P1 ⊕ C1 = A1 ⊕ B1 ⊕ C1
S2 = P2 ⊕ C2 = A2 ⊕ B2 ⊕ C2
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
S3 = P3 ⊕ C3 = A3 ⊕ B3 ⊕ C3.
Similarly carry output Ci+1 = G1 + Pi Ci
⇒ Final o/p carry ⇒ C4 = G3 + P3 C3.
Using the above equations, the 4-bit binary parallel adder with a look ahead carry
generator can be realized as shown in Fig.
From the diagram, the addition of two 4 bit numbers can be done by a look ahead carry
generator in a 4 gate propagation time.
Also, to realize that the addition of n-bit binary numbers takes the same 4-stage
propagation delay.
Comparator: It is a CLC used to compare two binary numbers. And produces 3 outputs
Ex: 1- Bit comparator
4-Bit Comparator:
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
Code Converters
A code converter is a combinational logic circuit that changes data presented in one type
of binary code to another type of binary code. A general block diagram of a code
converter is shown in Fig.
Code converter
Binary to gray code converter: If has
four inputs (B3 B2 B1 B0) representing 4-bit binary numbers and four outputs (G3 G2
G1 G0) representing 4-bit gray code.
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
When digital date is transmitted from Transmitter to receiver, to know at the
receiving end, whether the received data is free of error.
To make the transmission accurate, special error detection methods are used.
To detect errors, keep a constant check on the data being transmitted.
To check accuracy we can generate and transmit an extra bit along with the
message (data).
This extra bit is known as the parity bit and it decides whether the data
transmitted is error free or not.
There are two types of parity bits, namely even parity and odd parity.
In a 3-bit even parity generator, the parity bit generated is such that it makes total
member of 1s even
Parity Checker: The parity checker for the above 3-bit even parity is
E= (A ⊕ B) ⊕ (C ⊕ P)
Decoder: a decoder is a logic circuit the converts an n-binary input code into M (2n)
output line will be activated for only one of the possible combinations of inputs.
A decoder is a combinational circuit that converts binary information from ‘n’
input lines to a maximum of 2n unique output lines.
Eg: 2x4 line decoder
Decoder are available in two different types of output forms:
1) Active high output type decoder
2) Active low output type of decoders
Active high output type of decoders are constructed with AND gates and active
low output type of decoders are constructed with NAND gates
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
Examples of decoders:
BCD-to-7-segement decoder
BCD-7Segment decoder
Binary decoder
Truth table of active high output type of decoder
X Y D0 D1 D2 D3
0 0 1 0 0 0
0 1 0 1 0 0
1 0 0 0 1 0
1 1 0 0 0 1
Active low output type of decoders will give the output low for given input
combination and all other outputs are high.
Truth table of active low output type of decoder
X Y D0 D1 D2 D3
1 0 0 1 1 1
0 1 1 0 1 1
1 0 1 1 0 1
1 1 1 1 1 1
3 to-8 line decoder is also called binary to octal decoder or converter. It is also
called 1-of 8 decoder because only one of the 8 outputs is activated at a time.
Decoder are widely used in the memory system of a computer, where they
response to the address code input from the CPU to activate the memory storage
location specified by the address code.
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
Decoders are also used to convert binary data to a form suitable for displaying on
decimal read outs.
Decoders can be used to implement combinational circuits, Boolean functions etc.
Demultiplexier: A decoder with enable inputs acts as a demultiplexer. ”a
demultiplexer is a circuit that receives information on a single line and transmit that
information on one of 2n possible output lines. The selection of specific output line is
controlled by the bit values of ‘n’ selection lines.
Multiplexer:
Multiplexing means transmitting a large number of information units over a smaller
number of channels are lines. ”a digital multiplexer is a combinational circuit that
selects binary information from one of many inputs lines and direct it a single output
line. The selection of a particular line is controlled by a set of selection lines.
Normally, there are 2n input lines and ‘n’ selection lines whose bit combinations
determine which input is selected.
Multiplexers can be used for the implementation of Boolean functions,
combinational circuits. They can also used for parallel to serial conversion.
Multiplexers is also called data selector or universal element
All three variable Boolean equations can be implemented by using 8x1
multiplexer without using any additional gates. Some but not all three variable
Boolean equations can also be implemented with 4x1 mux without using any
additional gates.
S1 S0 Y
0 0 I0
0 1 I1
1 0 I2
1 1 I3
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
Encoder: a decoder identifies a particular code present at the input terminals of the
circuit. The inverse process is called encoding. ”an encoder has number of inputs (2n)
one and only one of which is in the high state or active, and an n-bit code is generated
upon which of the inputs is excited.
A priority encoder is a practical form of an encoder. In this type of encoder, a
priority is assigned to each input so that, when more than one input is
simultaneously active, the input with the highest priority is encoded.
ROM (Read Only Memory): ROM is nothing but the combination of decoder and
encoder. It is a semi-conductor memory and which is a permanent memory, ROM can
also be defined as a simple code conversion unit. It has N no.of inputs and M no.of
out puts
2NXM
ROM can be viewed as a combinational circuit with AND gates connected as a decoder
and number of OR gates equal to the number of outputs. Internally a ROM contains a
decoder and a storage array.
The memory which is constructed by using only gates is ROM.
Example: 5X32 ROM
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
Sequential Digital circuits: the output at any instant of time not only depends on
the present inputs but also on the previous inputs or outputs. For the design of
these circuits in addition to gates we need one more element flip-flop.
Examples for sequential digital circuits are Registers, shift register, counters etc.
Two cross coupled inverters will form a basic latch which can store one bit of
information
Flip-flop: Flip-flop is also called bistable multivibrator or binary. It can store one bit
of information
In a flip-flop one output is always complement of the other out
Flip-flop has two stable states.
Types of FFs: a) S-R FF b) J-K FF c) Master-Slave J-K FF d) T-FF e) D-FF
Clocked S-R Flip-flop: it is called set-reset Flip-Flop.
Truth table:
S R Qt Qt+1
0 0 0 0
1 1
_______
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
CLK PR’ CLR’ Qt Resulting state
0 1 0 0 0 1 0 0 clear
1 0 0 1 1 1 preset or clear
_______ 0 0 0 ? intermediate
1 0 0 1 1 1 1 Qt+1 Normal FF next state is
1 1 determined by S&R
_______
1 1 0 1
1 1
N1 and N2 from a basic latch.N3 and N4 are called steering gates or Control
gates, because they are use to control the outputs
S and R inputs are called synchronous inputs Preset (Pr) and clear (Cr) inputs are
called direct inputs or asynchronous inputs.
The output of the flip-flop changes only during the pulse. In between clock pulses
the output of the flip-flop does not change.
`During normal operation of the flip-flop, preset and clear inputs must be always
high.
J-K Flip-Flop: The disadvantages of S-R flip-flop is S=1, R=1 output cannot be
determined. This can be eliminated in J-K flip-flop.
S-R flip-flop can be converted to j-k flip-flop by using the two equation S=JQ’
and R=KQ
Truth Table:
J K Qt Qt+1
0 0 0 0
1 1
________
0 1 0 0
1 0
________
1 0 0 1
1 1
________
1 1 0 1
1 0
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
Race around problem is present in the j-k flip-flop, when both J=K=1
Toggling the output more than once during the clock pulse is called Race around
problem
The race around problem in J-K flip-flop can be eliminated by using edge
triggered flip-flop or master slave J-K flip-flop or by using the clock signal whose
pulse width is less than or equal to the propagation delay of fip-flop
Master slave flip-flop is a cascading of two J-K flip-flop positive or direct clock
pulses are applied to master and these are inverted and applied to the slave flip-
flop.
D flip-flop: it is also called a delay flip-flop.by connecting an inverter in between J
and K input terminals (or) connecting an inverter in between S and R input terminals
D flip-flop is obtained. K always receives the compliment of J.
D Qt+1
0 0
1 1
D flip-flop is a binary used to provide delay. The bit on the D line is transferred to
the output at the next clock pulse.
Transparent D-FF +ve edge triggered D-FF -ve edge tried FF +ve edge trid JK-FF
T Qt Qt+1
0 0 0
0 1 0
1 0 1
1 1 0
If XkHz clock signal is applied to a T flip-flop when T=1, then the output Q
signal frequency is given by X/2 thus it acts as a frequency divider.
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
EXITATION TABLES
S-R
PS NS Inputs
PS NS Inputs Qt Qt+1 J K
Qt Qt+1 S R 0 0 0 X
1 0 0 X 0 1 1 X
0 1 1 0 1 0 X 1
1 0 0 1 1 1 X 0
1 1 X 0
T-FF D-FF
PS NS Inputs
Qt Qt+1 T PS NS Inputs
0 0 0 Qt Qt+1 D
0 1 1 0 0 0
1 0 1 0 1 1
1 1 0 1 0 0
1 1 1
Setup Time (ts): time interval immediately preceding the active transition of clock
signal during which the control input must be maintained at the proper level.
Hold Time (tH): the time interval I immediately following the active transition of
the clock signal during which the synchronous control input must be maintained
at the proper level.
Propagation Delay:
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
• Tplh -- time between a change in an input and a low to high change on the output.
Measured from 50% point on input signal to 50% point on the output signal. The ‘lh’ part
(low to high) refers to OUTPUT change, NOT input change
• Tphl -- time between a change in an input and a high to low change on the output.
Measured from 50% point on input signal to 50% point on the output signal. The ‘hl’ part
(high to low) refers to
OUTPUT change, NOT input change
Counters and registers belong to the category of MSI sequential logic circuits. counters
are mainly used in counting applications, where they either measure the time interval
between two unknown time instants or measure the frequency of a given signal, registers
are primarily used for the temporary storage of data present at the output of a digital
circuit before they are fed to another digital circuit.
Ripple (Asynchronous) Counter:
A ripple counter is a cascaded arrangement of flip-flops where the output of one flip-flop
drives the clock input of the following flip-flop.
In a ripple counter, also called an asynchronous counter or a serial counter, the clock
input is applied only to the first flip-flop, also called the input flip-flop, in the cascaded
arrangement. The clock input to any subsequent flip-flop comes from the output of its
immediately preceding flip-flop.
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
Propagation Delay in Ripple Counters: the effective propagation delay in a ripple counter
is equal to the sum of propagation delays due to different flip-flops.
Increased propagation delay puts a limit on the maximum frequency used as clock input
to the counter. The clock signal time period must be equal to or greater than the total
propagation delay.
The maximum clock frequency corresponds to a time period that equals the total
propagation delay.
If tpd is the propagation delay in each flip-flop, then, in a counter with N flip-flops
having a modulus of less than or equal to 2N, the maximum usable clock frequency is
given by
fmax = 1/(N X tpd).
Two propagation delay times are specified in the case of flip-flops, at the output
1) LOW-to-HIGH transition (tpLH)
2) HIGH-to-LOW transition (tpHL).
In such a case, the larger of the two should be considered for computing the maximum
clock frequency. A 3-bit counter divide the clock input frequency by 8
Count Capability of Ripple Counters:
Maximum count capability: N = 2n – 1
Where N is the maximum count number and n is the number of flip-flops.
Ex: if n = 12, the maximum count capability is, N = 212 – 1 = 4095
The number of flip-flops required to have a certain count capability: n = 3.32 log10 N
Ex: count capability is 5000
n = 3.32 log10 5000 = 12.28=13 FFs required.
Counting Speed of Ripple Counters
For reliable operation of the counter, the upper limit of the clock pulses of the counter
can be calculated from f =1/nt (109) where n is the number of flip-flops and t is the
propagation delay of each flip-flop.
Synchronous Counter
In a synchronous counter, also known as a parallel counter, all the flip-flops in the
counter change state at the same time in synchronism with the input clock signal. The
clock signal in this case is simultaneously applied to the clock inputs of all the flip-flops.
The delay involved in this case is equal to the propagation delay of one flip-flop only,
irrespective of the number of flip-flops used to construct the counter. In other words, the
delay is independent of the size of the counter.
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
Modulus of a Counter
The modulus (MOD number) of a counter is the number of different logic states it goes
through before it comes back to the initial state to repeat the count sequence. An n-bit
counter that counts through all its natural states and does not skip any of the states has a
modulus of 2n.
We can see that such counters have a modulus that is an integral power of 2, that is, 2, 4,
8, 16 and so on. These can be modified with the help of additional combinational logic to
get a modulus of less than 2n.
To determine the number of flip-flops required to build a counter having a given
modulus, identify the smallest integer m that is either equal to or greater than the desired
modulus and is also equal to an integral power of 2. For instance, if the desired modulus
is 10, which is the case in a decade counter, the smallest integer greater than or equal to
10 and which is also an integral power of 2 is
16. The number of flip-flops in this case would be 4, as 16 = 24. On the same lines, the
number of flip-flops required to construct counters with MOD numbers of 3, 6, 14, 28
and 63 would be 2, 3, 4, 5 and 6 respectively. In general, the arrangement of a minimum
number of N flip-flops can be used to construct any counter with a modulus given by the
equation
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
Universal shift register: a register which is able to shift the information from left
to right or from right to left and when can perform all four operations is called
universal shift register
Applications of shift registers:
Serial to parallel conversion (it is also called spatial to temporal code
conversion)
Parallel to serial conversion (it is also called temporal to spatial code
conversion)
Sequence generator
Multiplication and division
Ring counter and twisted ring counter
Digital delay line (serial input and serial out operations)
Left shift operation is nothing but multi[lied by 2
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
Ring counter: shift register can be used as ring counter when Q0 output terminal
is connected to serial input terminal
An n-bit ring counter can have “n” different output states. it can count n-clock
pulses.
Twisted ring Counter: it is also called Johnson’s Ring counter. it is formed when
Q0 output terminal is connected to the serial input terminal of the shift register
An n-bit twisted ring counter can have maximum of 2n different output state.
Counters:
The counter is driven by a clock signal and can be used to count the number of
clock cycles. Counter is nothing but a frequency divider circuit.
Two types of counters are available:1synchronous 2.asynchronous
Synchronous counters are also called parallel counters .in these types of counters
the clock pulses are simultaneously applied to all the filp-flops.
Asynchronous counters are also called Ripple or serial counters. In this type of
counters the output of one flip-flop is connected to the clock input of n next flip-
flop and so on.
A counter having n-flip-flops a can have 2n output states i.e. it can count 2nclcok
pulses
The largest binary number that can be represented by an n-bit counter has a
decimal equivalent of 2n-1.
A counter can be made to count either in the up mode or in the down mode.
Synchronous counters are faster than asynchronous counters
The modules of a counter are the total number of states through which the counter
can progress. For example mod-8 counter is having 8 different states (000 to111).
The output signal frequency of Mod-n counter is (1/n)th of the input clock
frequency. Hence that counter is also called ÷n counter.
The number of flip-flops(n) required to construct Mod N counter can be obtained
from the following formula
2n-1<N≤2n
A decade counter is also called MOD-10 or ÷10 counters requires 4 flip-flops
Any binary counter can be a modules counter where as the modules counter need
not be a binary counter.
Six flip-flops are required to construct mod-60 counter
Two types of synchronous counters are available.
1. Series carry
2. Parallel
Ring Counter
The ring counter is the simplest form of shift register counter. In such a counter the
flipflops are coupled as in a shift register and the last flip-flop is coupled back to the first,
which gives the array of flip-flops the shape of a ring.
‘n’ bit Ring counter counts n states.
Johnson Counter
In modified ring counter is known as a switch tail ring counter or Johnson counter. The
modified ring counter can be implemented with only half the number of flip-flops.
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
‘n’ bit Johnson Ring counter counts 2n states.
Ring Counter Applications
(1) Frequency dividers
(2) Counters
(3) Code generators and
(4) Period and sequence generators
a shift register connected as a ring counter can be used as a frequency divider.
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
Access rate: it is defined as the reciprocal; of access time. it is measured in words
per seconds
Access time depends on the physical characteristics of the storage medium. And
also on the type of access mechanism used.
Access modules: an important property of memory device is the order or sequence
in which information can be accessed.
Random access: it the access time is independent of position of the memory
location, then it is called random-access mode, i.e the access time of every
memory location is same.
Sequential access: a memory in which the location can be accessed in a sequence
only is referred to as a sequential memory. Ex: Magnetic tape, magnetic bubble.
Some memory devices such as magnetic disks or drums contain a large number of
independent rotating tracks. If each track has its own read-write head, the tracks
may be access randomly, although access within each track is serial. in such cases
the access mode is same time s called semi-random or direct access
Alterability: the method used to write information into a memory may not be
irreversible, in that once information has been written, it can not be alterable
while the memory is in use i.e on-line
Memory whose contents can not be altered on-line are called ROM’s
ROMs whose contents cam be changed are called PROMs.
Memories in which reading or writing can be done on-line are called R/W
memories.
Volatile memory: in this type if memory, the stored information is dependent on
power supply i.e. the stored information will remains as it is as long as power is
applied
eg: RAM
Non-Volatile memory: in this type of memory, the stored information is
independent of power supply, i.e the stored information will present as it is even if
the power fails.
Eg: ROM, PROM, EPROM, EEPROM etc.
PROM: Programmable read Only memory
EPROM: erasable Programmable Read only memory
EPROM :electrically erasable programmable red only memory
EAPROM: electrically alterable programmable read only memory.
Static RAM (SRAM): in this type of memory binary information is stored in
terms of voltage. SRAM stores ones and zeros using conventional Flip-flops.
Dynamic RAM (DRAM): in this type of memory, binary information is stored in
terms of charge on the capacitor. The memory cells of DRAMS are basically
charge storage capacitors with driver transistors. the presence or absence of
charge in a capacitor is interpreted as logical 1 or 0
Because of the leakage property of the capacitor, DRAMS require periodic charge
refreshing to maintain data storage.
The package density is more in the case of DRAMs. but additional hardware is
required for memory refresh operation.
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
SRAMS consume more poor when compared to RAMs, SRAMs a faster than
DRAMs.
Destructive Read Out memory: the memory is known as destructive read out
memory if the reading method destroys its contents. For such memories each read
operation must be followed by write operation to restore the contents .Ex
magnetic core.
Non-extractive read out: it is called NDRO if the reading operation does not
change its contents. Ex: magnetic tapes, disks, RAM, ROMs etc.
Semiconductor technologies used for fabrication of memories are
a)Bipolar b)unipolar
CCD (Charge coupled device) is a volatile memory and sequential access-type.
Low cost and high access rate are describe memory characteristics
By changing the hardware logic used for the chip selection of memory IC, it is
possible to change the memory mapping.
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
the advantage of R-2R ladder type of DAC over Binary weighted resistors type of
DAC
a) Better linearity
b) It requires only two different types of resistors with values R and 2R
A linearity: a d/a converter is said to be ideally or perfectly linear, if it gives equal
increments in the analog output voltage for equal increments in the numerical
value of the digital value.
D/A resolution: it is defined as the smallest change in the analog output voltage
corresponding to a change of one bit in the digital input. the percentages
resolution of an n-bit DAC is given by 1/2n-1*100
the resolution of an n-bit DAc with a range of output voltage from 0 to Volts is
given by V/2n-1 V
Settling time of DAC: it is defined as the time required for the analog output
voltage to reach and stay within a specified limit, after application of a digital
input.
Monotonicity: a DAC is said to be monotonic if its output voltage increases
regularly as its binary digital input signals is increased from one value to the next
value. output wave form should be perfectly staircase with no downwards steps,
as input is increased for a proper monotonic DAC
The accuracy of D/A converter is a measure of the difference between the actual
analog output voltage and what the output should be in the ideal case.
An analog to digital converter ADC converts analog voltages onto the
corresponding digital code.
An ADC usually considered as an encoder
The conversion time ADC is the time required for conversion of one analog
sample to corresponding digital code
Different types of ADC’s are available:
Simultaneous ADC or Parallel comparator of flash type of ADC
Counter type of ADC or Pulse width type of ADC
Integrator type of ADC or single slop of ADC
Dual slope integrator ADC
Succeive approximation type ADC etc
Flash type of ADC is the fastest type of ADC
An n-bit flash type of ADC requires 2n-1 comparators
Counter type of ADC uses linear search and succive approximation type of ADC
usesu binary search.
Ring counter is used in successive approximation type of ADC
ADC Resolution: it is defined as the change in the input voltage require for a one
–bit change in the output.
An ADC having an analog range of –V/2 to +V/2 and n-bit digital output has a
resolution of V/ (2n-1) volts.
Dual slope AC is more accurate
Flash type of ADC require no counters
Counter type of ADC and successive approximation type of ADC used DAC
Bharadwaj www.engineeringpapers.blogspot.com
Bharadwaj
ENGINEERINGPAPERS.BLOGSPOT.COM
Authorised By
SANTOSH BHARADWAJ REDDY
Email: help@matlabcodes.com
Engineeringpapers.blogspot.com
More Papers and Presentations available on above site
Bharadwaj www.engineeringpapers.blogspot.com