Introduction to Digital Logic with Laboratory Exercises This Book Is Licensed Under a Creative Commons Attribution 3.0 License

Total Page:16

File Type:pdf, Size:1020Kb

Introduction to Digital Logic with Laboratory Exercises This Book Is Licensed Under a Creative Commons Attribution 3.0 License Introduction to Digital Logic with Laboratory Exercises This book is licensed under a Creative Commons Attribution 3.0 License Introduction to Digital Logic with Laboratory Exercises James Feher Copyright © 2009 James Feher Editor-In-Chief: James Feher Associate Editor: Marisa Drexel Proofreaders: Jackie Sharman, Rachel Pugliese For any questions about this text, please email: [email protected] The Global Text Project is funded by the Jacobs Foundation, Zurich, Switzerland This book is licensed under a Creative Commons Attribution 3.0 License Introduction to Digital Logic with Laboratory Exercises 2 A Global Text Table of Contents Preface...............................................................................................................................................................7 0. Introduction.............................................................................................................................9 1. The transistor and inverter....................................................................................................10 The transistor..................................................................................................................................................10 The breadboard................................................................................................................................................11 The inverter.....................................................................................................................................................12 2. Logic gates..............................................................................................................................14 History of logic chips.......................................................................................................................................14 Logic symbols..................................................................................................................................................15 Logical functions.............................................................................................................................................16 3. Logic simplification................................................................................................................19 De Morgan's laws............................................................................................................................................19 Karnaugh maps...............................................................................................................................................20 Circuit design, construction and debugging..................................................................................................24 4. More logic simplification.......................................................................................................27 Additional K-map groupings..........................................................................................................................27 Input placement on K-map............................................................................................................................29 Don't care conditions......................................................................................................................................29 5. Multiplexer.............................................................................................................................32 Background on the “mux”..............................................................................................................................32 Using a multiplexer to implement logical functions......................................................................................32 6. Timers and clocks..................................................................................................................37 Timing in digital circuits.................................................................................................................................37 555 timer.........................................................................................................................................................37 Timers.............................................................................................................................................................37 Clocks..............................................................................................................................................................38 Timing diagrams.............................................................................................................................................39 7. Memory .................................................................................................................................44 Memory...........................................................................................................................................................44 SR latch...........................................................................................................................................................44 Flip-flops.........................................................................................................................................................45 8. State machines.......................................................................................................................49 What is a state machine?................................................................................................................................49 State transition diagrams...............................................................................................................................50 State machine design......................................................................................................................................51 Debounced switches........................................................................................................................................55 9. More state machines..............................................................................................................57 How many bits of memory does a state machine need?................................................................................57 What are unused states?.................................................................................................................................57 10. What's next?.........................................................................................................................64 Appendix A: Chip pinouts.........................................................................................................65 Appendix B: Resistors and capacitors......................................................................................69 Resistors..........................................................................................................................................................69 Capacitors.......................................................................................................................................................70 3 This book is licensed under a Creative Commons Attribution 3.0 License Appendix C: Lab notebook.........................................................................................................71 Appendix D: Boolean algebra....................................................................................................73 Appendix E: Equipment list......................................................................................................74 Digital trainer..................................................................................................................................................74 7400 series families........................................................................................................................................75 Appendix F: Solutions ...............................................................................................................76 Chapter 1 review exercises..............................................................................................................................76 Chapter 2 review exercises.............................................................................................................................78 Chapter 3 review exercises..............................................................................................................................81 Chapter 4 review exercises.............................................................................................................................87 Chapter 5 review exercises.............................................................................................................................90 Chapter 6 review exercises.............................................................................................................................95 Chapter 7 review exercises.............................................................................................................................98 Chapter 8 review exercises............................................................................................................................101 Chapter 9 review exercises...........................................................................................................................104
Recommended publications
  • The Transistor - Successor
    THE TRANSISTOR - SUCCESSOR TO THE VACUUM TUBE? By John A. Doremus, Chief Engineer, Carrier and Control Engineering Dept. Motorola, Inc. Reprinted by Motorola Inc. Communications and Electronics Division Technical Information Center 4545 Augusta Boulevard • Chicago 51, Illinois presented to Chicago Section, I.R.E. January 18, 1952 ATIC-251-UM ERRATA Page 5, column 1, paragraph 10 should re a d : "The alternating current equivalent circuit of a Transistor (as shown in Fig. 24) for most - Page 5, column 2, paragraph 4 should re a d : "The output impedance is equivalent to rc plus rb. This may be from 20, 000 ohms to over a megohm. Figure 26 shows typical - -. " Page 5, column 2, paragraph 7 should re a d : "- _ _ _ are not permanently darpaged by elevated temperature as long as the criti­ cal point is not exceeded. " THE TRANSISTOR - SUCCESSOR TO THE VACUUM TUBE ? We, who work in the communication phase of a transistor is equivalent to a triode. Its phy si- this industry, when we get to the heart of many of can embodiment is extremely small, since its our problems, have the feeling that "There's no­ ability to amplify does not depend upon its size. thing wrong with electronics that the elimination Three different types of transistors are shown in of a few vacuum tubes would not fix. " This is a F ig s . 1, 2 and 3. sordid thought to have concerning the element around which our industry revolves. Yet many of It is interesting to note that the name is de­ our basic short comings can be traced back to the rived from the fact that it was called a transit vacuum tube.
    [Show full text]
  • View, New Products Require More Compact and Power-Saving Solutions to Accommodate the Ever-Growing Demand of the Market
    UNIVERSITY OF CINCINNATI Date:___________________ I, _________________________________________________________, hereby submit this work as part of the requirements for the degree of: in: It is entitled: This work and its defense approved by: Chair: _______________________________ _______________________________ _______________________________ _______________________________ _______________________________ X-band Phase Shifters for Phased Array A Dissertation submitted to the Division of Research and Advanced Studies of the University of Cincinnati in partial fulfillment of the requirements for the degree of MASTER OF SCIENCE in the Department of Electrical and Computer Engineering of the College of Engineering 2007 By Jian XU B.S., Shanghai Jiaotong University, China, June 2004 Committee Chair: Professor Altan M. Ferendeci Abstract In this thesis, X-band phase shifters have been investigated and developed to meet the needs of future multi-antenna communication systems. Different types of digital phase shifters have been described with design equations. An X-band analog phase shifter using vector sum method is designed and simulated in ADS environment. A new biphase modulator using Lange coupler structure is developed and employed in the analog phase shifter. The simulation results show around 12dB insertion loss and around 10dB reflection coefficient. The phase error for each state is better than some of the commercially available products. As an application of the phase shifter, a phased array receiver is proposed on a print circuit board. The receiver is to instantaneously configure the phased array to the direction to which the signal comes from. The integration of antenna array, RF circuit, analog-to-digital converter, and microprocessor gives the receiver practical application in wireless communication area. iii iv Acknowledgements Many thanks are due my thesis advisor, Professor Altan M.
    [Show full text]
  • SWITCHES for DAC the Switches Which Connects the Digital Binary Input to the Nodes of a D/A Converter Is an Electronic Switch
    SWITCHES FOR DAC The Switches which connects the digital binary input to the nodes of a D/A converter is an electronic switch. Although switches can be made of using diodes, Bipolar junction Transistors, Field Effect transistors or MOSFETs, They are i) Switches using MOS Transistor- Totem pole MOSFET Switch and CMOS Inverter Switch. i) Totem pole MOSFET Switch: The switches are in series with resistor R and therefore, their on resistance must be very low and they should have zero offset voltage. Bipolar transistor do not perform well as voltage switches, due to the inherent offset voltage when in saturation. However, using MOSFET, this can be achieved. Different types of digitally controlled SPDT electronics switches are available. A totem pole MOSFET driver feeds each resistor connected to the inverting input terminal 'a' . The two complementary gate inputs Q and 푄̅ come from MosFET S-R flip-flop or a binary cell of a register which holds one bit of the digital information to be converted to an analog number. Assume a negative logic, i e. logic '1' corresponds to -10 V and logic "0' corresponds to zero 0v. If there is 'l' in the bit line, S=1 and R= 0 so that Q =1 and 푄̅ = 0. This drives t he transistor Q1 on, thus connecting the resistor R1 to the reference voltage -VR whereas the transistor Q2 remains off. Similarly a "0" at the bit line connects the resistor R1 to the ground terminal. ii) CMOS Inverter Switch: Another SPDT switch consists of CMOS inverter feeding an op-amp voltage follower which drives R1 from a very low output resistance.
    [Show full text]
  • Basic Electronic Components
    An introduction to electronic components that you will need to build a motor speed controller. Resistors A resistor impedes the flow of electricity through a circuit. Resistors have a set value. Since voltage, current and resistance are related through Ohm’s law, resistors are a good way to control voltage and current in your circuit. 2 More on resistors Resistor color codes 1st band = 1st number 2nd band = 2nd number 3rd band = # of zeros / multiplier 4th band = tolerance 3 Color code Tolerance: Gold = within 5% Black: 0 Brown: 1 Red: 2 Orange: 3 Yellow: 4 Green: 5 Blue: 6 Violet: 7 Gray: 8 White: 9 4 Units Knowing your units is important! Kilo and Mega are common in resistors Milli, micro, nano and pico can be used in other components K (kilo) = 1,000 M (mega) = 1,000,000 M (milli) = 1/1,000 u (micro) = 1/1,000,000 n (nano) = 1/1,000,000,000 (one trillionth) p (pico) = 1 / 1,000,000,000,000 (one quadrillionth) 5 Capacitors A capacitor stores electrical energy. This pool of electrons is available for electronic components to use. Capacitance is measured in Farads. The small capacitors usually used in electronics are often measured in microfarads and nanofarads. Some capacitors are polarized. Note the different length terminals on one of the capacitors. 6 Polarity of capacitors The shorter terminal goes on the negative side. The stripe is on the negative terminal side of the capacitor. The board is marked for positive or negative. 7 Applications of capacitors Capacitors supply a pool of electrons for immediate use.
    [Show full text]
  • Power Electronics
    har80679_FC.qxd 12/11/09 6:23 PM Page ii Commonly used Power and Converter Equations Instantaneous power: p(t) ϭ v(t)i(t) t2 Energy: W ϭ p(t)dt 3 t1 ϩ ϩ t0 T t0 T W 1 1 Average power: P ϭ ϭ p(t) dt ϭ v(t)i(t) dt T T 3 T 3 t0 t0 ϭ Average power for a dc voltage source: Pdc Vdc Iavg 1 T rms voltage: V ϭ v 2(t)dt rms B T 3 0 ϭ ϩ ϩ ϩ . : ϭ 2 ϩ 2 ϩ 2 ϩ Á 2 rms for v v1 v2 v3 Vrms V1, rms V2, rms V3, rms I rms current for a triangular wave: I ϭ m rms 13 2 Im 2 rms current for an offset triangular wave: I ϭ ϩ I rms B a 13 b dc V rms voltage for a sine wave or a full-wave rectified sine wave: V ϭ m rms 12 har80679_FC.qxd 12/11/09 6:23 PM Page iii V rms voltage for a half-wave rectified sine wave: V ϭ m rms 2 P P Power factor: pf ϭ ϭ S Vrms Irms q 2 a I n A ϭ Total harmonic distortion: THD ϭ n 2 I1 1 Distortion factor: DF ϭ A1 ϩ (THD)2 Irms Form factor ϭ Iavg Ipeak Crest factor ϭ Irms ϭ Buck converter: Vo Vs D V Boost converter: V ϭ s o 1 Ϫ D D Buck-boost and Cuk´ converters: V ϭϪV o s a1 Ϫ D b D SEPIC: V ϭ V o s a1 Ϫ D b ϭ D N2 Flyback converter: Vo Vs Ϫ a1 D baN1 b ϭ N2 Forward converter: Vo Vs D a N1 b har80679_FM_i-xiv.qxd 12/17/09 12:38 PM Page i Power Electronics Daniel W.
    [Show full text]
  • Electronic Components
    Electronic Components Name Class Teacher Ellon Academy Technical Faculty Learning Intentions o To know what an analogue component is o To know how to properly draw a circuit diagram using the proper symbols o To know about the basic concepts of current, voltage and resistance o To investigate simple series circuits o To investigate parallel circuits o To learn about symbols in circuit diagrams o To learn about LDR and thermistors o To learn about L.E.D.’s and protective resistors Success Criteria o I can describe a range of analogue components and say what their function and purpose is within a circuit o I can produce circuit diagrams of analogue electronic circuits that o I can measure current and resistance in series circuits using voltmeters and ammeters o I am able to produce circuit diagrams for both series and parallel electronic circuits o I am able to simulate and construct electronic control systems o I can use mathematical formulae to calculate appropriate component values, such as resistor sizing o I can test and evaluate an electronic solution against a specification YENKA is a free program you can download at home to build electronic circuits and help you with your studies http://www.yenka.com/en/Free_student_home_licences/ To access video clips that will help on this course go to www.youtube.com/MacBeathsTech 1 Electric Circuits An electric circuit is a closed loop made up of electrical components such as batteries, bulbs and switches. Electric current is the name given to the flow of negatively charged particles called electrons.
    [Show full text]
  • Overview of Power Electronic Switches: a Summary of the Past, State-Of-The-Art and Illumination of the Future
    micromachines Review Overview of Power Electronic Switches: A Summary of the Past, State-of-the-Art and Illumination of the Future Immanuel N. Jiya 1,* and Rupert Gouws 2 1 Department of Engineering Sciences, University of Agder, 4879 Grimstad, Norway 2 School of Electrical, Electronic and Computer Engineering, North-West University, Potchefstroom 2520, South Africa; [email protected] * Correspondence: [email protected]; Tel.: +47-486-136-70 Received: 30 October 2020; Accepted: 12 December 2020; Published: 16 December 2020 Abstract: As the need for green and effective utilization of energy continues to grow, the advancements in the energy and power electronics industry are constantly driven by this need, as both industries are intertwined for obvious reasons. The developments in the power electronics industry has over the years hinged on the progress of the semiconductor device industry. The semiconductor device industry could be said to be on the edge of a turn into a new era, a paradigm shift from the conventional silicon devices to the wide band gap semiconductor technologies. While a lot of work is being done in research and manufacturing sectors, it is important to look back at the past, evaluate the current progress and look at the prospects of the future of this industry. This paper is unique at this time because it seeks to give a good summary of the past, the state-of-the-art, and highlight the opportunities for future improvements. A more or less ‘forgotten’ power electronic switch, the four-quadrant switch, is highlighted as an opportunity waiting to be exploited as this switch presents a potential for achieving an ideal switch.
    [Show full text]
  • Bipolar Transistor Basics
    Bipolar Transistor Basics In the Diode tutorials we saw that simple diodes are made up from two pieces of semiconductor material, either silicon or germanium to form a simple PN-junction and we also learnt about their properties and characteristics. If we now join together two individual signal diodes back-to-back, this will give us two PN-junctions connected together in series that share a common P or N terminal. The fusion of these two diodes produces a three layer, two junction, three terminal device forming the basis of a Bipolar Transistor, or BJT for short. Transistors are three terminal active devices made from different semiconductor materials that can act as either an insulator or a conductor by the application of a small signal voltage. The transistor's ability to change between these two states enables it to have two basic functions: "switching" (digital electronics) or "amplification" (analogue electronics). Then bipolar transistors have the ability to operate within three different regions: • 1. Active Region - the transistor operates as an amplifier and Ic = β.Ib • • 2. Saturation - the transistor is "fully-ON" operating as a switch and Ic = I(saturation) • • 3. Cut-off - the transistor is "fully-OFF" operating as a switch and Ic = 0 Typical Bipolar Transistor The word Transistor is an acronym, and is a combination of the words Transfer Varistor used to describe their mode of operation way back in their early days of development. There are two basic types of bipolar transistor construction, NPN and PNP, which basically describes the physical arrangement of the P-type and N-type semiconductor materials from which they are made.
    [Show full text]
  • Electronic Switch on Mos Transistors with Low Voltage Drop and Low Current Leakage
    VOL. 11, NO. 7, APRIL 2016 ISSN 1819-6608 ARPN Journal of Engineering and Applied Sciences ©2006-2016 Asian Research Publishing Network (ARPN). All rights reserved. www.arpnjournals.com ELECTRONIC SWITCH ON MOS TRANSISTORS WITH LOW VOLTAGE DROP AND LOW CURRENT LEAKAGE Ruslan Dombrovskiy, Alexander Odnolko, Mikhail Pavlyuk, and Alexander Serebryakov ICC Milandr, JSC, Zelenograd, Moscow, Russia E-Mail: [email protected] ABSTRACT The paper considers a way to minimize the voltage drop of electronic switch on field-effect transistor (FET) in open state. It explains the advantage of using field-effect transistor for constructing electronic switch. The paper has also shown the influence of an output current of the gate of transistor on its conductivity. It compares the well-known electronic switch architectures, which are put equal to the common area. It also offers the architecture with a small magnitude of voltage drop in open state and low leakage current in closed state. The paper shows the results of open state electronic switch resistance simulation and also leakage current in closed state. Keywords: electronic switch, analog switch, MOS field-effect transistor (MOSFET), high-speed performance, voltage drop, leakage current. INTRODUCTION the induced channel. The upper voltage level on a gate Uctr Today the world of electronics is rich in various (above the threshold voltage – Uthr) is opening for such electronic switches which realized on MOSFET. Since the structures – the resistance is minimal; the transistors are advent of their first versions, there have been made many closed when supply the lower level Uctr – the resistance specialized circuits, which are different in their reaches the greatest value (Rinp).
    [Show full text]
  • Electronic Components Booklet
    Electronic Components Name Class Teacher Learning Intentions o To know what an analogue component is o To know how to properly draw a circuit diagram using the proper symbols o To know about the basic concepts of current, voltage and resistance o To investigate simple series circuits o To investigate parallel circuits o To learn about symbols in circuit diagrams o To learn about LDR and thermistors o To learn about L.E.D.’s and protective resistors Success Criteria o I can describe a range of analogue components and say what their function and purpose is within a circuit o I can produce circuit diagrams of analogue electronic circuits that o I can measure current and resistance in series circuits using voltmeters and ammeters o I am able to produce circuit diagrams for both series and parallel electronic circuits o I am able to simulate and construct electronic control systems o I can use mathematical formulae to calculate appropriate component values, such as resistor sizing o I can test and evaluate an electronic solution against a specification YENKA is a free program you can download at home to build electronic circuits and help you with your studies http://www.yenka.com/en/Free_student_home_licences/ To access video clips that will help on this course go to www.youtube.com/MacBeathsTech 1 Electric Circuits An electric circuit is a closed loop made up of electrical components such as batteries, bulbs and switches. Electric current is the name given to the flow of negatively charged particles called electrons. Conventional current is the direction in which an electric current is considered to flow in a circuit.
    [Show full text]
  • High Current Switch
    High Current Switch A thesis submitted in partial fulfillment of the requirements for the degree of Bachelor of Science degree in Physics from the College of William and Mary by Andrew Robert Hall Advisor: Seth Aubin Senior Research Coordinator: Gina Hoatson Date: May 11, 2015 Contents 1 Introduction 2 1.1 Objective ..................................... 2 1.2 Motivation .................................... 2 2 Design 3 2.1 Requirements ................................... 3 2.2 BasicDesign ................................... 6 2.3 SystemDesignofSwitch............................. 7 2.4 MOSFETBasedSwitchCore .......................... 9 2.5 FloatingMOSFETDrivers ........................... 10 2.6 MasterControlCircuit.............................. 11 2.7 PowerManagement................................ 13 2.7.1 Power Considerations . 13 2.7.2 Baseplate and Epoxy . 14 2.8 Current ...................................... 14 2.9 MechanicalDesign ................................ 15 3 Construction 15 3.1 SwitchCoreConstruction ............................ 16 3.2 MOSFETDriverCircuitConstruction . 17 3.3 MasterControlCircuit.............................. 18 3.4 CurrentSensor .................................. 19 3.5 Pre-ConstructionTesting . 20 3.6 Testing ...................................... 20 1 4 Outlook 21 5 Conclusions 21 2 Abstract The design, construction, and basic testing of an externally and digitally controlled electronic switch, designed to reverse current flow through magnetic coils is described. It is designed specifically to handle
    [Show full text]
  • Supplies Systems Applications Components Semiconductors
    $129 MANAGEMENT SAM DAVIS POWERSUPPLIES SYSTEMS APPLICATIONS COMPONENTS SEMICONDUCTORS Copyright © 2016 by Penton Media, Inc. All rights reserved. SUBSCRIBE: electronicdesign.com/subscribe | 1 POWER ELECTRONICS LIBRARY TABLE OF CONTENTS ID VGS VD -3.0 -2.0 -1.0 0.0 1.0 2.0 3.0 0V -1V -1.5V -2V -2.5V MANAGEMENT -3.3V BY SAM DAVIS VDD BP3BP6 BOOT VIN 100.0 Linear VGS Regulators HSFET 80.0 Driver 5V Control 60.0 4V Anti-Cross- SW 20.0 3V Conduction BP6 RT 2V Oscillator Pre-Bias LSFET 40.0 1V SYNC/RESET_B ID 00.0 0V Ramp PWM S Q GND OC Event -20.0 RESET_VOUT + R Q Current COMP Average IOUT Sense, -40.0 OC Error Amplifier Detection CLK -60.0 FB Fault + VREF for -80.0 Soft-Start and OC Threshold DATA Reference VOUT_COMMAND -100.0 -3.0 -2.0 -1.0 0.0 1.0 2.0 3.0 DAC SMBALERT PMBus Engine VSET VD Courtesy of Efficient Power Conversion CNTL V Sense ADC, PMBus Commands, OUT IC Interface, EEPROM OV/UV Detection ADDR0 ADDR1 DIFFO INTRODUCTION 2 PART 4: POWER APPLICATIONS .......................................................Temperature 750 kΩ Sensing PGOOD AGND PART 1: THE POWER SUPPLY CHAPTER 12: WIRELESS POWER TRANSFER ............... 98 PGND CHAPTER 1: POWER SUPPLY FUNDAMENTALS ........... 3 CHAPTER 13: ENERGY HARVESTING ....................... 104 VOUTS+ VOUTS– TSNS/SS CHAPTER 2: POWER SUPPLY CHARACTERISTICS ......... 6 CHAPTER 14: CIRCUIT PROTECTION DEVICES .......... 108 CHAPTER 3: POWER SUPPLIES – MAKE OR BUY? ...... 14 CHAPTER 15: PHOTOVOLTAIC SYSTEMS .................. 115 CHAPTER 4: POWER SUPPLY PACKAGES .................. 17 CHAPTER 16: WIND POWER SYSTEMS .................... 124 CHAPTER 5: POWER MANAGEMENT CHAPTER 17: ENERGY STORAGE ...........................
    [Show full text]