excellent presentation of basics of digital electronics. If you add the logical diagrams for flip flops(master- slave, J-K, S-R,...) it would more easy for the students to understand. Very good.
2.
Chapter Objectives <ul><li>Understand the number system used in Digital Circuits </li></ul><ul><li>Understand the types of complements: </li></ul><ul><ul><li>1’s complement </li></ul></ul><ul><ul><li>2’s complement </li></ul></ul><ul><ul><li>9’s complement </li></ul></ul><ul><ul><li>10’s complement </li></ul></ul><ul><li>Understand the types of codes in digital systems </li></ul>
3.
Number System <ul><li>Number system is used to represent the numbers. </li></ul><ul><li>The different types of number systems are: </li></ul><ul><ul><li>Decimal number </li></ul></ul><ul><ul><li>Binary number </li></ul></ul><ul><ul><li>Octal numbers </li></ul></ul><ul><ul><li>Hexadecimal numbers </li></ul></ul>
4.
Decimal Number <ul><li>It uses digits from 0 to 9 for representing the numbers. </li></ul><ul><li>It is represented with base 10. </li></ul><ul><li>A decimal number can be represented using positional weights. </li></ul><ul><li>Example: </li></ul><ul><ul><li>(198) 10 = 1 X 10 2 + 9 X 10 1 + 8 X 10 0 </li></ul></ul>
5.
Binary Number <ul><li>It consists of only two digits, 0 and 1. </li></ul><ul><li>It is represented with base 2. </li></ul><ul><li>A binary number can be represented using positional weights. </li></ul><ul><li>Example: </li></ul><ul><ul><li>(198) 10 = (11000110) 2 </li></ul></ul><ul><ul><li>= 1 X 2 7 + 1 X 2 6 + 0 X 2 5 + 0 X 2 4 + 0 X 2 3 + 1 X 2 2 + 1 X 2 1 + 0 X 2 0 </li></ul></ul><ul><ul><li>= 128 + 64 + 0 + 0 + 0 + 4 + 2 + 0 </li></ul></ul><ul><ul><li>= 198 </li></ul></ul>
6.
Octal Number <ul><li>It uses digits from 0 to 7 for representing the numbers. </li></ul><ul><li>It is represented with base 8. </li></ul><ul><li>An octal number can be represented using positional weights. </li></ul><ul><li>Example: </li></ul><ul><ul><li>(237) 8 = 2 X 8 2 + 3 X 8 1 + 7 X 8 0 </li></ul></ul><ul><ul><li>= 2 X 64 + 3 X 8 + 7 X 1 </li></ul></ul><ul><ul><li>= 128 + 24 + 7 </li></ul></ul><ul><ul><li>= (159) 10 </li></ul></ul>
7.
Hexadecimal Number <ul><li>It uses 16 symbols, 0 to 9 and A to F for representing the numbers. </li></ul><ul><li>It is represented with base 16. </li></ul><ul><li>A hexadecimal number can be represented by using positional weights. </li></ul><ul><li>Example: </li></ul><ul><ul><li>A3BH = (A3B) 16 = A X 16 2 + 3 X 16 1 + B X 16 0 </li></ul></ul><ul><ul><li>= 10 X 16 2 + 3 X 16 1 + 11 X 16 0 </li></ul></ul><ul><ul><li>= 2560 + 48 + 11 </li></ul></ul><ul><ul><li>= (2619) 10 </li></ul></ul>
8.
Arithmetic Operations <ul><li>Arithmetic operations are performed in arithmetic unit of the digital systems by using binary numbers. </li></ul><ul><li>The various types of arithmetic operations are: </li></ul><ul><ul><li>Binary addition </li></ul></ul><ul><ul><li>Binary subtraction </li></ul></ul><ul><ul><li>Binary multiplication </li></ul></ul><ul><ul><li>Binary division </li></ul></ul>
9.
Complements <ul><li>Complements are the binary representation of negative numbers in digital systems. </li></ul><ul><li>The various types of complements are: </li></ul><ul><ul><li>1’s complement: It is obtained by changing all 0’s to 1’s and all 1’s to 0’s, of a binary number. </li></ul></ul><ul><ul><li>2’s complement: It is obtained by adding 1 to the 1’s complement. </li></ul></ul><ul><ul><li>9’s complement: It is obtained by subtracting each digit in the number by 9. </li></ul></ul><ul><ul><li>10’s complement: It is obtained by adding 1 to the 9’s complement. </li></ul></ul>
10.
Binary Coded Decimal <ul><li>Binary Coded Decimal (BCD) is the combination of four digits, 8241, which represent the binary numbers. </li></ul><ul><li>Example: </li></ul><ul><ul><li>BCD equivalent of 1 is 0001 </li></ul></ul><ul><ul><li>BCD equivalent of 2 is 0010 </li></ul></ul><ul><ul><li>BCD equivalent of 5 is 0101 </li></ul></ul><ul><ul><li>BCD equivalent of 9 is 1001 </li></ul></ul>
11.
Codes <ul><li>Code is the symbolic representation of discrete information, which can be represented in the form of numbers and letters. </li></ul><ul><li>Codes are classified in five groups: </li></ul><ul><ul><li>Weighted binary codes: These codes follow the positional weighting principle in which the position of the numbers represent the weight. The different types of weighted codes are: </li></ul></ul><ul><ul><ul><li>8421 code </li></ul></ul></ul><ul><ul><ul><li>2421 code </li></ul></ul></ul><ul><ul><ul><li>Reflective code </li></ul></ul></ul><ul><ul><ul><li>Sequential code </li></ul></ul></ul>
12.
Codes <ul><ul><li>Non-weighted codes: These codes are not positionally weighted. Each position within the binary number is not assigned a fixed value. The different types of non-weighted codes are: </li></ul></ul><ul><ul><ul><li>Excess-3 code </li></ul></ul></ul><ul><ul><ul><li>Gray code </li></ul></ul></ul><ul><ul><li>Error detecting codes: These codes are used to detect errors in the decimal numbers. The different types of error detecting codes are: </li></ul></ul><ul><ul><ul><li>Check sum </li></ul></ul></ul><ul><ul><ul><li>Parity check </li></ul></ul></ul>
13.
Codes <ul><ul><li>Error correcting codes: These codes are used to correct the errors in the decimal numbers. The different types of error correcting codes are: </li></ul></ul><ul><ul><ul><li>Hamming codes </li></ul></ul></ul><ul><ul><li>Alphanumeric codes: These codes represent numbers, letters and special symbols. The different types of alphanumeric codes are: </li></ul></ul><ul><ul><ul><li>ASCII codes </li></ul></ul></ul><ul><ul><ul><li>EBCDIC code </li></ul></ul></ul><ul><ul><ul><li>Hollerith code </li></ul></ul></ul>
14.
Chapter 2 Boolean Algebra and Minimization Techniques
15.
Chapter Objectives <ul><li>Understand the concept of Boolean algebra </li></ul><ul><li>Understand the logic operations available in Boolean algebra </li></ul><ul><li>Understand the basic laws of Boolean algebra </li></ul><ul><li>Understand the DeMorgan’s theorems and Karnaugh map technique </li></ul>
16.
Boolean Algebra <ul><li>Mathematician George Boole defined Boolean algebra as the technique, which provides the rules for carrying out the logical operations. </li></ul><ul><li>The logical operations available in Boolean algebra are: </li></ul><ul><ul><li>Logical AND operation: It is given as Y = A.B for two Boolean variables A and B. The values of AND operation for different values of A and B are: </li></ul></ul><ul><ul><ul><li>If A=0,B=0 then A.B = 0 </li></ul></ul></ul><ul><ul><ul><li>If A=1,B=0 then A.B = 0 </li></ul></ul></ul><ul><ul><ul><li>If A=0,B=1 then A.B = 0 </li></ul></ul></ul><ul><ul><ul><li>If A=1,B=1 then A.B = 1 </li></ul></ul></ul>
17.
Boolean Algebra(contd..) <ul><ul><li>Logical OR operation: It is given as Y=A+B. The values of OR operation for different values of A and B are: </li></ul></ul><ul><ul><ul><li>If A=0, B=0 then A+B = 0 </li></ul></ul></ul><ul><ul><ul><li>If A=1, B=0 then A+B = 1 </li></ul></ul></ul><ul><ul><ul><li>If A=0, B=1 then A+B = 1 </li></ul></ul></ul><ul><ul><ul><li>If A=1, B=1 then A+B = 1 </li></ul></ul></ul><ul><ul><li>Logical complementation operation: It is also known as the NOT operation and it converts the logical 1 to 0 and logical 0 to 1. </li></ul></ul><ul><ul><ul><li>If A is a Boolean variable, then the complement of A is represented by A* or A′. </li></ul></ul></ul><ul><ul><ul><li>Alternatively, a bar over the variable is used to represent the complement of the variable. </li></ul></ul></ul>
18.
Basic Laws of Boolean Algebra <ul><li>The basic laws of Boolean algebra are used to provide mathematical expressions for logical operations. </li></ul><ul><li>The Boolean rules define only two variables, binary 1 and binary 0. The basic rules of Boolean algebra are: </li></ul><ul><li>Boolean addition </li></ul><ul><ul><li>0 + 0 = 0 </li></ul></ul><ul><ul><li>0 + 1 = 1 </li></ul></ul><ul><ul><li>1 + 0 = 1 </li></ul></ul><ul><ul><li>1 + 1 = 1 </li></ul></ul><ul><li>Boolean multiplication </li></ul><ul><ul><li>0.0 = 0 </li></ul></ul><ul><ul><li>0.1 = 0 </li></ul></ul><ul><ul><li>1.0 = 0 </li></ul></ul><ul><ul><li>1.1 = 1 </li></ul></ul>
19.
Properties of Boolean Algebra <ul><li>The properties of Boolean algebra depend on the following operators: </li></ul><ul><ul><li>Two binary operators denoted by the symbols ‘+’ and ‘.’ </li></ul></ul><ul><ul><li>One unary operator denoted by either the bar ( ¯ ) symbol or prime ( ') symbol </li></ul></ul><ul><li>The various properties of Boolean algebra are: </li></ul><ul><ul><li>Commutative property : The order of a Boolean operation conducted on the variables makes no difference on the result. For example: </li></ul></ul><ul><ul><ul><li>Boolean addition is commutative, i.e. A+B = B+A </li></ul></ul></ul><ul><ul><ul><li>Boolean multiplication is commutative, i.e. A.B = B.A </li></ul></ul></ul>
20.
Properties of Boolean Algebra (Contd..) <ul><ul><li>Associative property : A Boolean operation conducted on several variables provides the same result irrespective of their grouping. For example: </li></ul></ul><ul><ul><ul><li>Boolean addition is associative. It is represented as: </li></ul></ul></ul><ul><ul><ul><li>A+(B+C) = (A+B)+C </li></ul></ul></ul><ul><ul><ul><li>Boolean multiplication is associative. It is represented as: </li></ul></ul></ul><ul><ul><ul><li>A.(B.C) = (A.B).C </li></ul></ul></ul><ul><ul><li>Distributive Property : Boolean algebra is distributive for both addition and multiplication operations. </li></ul></ul><ul><ul><ul><li>Boolean addition is distributive over the Boolean multiplication. It is represented as: </li></ul></ul></ul><ul><ul><ul><li>A+B.C= (A+B).(A+C) </li></ul></ul></ul><ul><ul><ul><li>Boolean multiplication is distributive over the Boolean addition. It is represented as: </li></ul></ul></ul><ul><ul><ul><li>A.(B+C)= A.B+A.C </li></ul></ul></ul>
21.
DeMorgan’s Theorems <ul><li>According to DeMorgan’s first theorem, the complement of the product of two binary variables is equal to the sum of the complements of two binary variables. </li></ul><ul><ul><li>It can be stated as: </li></ul></ul><ul><ul><li>(AB) * = A * + B * </li></ul></ul><ul><li>According to DeMorgan’s second theorem, the complement of the sum of the two binary variables is equal to the product of the complements of two binary variables. </li></ul><ul><ul><li>It can be stated as: </li></ul></ul><ul><ul><li>(A + B) * = A *. B * </li></ul></ul>
22.
Sum of Products and Product of Sums <ul><li>Sum of Products (SOP) and Product of Sums (POS) are the logical variables that are used to express logical functions. </li></ul><ul><ul><li>SOP : It is the logical sum of two or more logical product term. Basically, it is an OR operation of AND operated variables. For example: </li></ul></ul><ul><ul><ul><li>Y = AB+BC+AC </li></ul></ul></ul><ul><ul><li>POS : It is the logical product of two or more logical sum terms. Basically, it is an AND operation of OR operated variables. For example: </li></ul></ul><ul><ul><ul><li>Y = (A+B)(B+C)(A+C) </li></ul></ul></ul>
23.
Karnaugh Map <ul><li>Karnaugh map is a systematic method for simplifying and manipulating switching expressions. </li></ul><ul><li>It is used to represent the information contained in a truth table or the information available in the form of POS or SOP. The characteristics of a K-map are: </li></ul><ul><ul><li>In an n-variable K-map, there are 2 n cells and each cell matched to one combination of n variables. </li></ul></ul><ul><ul><li>In an n-variable K-map, a collection of 2 m cells and each adjacent to m cells is known as a group.This group can be expressed by a product containing n-m variables where n is the number of variables in the K-map. </li></ul></ul>
25.
Chapter Objectives <ul><li>Understand the basic concepts of logic circuits </li></ul><ul><li>Understand the types of basic logic gates </li></ul><ul><li>Understand the two types of universal gates </li></ul><ul><li>Understand the types of logic,which are: </li></ul><ul><ul><li>Positive logic </li></ul></ul><ul><ul><li>Negative logic </li></ul></ul><ul><ul><li>Mixed logic </li></ul></ul>
26.
Basic Concepts of Logic Circuits <ul><li>Logic circuit consists of three elements, which are: </li></ul><ul><ul><li>Input variables : The input variables are the inputs to the logic circuits, which are represented by 1 and 0. The input 1 implies the high voltage (High) or +5V and input 0 implies the low voltage (Low) or 0V. </li></ul></ul><ul><ul><li>Output variables : The output variables are the resultant outputs of the two input variables. The resultant output depends upon the type of logic gate that is being used. </li></ul></ul><ul><ul><li>Logic gate : A logic gate is an electronic circuit that has two inputs and one output. At any instant, every input is in one of the two binary conditions such as 0 and 1. </li></ul></ul>
27.
Types of Logic Gates <ul><li>The following are the types of the logic gates used in logic circuits: </li></ul><ul><ul><li>Basic logic gates </li></ul></ul><ul><ul><ul><li>OR gate </li></ul></ul></ul><ul><ul><ul><li>AND gate </li></ul></ul></ul><ul><ul><ul><li>NOT gate </li></ul></ul></ul><ul><ul><li>Universal logic gates </li></ul></ul><ul><ul><ul><li>NAND gate </li></ul></ul></ul><ul><ul><ul><li>NOR gate </li></ul></ul></ul>
28.
OR Gate <ul><li>The OR gate is used to represent the addition operation between the two inputs A and B. </li></ul><ul><li>Output of the operation is represented by Y=A+B </li></ul><ul><li>Output of the OR Gate is always: </li></ul><ul><ul><li>High or 1 if any of the input is High or 1 </li></ul></ul><ul><ul><li>Low or 0 if BOTH the inputs are Low or 0 </li></ul></ul>A B Y=A+B
29.
AND Gate <ul><li>The AND gate is used to represent the logical multiplication operation between the two inputs A and B. </li></ul><ul><li>Output of AND operation is represented by Y = A . B </li></ul><ul><li>Output of the AND Gate is always: </li></ul><ul><ul><li>High or 1 if both the inputs are High or 1 </li></ul></ul><ul><ul><li>Low or 0 if any of the input is Low or 0 </li></ul></ul>A B Y=A . B
30.
Not Gate <ul><li>The NOT gate is used to represent the logical complementation operation. </li></ul><ul><li>If A is the input to NOT gate then Y i.e. output of NOT gate is represented by Y = A * where A * is the complement of A. </li></ul><ul><li>Output of the NOT gate is always: </li></ul><ul><ul><li>High or 1 if the input is Low or 0 </li></ul></ul><ul><ul><li>Low or 0 if the input is High or 1 </li></ul></ul>A Y=A*
31.
NAND Gate <ul><li>The NAND gate is used to represent the contraction of NOT-AND gates. </li></ul><ul><li>If A and B are two inputs then its output is represented by Y = (A . B) * </li></ul><ul><li>Output of the NAND Gate is always: </li></ul><ul><ul><li>High or 1 if one or both of the inputs are low or 0 </li></ul></ul><ul><ul><li>Low or 0 if BOTH the inputs are high or 1 </li></ul></ul>A B Y=(AB) *
32.
NOR Gate <ul><li>NOR gate is used to represent the contraction of NOT-OR gates. </li></ul><ul><li>If NOR gate has two inputs A and B then its output is represented by Y = (A+B) * </li></ul><ul><li>Output of the NOR gate is always: </li></ul><ul><ul><li>High or 1 if both the inputs are low or 0 </li></ul></ul><ul><ul><li>Low or 0 if any one or both the inputs are high or 1 </li></ul></ul>A B Y=(A+B) *
33.
Universal Gates <ul><li>The NAND or NOR gates are known as universal gates. These gates are used to implement any gate like AND,OR and NOT gates. </li></ul><ul><li>The following two gates are also used in logic circuits: </li></ul><ul><ul><li>Exclusive-OR (Ex-OR) gate : In Ex-OR gate, the output is high if only one input is in high state or 1. If both the inputs are same, then the output is low. </li></ul></ul><ul><ul><li>Exclusive-NOR (Ex-NOR) gate : In Ex-NOR gate, the output is high if both the inputs are same, otherwise the output is low. </li></ul></ul>
34.
Mixed Logic <ul><li>In mixed logic circuits, the values of the inputs are not fixed as compared to positive and negative logic. </li></ul><ul><li>In positive logic, the high is represented as +5V or TRUE and low is represented as 0V or FALSE. In negative logic, the high is represented as 0V or FALSE and low is represented as +5V or TRUE. </li></ul><ul><li>In mixed logic, the user can assign any value of the inputs to the logic circuits. </li></ul>
36.
Chapter Objectives <ul><li>Understand the basics of digital Integrated Circuits (IC) </li></ul><ul><li>Understand the different types of transistor logic </li></ul><ul><li>Understand the concept of Metal-oxide Semiconductor (MOS) digital ICs </li></ul><ul><li>Understand the different types of BiCMOS logic circuits </li></ul>
37.
Digital Integrated Circuits <ul><li>Digital ICs operate with binary signals and are constructed with ICs. </li></ul><ul><li>Characteristics of digital ICs are: </li></ul><ul><ul><li>Speed of operation </li></ul></ul><ul><ul><li>Fan-in </li></ul></ul><ul><ul><li>Noise immunity </li></ul></ul><ul><li>Digital ICs can be classified into two categories: </li></ul><ul><ul><li>MOS family: It includes the following Metal-oxide Semiconductor Field-effect Transistor (MOSFETs): </li></ul></ul><ul><ul><ul><li>p-channel MOSFET (PMOS) </li></ul></ul></ul><ul><ul><ul><li>n-channel MOSFET (NMOS) </li></ul></ul></ul><ul><ul><ul><li>Complementary MOSFET (CMOS) </li></ul></ul></ul>
38.
<ul><li>Bipolar logic families: These ICs can be classified as saturated and non-saturated logic families. </li></ul><ul><ul><li>Saturated logic families consists of: </li></ul></ul><ul><ul><ul><li>Resistor-transistor Logic (RTL) </li></ul></ul></ul><ul><ul><ul><li>Resistor-capacitor Transistor Logic (RCTL) </li></ul></ul></ul><ul><ul><ul><li>Diode-transistor Logic (DTL) </li></ul></ul></ul><ul><ul><ul><li>High Threshold Logic (HTL) </li></ul></ul></ul><ul><ul><ul><li>Transistor-transistor Logic (TTL) </li></ul></ul></ul><ul><ul><ul><li>Integrated-injection Logic (I 2 L) </li></ul></ul></ul><ul><ul><li>Non-saturated logic families consists of: </li></ul></ul><ul><ul><ul><li>Schottky TTL </li></ul></ul></ul><ul><ul><ul><li>Emitter-coupled Logic (ECL) </li></ul></ul></ul>Digital Integrated Circuits (Contd..)
39.
Current-sourcing and Current-sinking <ul><li>The logic families are categorized on the basis of current flow from the output of one logic circuit to the input of another. </li></ul><ul><li>If the output of a TTL gate is HIGH, a reverse emitter current of 40 mA flows from the driver gate transistor to the load gate transistor. Here, the driver gate transistor is known as current source. </li></ul><ul><li>If the output of the TTL gate is LOW, an emitter current of 1.6 mA flows from the load gate transistor to the driver gate transistor. The driver gate transistor is known as current sink. </li></ul>
40.
Resistor-transistor Logic <ul><li>RTL NOR gate consists of resistors and transistors. </li></ul><ul><li>If the inputs of RTL are LOW, then the transistors are turned OFF. Therefore, the output of the circuit is at logic 1. </li></ul><ul><li>If any of the inputs are at logic 1, then the transistors are turned ON. Thus, the output of the circuit is at logic 0. </li></ul><ul><li>Characteristics of RTL family are: </li></ul><ul><ul><li>Operation speed is low and average power of dissipation is high. </li></ul></ul><ul><ul><li>Highly sensitive to temperature but poor immunity to noise. </li></ul></ul>
41.
Resistor-capacitor-transistor Logic <ul><li>RCTL circuit consists of a capacitor with an input resistor to increase the speed and improve the immunity to noise. </li></ul><ul><li>During the transient phase, the resistor is bypassed by the capacitor. Thus, the base current increases and the input capacitance is discharged quickly. </li></ul>
42.
Diode-transistor Logic <ul><li>DTL family removes the problem of output voltage by increasing the load on the circuit. </li></ul><ul><li>If the inputs to the diodes are HIGH, they are reverse-biased. If both the diodes and the transistors are switched ON, then the output is LOW. </li></ul><ul><li>If any of the inputs to the diodes is LOW, the current flows through the other diode and the voltage to that diode drops down. Then, the base voltage becomes LOW and the transistor remains at logic 0 and the output is HIGH. </li></ul>
43.
High Threshold Logic <ul><li>HTL NAND gate is constructed by replacing the second diode from the DTL NAND gate with the Zener diode and increasing the power supply. </li></ul><ul><li>Resistor values of this gate are increased to obtain equal amount of current from DTL and HTL gates. </li></ul><ul><li>These gates are useful in environments where the noise level is high. </li></ul>
44.
Transistor-transistor Logic <ul><li>The 54/74 series of TTL family is classified into 5 divisions: </li></ul><ul><ul><li>Standard (SN 54/74) </li></ul></ul><ul><ul><li>High-speed (SN54H/74H) </li></ul></ul><ul><ul><li>Low-power (SN54L/74L) </li></ul></ul><ul><ul><li>Schottky-diode-clamped (SN54S/74S) </li></ul></ul><ul><ul><li>Low power schottky (SN54LS/74LS) </li></ul></ul>
45.
Transistor-transistor Logic (Contd..) <ul><li>Common characteristics are: </li></ul><ul><ul><li>Supply voltage for all the divisions is 5.0 V. </li></ul></ul><ul><ul><li>Logical 0 output voltage is 0V to 0.4V. </li></ul></ul><ul><ul><li>Logical 1 output voltage is 2.4V to 5V. </li></ul></ul><ul><ul><li>Logical 0 input voltage is 0V to 0.8V. </li></ul></ul><ul><ul><li>Logical 1 input voltage is 2V to 5V. </li></ul></ul><ul><ul><li>Noise immunity is 0.4 V. </li></ul></ul>
46.
Integrated-injection Logic <ul><li>I 2 L is also called Merged Transistor Logic (MTL). </li></ul><ul><li>It uses two types of bipolar junction to form a large number of IC gate on the chip. Types of bipolar junction are: </li></ul><ul><ul><li>n-p-n </li></ul></ul><ul><ul><li>p-n-p </li></ul></ul><ul><li>It dissipates less power even if it is operated at high speed. </li></ul>
47.
Emitter-coupled Logic <ul><li>ECL is a Current-mode Logic (CML). </li></ul><ul><li>It reduces the saturated transistor delay by operating in active mode. </li></ul><ul><li>The differential amplifier, which is the basic circuit of ECL, draws the constant current during the transition of circuit from one state to another. </li></ul>
48.
MOS Digital Integrated Circuits <ul><li>MOS technology is derived from the basic MOS structure of metal electrode on the oxide insulator over a semiconductor substrate. </li></ul><ul><li>They are commonly used in digital devices such as logic gates and registers. </li></ul><ul><li>They can accommodate more number of circuit elements than bipolar ICs. </li></ul><ul><li>Operating speed of MOS IC is less than bipolar ICs. </li></ul>
49.
MOS Digital Integrated Circuits (Contd..) <ul><li>Characteristics of MOS logic are: </li></ul><ul><ul><li>Propagation delay is 50ns. </li></ul></ul><ul><ul><li>Fan-out capacity of is unlimited. </li></ul></ul><ul><ul><li>Draw less power because of large resistance. </li></ul></ul><ul><ul><li>Simplest as they use only one basic element, NMOS transistor. </li></ul></ul>
50.
Complementary MOS Logic <ul><li>They are also called COSMOS or CMOS and are made using PMOS and NMOS transistors. </li></ul><ul><li>Characteristics of CMOS are: </li></ul><ul><ul><li>Power consumption is very low. </li></ul></ul><ul><ul><li>Propagation delay ranges from 25ns to 150ns that depends upon the power supply. </li></ul></ul><ul><ul><li>CMOS can operate at voltage range of +3V to +15V. </li></ul></ul><ul><ul><li>Fan-out of CMOS is 10. </li></ul></ul><ul><ul><li>They have small power dissipation and improved noise immunity. </li></ul></ul>
51.
BiCMOS Logic Circuits <ul><li>BiCMOS is used for developing low voltage analog circuits, Very Large Scale Integration (VLSI) circuits and Application Specific Integrated Circuits (ASIC). </li></ul><ul><li>Basic BiCMOS inverter circuit is formed from the complementary pairs of PMOSFET and NPMOSFET with NPN transistors. </li></ul><ul><li>The switching speed of basic inverter can be improved by discharging the excess carriers from the transistors with additional NMOS devices. </li></ul>
52.
Compatibility or Interfacing <ul><li>The output of the circuit should match with the inputs of other circuits. This is referred to as compatibility. </li></ul><ul><li>An interface circuit is the one, which is connected between the drivers and the loads. </li></ul><ul><li>The designer of the circuit should take care while matching the characteristics of current and voltage of two circuits of two different families. </li></ul><ul><li>An interface circuit between the two families is required to match the output characteristics of the driver and the load. </li></ul>
54.
Chapter Objectives <ul><li>Understand the basics of arithmetic circuits </li></ul><ul><li>Understand the designing of combinational circuits </li></ul><ul><li>Understand the types of circuits in digital system: </li></ul><ul><ul><li>Combinational logic circuit </li></ul></ul><ul><ul><li>Sequential logic circuit </li></ul></ul>
55.
Basics of Arithmetic Circuits <ul><li>Arithmetic circuits contain logic gates and flip-flops. </li></ul><ul><li>Arithmetic circuits can perform all the arithmetic operations. </li></ul><ul><li>The two types of Arithmetic circuits are: </li></ul><ul><ul><li>Combinational logic circuit : The output at any time depends only on the input values of that time. Examples of combinational logic circuits are: </li></ul></ul><ul><ul><ul><li>Half-adder </li></ul></ul></ul><ul><ul><ul><li>Full-adder </li></ul></ul></ul><ul><ul><li>Sequential logic circuit : The output at any time depends on the present input values as well as the past output values. </li></ul></ul>
56.
Designing Combinational Circuit <ul><li>The following steps are performed to design a combinational circuit: </li></ul><ul><ul><li>Identify inputs and outputs and draw block diagram. </li></ul></ul><ul><ul><li>Draw a truth table to describe the circuit operation for different combination of inputs. </li></ul></ul><ul><ul><li>Write the switching expressions for outputs. </li></ul></ul><ul><ul><li>Simplify the switching expression with the help of algebraic or K-map method. </li></ul></ul><ul><ul><li>Implement this simplified expression with the help of logic gates. </li></ul></ul>
57.
Half Adder <ul><li>It is used for performing arithmetic addition of two binary digits. </li></ul><ul><li>It has two inputs and two outputs. </li></ul><ul><li>The two outputs represent sum and carry bits. </li></ul><ul><li>Logic Symbol: Here A and B are inputs and S and C are sum and carry respectively. </li></ul>Half Adder A B Carry(C) Sum(S) Inputs Outputs
58.
Full Adder <ul><li>It is used for performing arithmetic addition of three binary digits. </li></ul><ul><li>It has three inputs and two outputs. </li></ul><ul><li>The two outputs represent sum and carry bits. </li></ul><ul><li>Logic Symbol: Here A, B and C in are inputs and S and C out are outputs. </li></ul>C out Full Adder C in S A B Outputs Inputs
59.
K-Map Simplification <ul><li>This method is used for simplifying S and C out logical expressions in Full Adder. </li></ul><ul><li>Diagrammatically: </li></ul><ul><li>(a) K-map for Sum (b) K-map for C out </li></ul>0 1 0 1 1 1 0 1 0 0 10 11 01 00 C in AB 1 1 1 0 1 0 1 0 0 0 10 11 01 00 C in AB
60.
Half Subtractor <ul><li>It is used for performing the arithmetic subtraction of two bits. </li></ul><ul><li>It has two inputs and two outputs. </li></ul><ul><li>The two outputs represent difference and borrow out. </li></ul><ul><li>Logic Symbol: Here X (minuend) and Y (subtrahend) are inputs and D (difference) and B out (borrow out). are outputs. </li></ul><ul><li> </li></ul>Half Subtractor X Y B out D Inputs Outputs
61.
Full Subtractor <ul><li>It is used for performing the arithmetic subtraction of three bits. </li></ul><ul><li>It has three inputs and two outputs. </li></ul><ul><li>The two outputs represent difference and borrow out. </li></ul><ul><li>Logical Symbol: Here X (minuend), Y (subtrahend) and B in (borrow from previous stage) are inputs and D (difference) and B out (borrow out) are outputs. </li></ul><ul><li> </li></ul>Full Subtractor Inputs Outputs X Y B in D B out
62.
Parallel Binary Adder <ul><li>In parallel binary adders, all the bits of augend and addend are fed into it simultaneously. Also, additions in each position take place at same time in these adders. </li></ul><ul><li>Two or more parallel adders can be connected in cascade to perform the addition operation on large binary numbers. </li></ul><ul><li>Most commonly used parallel binary adder is the IC 7483. It has: </li></ul><ul><ul><li>Four interconnected full-adders </li></ul></ul><ul><ul><li>One look ahead carry circuitry </li></ul></ul>
63.
Parallel Binary Subtractor <ul><li>A parallel binary subtractor can be implemented by cascading several full-subtractors. </li></ul><ul><li>A 4-bit parallel binary subtractor has four difference outputs and one borrow output. </li></ul><ul><li>In a 4-bit parallel binary subtractor, the input of the least significant bit full-subtractor is connected to 0 and the output of the i th full-subtractor is fed as input to (i+1) th full-subtractor. </li></ul>
64.
Controlled Inverter <ul><li>A controlled inverter is used to invert a binary digit, i.e. it helps in obtaining the complement of the binary digit. </li></ul><ul><li>An Ex-OR gate can be used as a controlled inverter to obtain the complement of a binary digit as shown in the figure: </li></ul><ul><li>Similarly, a group of Ex-OR gates can be used to invert a group of binary digits. </li></ul>C X Y
65.
4-bit Parallel Adder/Subtractor <ul><li>In 4-bit parallel binary adder/subtractor both operations, addition and subtraction can be performed. </li></ul><ul><li>A 4-bit parallel adder/subtractor has two 4-bit inputs </li></ul><ul><li>It has ADD/SUB control line connected with input of the least significant bit of full-adder for addition and subtraction. </li></ul><ul><li>For subtraction ADD/SUB input is kept high and for addition ADD/SUB input is kept low. </li></ul>
66.
Fast Adder and Serial Subtractor <ul><li>In Fast adder, output is given only after the carry is propagated through each of the adders.E.g. 4-bit carry look ahead adder: </li></ul><ul><ul><li>4-bit carry look ahead adder is based on the principle of looking at lower order bits of augend and addend if high order carry is generated. </li></ul></ul><ul><ul><li>It reduces the carry delay by reducing the number of gates through which a carry signal must propagate. </li></ul></ul><ul><li>Serial subtractor can be obtained by converting serial adder using the 2’s complement system. </li></ul><ul><ul><li>For subtraction subtrahend stored in one register is 2’s complemented before adding to minuend in other register. </li></ul></ul>
67.
Serial Adder and BCD Adder <ul><li>A Serial adder performs the addition operation bit by bit. </li></ul><ul><li>The Serial adder requires a simpler circuitry than parallel adder, but provides low speed of operation </li></ul><ul><li>A BCD adder adds two 4-bit BCD numbers to produce a 4-bit sum output and a carry output. The following conditions need to be considered for the form of the sum: </li></ul><ul><ul><li>If the 4-bit sum is equal to or less than 9, the sum is in BCD form. </li></ul></ul><ul><ul><li>If 4-bit sum is greater than 9 or if carry is generated, the sum is not in BCD form. To produce the BCD result, digit 6(0110) must be added to the 4-bit sum. </li></ul></ul>
68.
Binary Multiplier <ul><li>Binary multipliers are used for multiplication operation which involves partial product, addition and shifting. </li></ul><ul><li>In binary multiplier: </li></ul><ul><ul><li>If multiplier bit is 1, then multiplicand is simply copied as partial product. </li></ul></ul><ul><ul><li>If multiplier bit is 0, then partial product is 0. </li></ul></ul><ul><li>When a partial product is obtained , it is shifted one bit to the left of previous partial product </li></ul><ul><li>The shifting of partial products is performed until all the multiplier bits are checked, which is then followed by addition of the partial products. </li></ul>
69.
Binary Divider <ul><li>In Binary divider, the dividend is stored in dividend register, while the divisor is stored in divisor register. The division process involves the following steps: </li></ul><ul><ul><li>Shift the combined contents of X and Y registers to left by one bit. </li></ul></ul><ul><ul><li>Subtract the content of divisor register from the content of X register. </li></ul></ul><ul><ul><li>Put 1 in the LSB of dividend register in case there is no borrow in the previous register. Otherwise, adds the contents of X and dividend registers to restore the original content of X. </li></ul></ul><ul><ul><li>Repeat steps 1 to 3 for n times, where n is the number of bits in the dividend. </li></ul></ul>
71.
Chapter Objectives <ul><li>Understand the different types of combinational circuits </li></ul><ul><li>Understand the different types of encoders and decoders </li></ul><ul><li>Understand the concept of parity bits </li></ul><ul><li>Understand the concept and applications of magnitude comparator </li></ul>
72.
Multiplexer <ul><li>Multiplexer (MUX) is a combinational circuit. </li></ul><ul><li>It accepts many inputs and transmits the data over a single output. </li></ul><ul><li>It is also known as data selector. </li></ul><ul><li>The input line is selected by the set of selection lines. </li></ul><ul><li>For n input lines, the number of selection lines will be m, where 2 m = n. </li></ul>Select inputs Data inputs Data output MUX
73.
Demultiplexer <ul><li>Demultiplexer (DEMUX) is a combinational circuit. </li></ul><ul><li>It accepts one input and transmits the data over multiple outputs. </li></ul><ul><li>It is also known as data distributor. </li></ul><ul><li>The output line is selected by the set of selection lines. </li></ul><ul><li>For n output lines, the number of selection lines will be m, where 2 m = n. </li></ul>Select inputs Data input Data outputs DEMUX
74.
Decoder <ul><li>Decoder is similar to demultiplexer, but it does not contain data input. </li></ul><ul><li>It is a logic circuit and converts n-bit input to 2 n output lines in such a way that the output line will be activated for only one combination of input lines. </li></ul><ul><li>If the number of input and output lines are same, then a decoder acts as a converter to convert the Binary code to Gray code or BCD to Excess-3 code. </li></ul>
75.
Decoder (Contd..) <ul><li>An AND gate can be used as the basic binary decoder because the output of the AND gate is HIGH only when all the inputs are HIGH. </li></ul><ul><li>For example, if the input binary number is 1110, then the last bit has to be inverted to make all the inputs HIGH. </li></ul>A B Y=ABCD C D
76.
Decoder (Contd..) <ul><li>Decoders can be classified as: </li></ul><ul><ul><li>3-to-8 decoder : It has 3 inputs that are used to select one out of eight outputs and it is also known as 1-of-8 decoder. </li></ul></ul><ul><ul><li>4-to-16 decoder : It has 4 inputs that are used to select one out of sixteen outputs and it is also known as 1-of-16 decoder. </li></ul></ul><ul><ul><li>BCD-to-decimal decoder : It accepts 4-bit BCD as the input and produces 10 outputs corresponding to each decimal digit. </li></ul></ul><ul><ul><li>BCD-to-seven-segment decoder : It is used to display decimal digits from 0 to 9. It accepts decimal digits in BCD and generates the corresponding seven-segment code. </li></ul></ul>
77.
Liquid Crystal Display <ul><li>Liquid Crystal Display (LCD) operates at low voltage AC signal drawing less current. </li></ul><ul><li>AC voltage is applied between the 7-segment and the backplane. Both of them act as capacitor and draw less current when AC signal is kept low. </li></ul><ul><li>The segments in the display are connected to EX-OR gate with one input connected to 7-segment decoder and the other connected to the signal source. </li></ul>
78.
Liquid Crystal Display (Contd..) <ul><li>If the input of the EX-OR gate is LOW, then the output becomes same with the input provided to the backplane. </li></ul><ul><li>If the input of the EX-OR gate is HIGH, then the output becomes 180 o out of phase with the input provided to the backplane. </li></ul>
79.
Encoders <ul><li>Encoders convert the input signal to the coded output signal. </li></ul><ul><li>They have n input lines out of which only one remains active at a time and m output lines, where m<n. </li></ul>Encoder ∙ ∙ ∙ ∙ ∙ ∙ n inputs m outputs
80.
Encoders (Contd..) <ul><li>Types of encoders are: </li></ul><ul><ul><li>Octal-to-binary encoder: It performs the inverse of 3-to-8 decoder and has eight input lines. It produces 3-bit output corresponding to the input. </li></ul></ul><ul><ul><li>Decimal-to-BCD encoder: It consists of ten input lines for ten decimal digits. It produces 4-bit output representing the BCD value of the input. </li></ul></ul><ul><ul><li>Priority encoder: It includes the priority function in which the precedence is given to the input with the highest priority, if they all are HIGH. </li></ul></ul>
81.
Parity Bit <ul><li>Parity bit is an extra bit added to the data, which helps in detecting the presence of error in the data while transmitting it from one location to another. </li></ul><ul><li>Types of parity bits are: </li></ul><ul><ul><li>Even parity : In even parity, an extra bit is added to the data to make the number of 1’s even. </li></ul></ul><ul><ul><li>Odd parity : In odd parity, an extra bit is added to the data to make the number of 1’s odd. </li></ul></ul><ul><li>EX-NOR gate is used to generate the parity for the data and EX-OR gate is used to check the parity of the data. </li></ul>
82.
Code Converter <ul><li>Code Converter is used to change the data from one binary code to another. </li></ul><ul><li>For example, 7-segment decoder can be considered as a code converter that converts the decimal digits to 7-segment code. </li></ul><ul><li>Types of code converter are: </li></ul><ul><ul><li>BCD-to-binary code converter </li></ul></ul><ul><ul><li>Binary-to-gray code converter </li></ul></ul><ul><ul><li>Gray code-to-binary converter </li></ul></ul>
83.
Magnitude Comparator <ul><li>Magnitude Comparator is used to compare the magnitude of two numbers A and B. </li></ul><ul><li>It generates one of the following results: </li></ul><ul><ul><li>A = B </li></ul></ul><ul><ul><li>A < B </li></ul></ul><ul><ul><li>A > B </li></ul></ul>Magnitude comparator A B A = B A < B A > B
84.
Magnitude Comparator (Contd..) <ul><li>Magnitude comparator uses EX-NOR gate to check whether the digits are equal or not. </li></ul><ul><li>It uses AND gate to check whether the binary digit is less or greater than the second number. </li></ul><ul><li>Comparators are applied: </li></ul><ul><ul><li>As part of address decoding circuitry in computers. </li></ul></ul><ul><ul><li>To actuate circuitry for driving physical variable to the reference value. </li></ul></ul>
86.
Chapter Objectives <ul><li>Understand the basics of Sequential Circuits </li></ul><ul><li>Understand the concept of Latches and their types </li></ul><ul><li>Understand the concept of Flip-Flops, their types and triggering </li></ul><ul><li>Understand the process of realizing flip-flops </li></ul><ul><li>Understand the application of flip-flops </li></ul>
87.
Overview of Arithmetic Circuits <ul><li>Features of combinational circuits are: </li></ul><ul><ul><li>The output of the combinational circuit at any instant depends on the input signals present at that time. </li></ul></ul><ul><ul><li>The output signals from these circuits are not fed back to the input of the circuit. </li></ul></ul><ul><ul><li>The combinational circuits do not require memory elements and are thus faster. </li></ul></ul><ul><li>Features of sequential circuits are: </li></ul><ul><ul><li>The outputs of the sequential circuit at any instant depend on the present and past inputs. </li></ul></ul><ul><ul><li>The output signals from these circuits are fed back to the input of the circuit. </li></ul></ul><ul><ul><li>The sequential circuits require memory elements and are thus slower. </li></ul></ul>
88.
Sequential Circuits <ul><li>Sequential circuits are classified into two types: </li></ul><ul><ul><li>Synchronous or clocked circuit : </li></ul></ul><ul><ul><ul><li>It contains a timing device, known as master-clock generator to achieve synchronization. </li></ul></ul></ul><ul><ul><ul><li>In practice, synchronization is achieved by applying clock pulses to various AND gates through which external inputs enter the circuit. </li></ul></ul></ul><ul><ul><ul><li>The rate of pulse generation must be slow enough to permit the slowest circuit to respond. </li></ul></ul></ul><ul><ul><li>Asynchronous or unclocked circuit : </li></ul></ul><ul><ul><ul><li>In this circuit, an event occurs as soon as one event is completed. </li></ul></ul></ul><ul><ul><ul><li>The events need not to wait for a clock pulse for their occurrence. </li></ul></ul></ul><ul><ul><ul><li>An asynchronous circuit is faster in comparison to a synchronous circuit, but it is more unstable. </li></ul></ul></ul>
89.
Latches <ul><li>A Latch is the simplest sequential circuit that can store one bit of information, i.e. logic 1 or 0. </li></ul><ul><li>It is known as latch as it allows one bit of information to lock or latch. </li></ul><ul><li>The following types of latches are available: </li></ul><ul><ul><li>Set-Reset (S-R) Latch : </li></ul></ul><ul><ul><ul><li>It can be implemented using NAND or NOR gates. </li></ul></ul></ul><ul><ul><ul><li>It has two inputs and two outputs, where the two outputs complement each other. </li></ul></ul></ul>
90.
Latches (contd..) <ul><ul><li>NOR-based S-R Latch : </li></ul></ul><ul><ul><ul><li>It is also known as asynchronous sequential circuit. </li></ul></ul></ul><ul><ul><ul><li>It can be implemented using two NOR gates connected back to back. </li></ul></ul></ul><ul><ul><ul><li>The output from one gate acts as the input of the other. </li></ul></ul></ul><ul><ul><ul><li>The state diagram gives the two stable states of S-R latch, 0 and 1. </li></ul></ul></ul><ul><ul><ul><li>On SET input, the latch is set to 1 while on RESET it is reset to 0. </li></ul></ul></ul><ul><ul><li>NAND-based S-R Latch : </li></ul></ul><ul><ul><ul><li>It can be implemented using cross-coupled NAND gates. </li></ul></ul></ul><ul><ul><ul><li>Its inputs are normally 1 and must be pulsed to 0 to change the latch output state. </li></ul></ul></ul>
91.
Flip-Flops <ul><li>A Flip-Flop is a latch with additional control input that determines when the state of the circuit is to be changed. </li></ul><ul><li>The additional control input can be either a clock or an enable input. </li></ul><ul><li>Flip-Flops can be differentiated depending on its transition between two states. Various types of flip-flops are: </li></ul><ul><ul><li>S-R flip-flop: </li></ul></ul><ul><ul><ul><li>It consists of two additional AND gates at the inputs S and R. In this type of flip-flop: </li></ul></ul></ul><ul><ul><ul><li>In this circuit, when the clock input is LOW, the output of both the AND gates are LOW and changes in S and R do not affect the output of the flip-flop. </li></ul></ul></ul><ul><ul><ul><li>Again, when the clock input is HIGH, the value at S and R will be passed to the output of the AND gates and the output of the flip-flop will change as per the changes in S and R. </li></ul></ul></ul>
92.
Flip-Flops (contd..) <ul><ul><li>D flip-flop : </li></ul></ul><ul><ul><ul><li>It is also known as the Delay flip-flop having one input, D and two outputs Q and Q. </li></ul></ul></ul><ul><ul><ul><li>A D flip-flop can be constructed by inserting an inverter between S and R of an S-R flip-flop where the symbol D is assigned to the S input. </li></ul></ul></ul><ul><ul><li>J-K flip-flop : </li></ul></ul><ul><ul><ul><li>A J-K flip-flop can be implemented through clocked S-R Flip-Flop by augmenting two AND gates. </li></ul></ul></ul><ul><ul><ul><li>The inputs J and K acts like inputs S and R to set and reset the flip-flop respectively. </li></ul></ul></ul><ul><ul><ul><li>When J = K = 1, the flip-flop output switches to the complement state, i.e. if Q = 0, it switches to Q = 1 and vice versa. </li></ul></ul></ul>
93.
Flip-Flops (contd..) <ul><ul><li>T flip-flop : </li></ul></ul><ul><ul><ul><li>It is also known as Toggle or Trigger Flip-Flop having a single data input, T, a clock input and two outputs Q and Q </li></ul></ul></ul><ul><ul><ul><li>It is commonly seen in counters and sequential counting networks. </li></ul></ul></ul><ul><ul><ul><li>It is obtained from a J-K flip-flop by connecting its J and K inputs together. </li></ul></ul></ul><ul><ul><ul><li>The designation T comes from the ability of this flip-flop to toggle or complement its state. </li></ul></ul></ul>
94.
Triggering Of Flip-Flops <ul><li>Triggering specifies the changes in the output of a flip-flop that occurs in synchronization with the clock. </li></ul><ul><li>It can be of two types based on the particular time interval in the clock at which it occurs: </li></ul><ul><ul><li>Level triggering : The condition when the clock pulse goes high is known as level triggered flip-flop. They can be further classified as: </li></ul></ul><ul><ul><ul><li>Positive level triggered flip-flop : When clock is positive and flip-flop changes state it is called positive level triggered flip-flop. </li></ul></ul></ul><ul><ul><ul><li>Negative level triggered flip-flop : When clock is negative and flip-flop changes state it is called negative level triggered flip-flop. </li></ul></ul></ul>
95.
Triggering of Flip-Flops (contd..) <ul><ul><li>Edge Triggering : The condition when flip-flop changes its state either at positive or negative edge of the clock pulse is known as edge-triggered flip-flop. They can be further classified as: </li></ul></ul><ul><ul><ul><li>Edge-triggered D flip-flop : In this flip-flop, a circuit containing capacitor and resistor is used. It is inserted between the clock and the input to the AND gates. Conditions for this flip-flop are: </li></ul></ul></ul><ul><ul><ul><ul><li>When clock input is LOW, the flip-flop retains its previous state irrespective of whether D = 0 or 1. </li></ul></ul></ul></ul><ul><ul><ul><ul><li>When clock input is HIGH, the flip-flop takes the value of D. </li></ul></ul></ul></ul><ul><ul><ul><li>Edge-triggered J-K flip-flop : In this flip-flop, the two outputs are fed back to the opposite NAND gates. Conditions for this flip-flop are: </li></ul></ul></ul><ul><ul><ul><ul><li>When J = 0 and K = 0, it is called no change condition. </li></ul></ul></ul></ul><ul><ul><ul><ul><li>When J = 1 and K = 1, it is called toggle operation. </li></ul></ul></ul></ul>
96.
Master-Slave Flip-Flops <ul><li>Master-slave flip-flop is constructed by serially connecting two separate flip-flops. </li></ul><ul><li>Here, one flip-flop is known as the master, while the other as slave. </li></ul><ul><li>A master-slave J-K flip-flop can be constructed using two J-K flip-flops, where one acts as the master and other as the slave. </li></ul><ul><li>A master-slave J-K flip flop helps in handling the race-around condition, which is specified as: </li></ul><ul><ul><li>When J = K= 1 and Q = 0 and 1, the output oscillates between 0 and 1 within the time period. </li></ul></ul>
97.
Realization of Flip-Flops <ul><li>The steps of realizing flip-flop are: </li></ul><ul><ul><li>Obtain word description of the desired flip-flop (X). </li></ul></ul><ul><ul><li>Obtain Present State-Next State (PS-NS) table for the desired flip-flop (X). </li></ul></ul><ul><ul><li>Use the excitation table or application table of the chosen flip-flop (Y). </li></ul></ul><ul><ul><li>Append the next state code or excitation input values in the Present State-Next State table. </li></ul></ul><ul><ul><li>Use K-maps simplifying the logic expressions for excitation inputs of Y and design next state decoder logic. </li></ul></ul><ul><ul><li>Use next state decoder logic and chosen flip-flop (Y) to draw a circuit for the desired flip-flop (X). </li></ul></ul>
98.
Applications of Flip-Flops <ul><li>Flip-flops are primarily used in counter circuits, frequency dividers, shift and storage registers. </li></ul><ul><li>It can also help in accomplishing serial decoding, comparison and timing functions. </li></ul><ul><li>Other functions of flip-flops include: </li></ul><ul><ul><li>Frequency Division : Flip-flops are used to divide the frequency of a periodic waveform. </li></ul></ul><ul><ul><li>Shift Registers : Flip-flops are used in shift Registers for transferring the contents of one register to the other. If the flip-flop lies within the same register, then shifting takes place in one bit at a time. </li></ul></ul>
99.
Applications of Flip-Flops (contd..) <ul><ul><li>Counters : Flip-flops can also be used as a binary counter where a set of flip-flops are connected in a manner so that they can count the sequence of input pulses presented to it in digital form. </li></ul></ul><ul><ul><li>Parallel Data Storage : Flip-flops are helpful in parallel data storage. Various features are: </li></ul></ul><ul><ul><ul><li>Several bits of data can be stored simultaneously in a group of flip-flop. All the parallel data lines are connected to the input of flip-flops. </li></ul></ul></ul><ul><ul><ul><li>Clock inputs of all the flip-flops are connected to common clock input, so that each flip-flop is triggered at the same time. </li></ul></ul></ul><ul><ul><ul><li>The clear inputs are connected to common clear line, which resets all the flip-flops. </li></ul></ul></ul>
101.
Chapter Objectives <ul><li>Understand the different types of ripple counters </li></ul><ul><li>Understand the different types of synchronous and asynchronous counters </li></ul><ul><li>Understand the concept of presettable counters </li></ul><ul><li>Understand the applications of counters </li></ul>
102.
Asynchronous Counter <ul><li>Asynchronous Counter is also called ripple or serial counter. </li></ul><ul><li>It is constructed using JK flip-flop. </li></ul><ul><li>In this all the flip-flops are not controlled by a single clock. </li></ul><ul><li>The clock is applied to the least significant bit stage of the counter and rest of the flip-flops are controlled by the output of the previous flip-flops. </li></ul><ul><li>The propagation delay of the counter is the sum of individual delays of all the flip-flops. </li></ul><ul><li>The MOD-number or modulus of the counter refers to the total number of states that the counter undergoes in each complete cycle. It is equal to 2 n , where n is the total number of flip-flops. </li></ul>
103.
Ripple Counter with Decoded Outputs <ul><li>It consists of three master-slave JK flip-flops with decoding circuitry. </li></ul><ul><li>In decoding the states of the ripple counter, the pulse of one clock duration takes place at the decoding gate outputs as the flip-flops change their states. </li></ul><ul><li>The gate connected to the outputs of the counter is the decoding gate. </li></ul><ul><li>The output of the decoding gate is high only when the contents of the counter is equal to the given state. </li></ul>
104.
Ripple Counter with Decoded Outputs (Contd..) <ul><li>The decoding gates of asynchronous counter produces high output more than once. These undesired outputs are called glitches or false spikes. </li></ul><ul><li>The glitches should be avoided by strobing the decoding gates with clock inputs. </li></ul><ul><li>The maximum MOD-number that can be achieved using n flip-flops is 2 n . </li></ul><ul><li>Ripple counter can be modified to produce MOD-number less than 2 n by skipping the states of counting sequence. </li></ul>
105.
Counter Integrated Circuits <ul><li>Counter Integrated Circuits consist of four master-slave flip-flops. </li></ul><ul><li>These flip-flops are internally connected to provide different types of counters. </li></ul><ul><li>It uses two reset counters for resetting the counter to 0000. </li></ul><ul><li>Types of counter ICs are: </li></ul><ul><ul><li>Decade counter: The master-slave flip-flops are connected to provide divide-by-2 and divide-by-8 counters. </li></ul></ul><ul><ul><li>4-bit binary ripple counter: The master-slave flip-flops are connected to provide divide-by-2 and divide-by-5 counters. </li></ul></ul>
106.
Asynchronous Down Counter <ul><li>A down counter using n flip-flops counts downwards from the maximum count of (2 n -1) to 0. </li></ul><ul><li>In Asynchronous Down Counter, each flip-flop, except the LSB, changes its state when the inverted output of the preceding flip-flop goes from HIGH to LOW. </li></ul><ul><li>It is used for calculating the desired number of input pulses that has occurred. </li></ul><ul><li>The counter is preset to the desired number and allowed to countdown as the pulses are applied. </li></ul>
107.
Up-down Counter <ul><li>Up-down Counter is a combination of up and down counter. </li></ul><ul><li>It can count upwards as well as downwards. </li></ul><ul><li>It is also called multimode counter. </li></ul><ul><li>It uses logic gates to allow either the inverted or non-inverted output of one flip-flop to the clock input of the next flip-flop, depending upon the status of control inputs. </li></ul><ul><li>If the control inputs are both 1 or 0, then the counter does not count upwards or downwards, because the clock inputs of all the flip-flops except, the LSB will be held constant at either 0 or 1. This condition is avoided. </li></ul>
108.
Propagation Delay in Ripple Counter <ul><li>In ripple counter, the settling time becomes large due to presence of propagation delay (t pd ) of each flip-flop. </li></ul><ul><li>The propagation delay of the first and second flip-flops is t pd and 2 t pd respectively. </li></ul><ul><li>The maximum frequency used in asynchronous counter is 1/f max ≥ n t pd </li></ul><ul><li>or f max ≥ 1/ n t pd. </li></ul>
109.
Synchronous (Parallel) Counter <ul><li>Synchronous parallel counter is the simplest binary counter. </li></ul><ul><li>Synchronous parallel counter requires less hardware and the speed of operation is low because of propagation delay. </li></ul><ul><li>In this counter, all the flip-flops change their states simultaneously with negative transition of the clock input signal. </li></ul><ul><li>The total propagation delay is the sum total of the time taken by one flip-flop to toggle and the time for new logic levels to propagate through one AND gate. </li></ul>
110.
Synchronous (Parallel) Counter (Contd..) <ul><li>The propagation delay of synchronous counter is independent of the number of flip-flops used in the counter. </li></ul><ul><li>A parallel counter can be modified using the inverted outputs of flip-flops to feed different logic gates. The resulting counter is called parallel down counter. </li></ul><ul><li>The maximum frequency of operation of synchronous counter is: </li></ul><ul><li>f max = 1/(t p + t g ) </li></ul><ul><li>Where, t p is propagation delay and t g is the propagation delay of one AND gate. </li></ul>
111.
Problems with Synchronous Parallel Counter <ul><li>With the increase in the number of stages, the synchronous parallel counter requires: </li></ul><ul><ul><li>More number of AND gates </li></ul></ul><ul><ul><li>More number of inputs per control gate </li></ul></ul>
112.
Synchronous Counter with Ripple Carry <ul><li>Synchronous counter with ripple carry is used to eliminate the problems associated with the synchronous counter with parallel carry. </li></ul><ul><li>The clock frequency of ripple carry synchronous counter is less than that of synchronous counter with parallel carry. </li></ul><ul><li>The propagation delay of one AND gate is double as compared to synchronous counter with parallel carry. </li></ul>
113.
Synchronous/Asynchronous Counter <ul><li>It is a combination of synchronous and asynchronous counters. </li></ul><ul><li>It has the speed of synchronous counter and simplicity of asynchronous counter. </li></ul><ul><li>Input is applied only to the LSB flip-flop, similar to asynchronous counter. </li></ul><ul><li>Output of the counter drives the clock input of all the other flip-flops so that they trigger simultaneously, similar to synchronous counter. </li></ul>
114.
Presettable Counter <ul><li>The counter that starts counting from any state is called presettable counter. </li></ul><ul><li>It is also known as programmable counter. </li></ul><ul><li>It accepts the starting state using the PRESET and CLEAR inputs. </li></ul><ul><li>Example of presettable counter is MOD-8 ripple UP counter. </li></ul>
115.
Design of Synchronous Counters <ul><li>Steps of designing synchronous counter are: </li></ul><ul><ul><li>Draw the state diagram to describe the operation of the counter. </li></ul></ul><ul><ul><li>Obtain the Present State-next State (PS-NS) table from the state diagram to remove redundant state. </li></ul></ul><ul><ul><li>Make state assignment and document same in the above state table. </li></ul></ul><ul><ul><li>Obtain the excitation table from PS-NS table. </li></ul></ul><ul><ul><li>Draw the excitation maps of flip-flops and simplify the excitation functions. </li></ul></ul><ul><ul><li>Draw the schematic diagram of the counter. </li></ul></ul>
116.
Implementation and Application of Counter <ul><li>Applications of counter are: </li></ul><ul><ul><li>The frequency of the pulse signal can be measured and displayed using a counter. Such counters are known as frequency counter. </li></ul></ul><ul><ul><li>The time period of the signal can be measured by using counter. </li></ul></ul><ul><ul><li>Digital clocks can be implemented using counters to display the time of day in hours, minutes and seconds. </li></ul></ul>
Clipping is a handy way to collect and organize the most important slides from a presentation. You can keep your great finds in clipboards organized around topics.