Digital Electronics. HIGH (H), or 1 LOW (L), or. +5V 0V HIGH (logic 1) discrete voltage levels

Similar documents
Solution to Digital Logic )What is the magnitude comparator? Design a logic circuit for 4 bit magnitude comparator and explain it,

UNIT 1: DIGITAL LOGICAL CIRCUITS What is Digital Computer? OR Explain the block diagram of digital computers.

MODULE 3. Combinational & Sequential logic

Final Exam review: chapter 4 and 5. Supplement 3 and 4

CS302 Digital Logic Design Solved Objective Midterm Papers For Preparation of Midterm Exam

Logic Symbols with Truth Tables

The basic logic gates are the inverter (or NOT gate), the AND gate, the OR gate and the exclusive-or gate (XOR). If you put an inverter in front of

Introduction to Digital Electronics

QUICK GUIDE COMPUTER LOGICAL ORGANIZATION - OVERVIEW

Logic Symbols with Truth Tables INVERTER A B NAND A B C NOR C A B A B C XNOR A B C A B Digital Logic 1

Analogue Versus Digital [5 M]

Chapter 9 MSI Logic Circuits

WINTER 15 EXAMINATION Model Answer

UNIT IV. Sequential circuit

TYPICAL QUESTIONS & ANSWERS

Contents Circuits... 1

Notes on Digital Circuits

Chapter 3 Digital Data

Decade Counters Mod-5 counter: Decade Counter:

EXPERIMENT: 1. Graphic Symbol: OR: The output of OR gate is true when one of the inputs A and B or both the inputs are true.

MODU LE DAY. Class-A, B, AB and C amplifiers - basic concepts, power, efficiency Basic concepts of Feedback and Oscillation. Day 1

Computer Architecture and Organization

The word digital implies information in computers is represented by variables that take a limited number of discrete values.

NORTHWESTERN UNIVERSITY TECHNOLOGICAL INSTITUTE

Semester 6 DIGITAL ELECTRONICS- core subject -10 Credit-4

`COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

Synchronous Digital Logic Systems. Review of Digital Logic. Philosophy. Combinational Logic. A Full Adder. Combinational Logic

IT T35 Digital system desigm y - ii /s - iii

Notes on Digital Circuits

EE292: Fundamentals of ECE

COMP sequential logic 1 Jan. 25, 2016

Tribhuvan University Institute of Science and Technology Bachelor of Science in Computer Science and Information Technology

CS 61C: Great Ideas in Computer Architecture

Logic Design Viva Question Bank Compiled By Channveer Patil

DIGITAL ELECTRONICS: LOGIC AND CLOCKS

AN INTRODUCTION TO DIGITAL COMPUTER LOGIC

Sequential Logic Basics

Chapter 4. Logic Design

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) WINTER 2018 EXAMINATION MODEL ANSWER

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District UNIT-III SEQUENTIAL CIRCUITS

1. Convert the decimal number to binary, octal, and hexadecimal.

TIME SCHEDULE. MODULE TOPICS PERIODS 1 Number system & Boolean algebra 17 Test I 1 2 Logic families &Combinational logic

Laboratory Objectives and outcomes for Digital Design Lab

Vignana Bharathi Institute of Technology UNIT 4 DLD

AC103/AT103 ANALOG & DIGITAL ELECTRONICS JUN 2015

SEQUENTIAL LOGIC. Satish Chandra Assistant Professor Department of Physics P P N College, Kanpur

EXPERIMENT #6 DIGITAL BASICS

Find the equivalent decimal value for the given value Other number system to decimal ( Sample)

Logic Design IS1200, spring 2015 Review Slides

MC9211 Computer Organization

FLIP-FLOPS AND RELATED DEVICES

Encoders and Decoders: Details and Design Issues

Chapter 3. Boolean Algebra and Digital Logic

Digital Circuits 4: Sequential Circuits

Registers & Counters. Logic and Digital System Design - CS 303 Erkay Savaş Sabanci University

Introduction to Digital Logic Missouri S&T University CPE 2210 Exam 3 Logistics

Section 001. Read this before starting!

Microcontrollers and Interfacing week 7 exercises

UNIT III. Combinational Circuit- Block Diagram. Sequential Circuit- Block Diagram

Flip Flop. S-R Flip Flop. Sequential Circuits. Block diagram. Prepared by:- Anwar Bari

DIGITAL SYSTEM DESIGN UNIT I (2 MARKS)

SEMESTER ONE EXAMINATIONS 2002

MODULAR DIGITAL ELECTRONICS TRAINING SYSTEM

Chapter 5: Synchronous Sequential Logic

2 The Essentials of Binary Arithmetic

VU Mobile Powered by S NO Group

VLSI Design: 3) Explain the various MOSFET Capacitances & their significance. 4) Draw a CMOS Inverter. Explain its transfer characteristics

MODEL QUESTIONS WITH ANSWERS THIRD SEMESTER B.TECH DEGREE EXAMINATION DECEMBER CS 203: Switching Theory and Logic Design. Time: 3 Hrs Marks: 100

4.S-[F] SU-02 June All Syllabus Science Faculty B.Sc. II Yr. Instrumentation Practice [Sem.III & IV] S.Lot

Music Electronics Finally DeMorgan's Theorem establishes two very important simplifications 3 : Multiplexers

Registers, Register Transfers and Counters Dr. Fethullah Karabiber

TV Synchronism Generation with PIC Microcontroller

CPS311 Lecture: Sequential Circuits

WINTER 14 EXAMINATION

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified)

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) COUNTERS

I B.SC (INFORMATION TECHNOLOGY) [ ] Semester II CORE : DIGITAL COMPUTER FUNDAMENTALS - 212B Multiple Choice Questions.

[2 credit course- 3 hours per week]

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous)

Laboratory 9 Digital Circuits: Flip Flops, One-Shot, Shift Register, Ripple Counter

Bachelor Level/ First Year/ Second Semester/ Science Full Marks: 60 Computer Science and Information Technology (CSc. 151) Pass Marks: 24

For Teacher's Use Only Q Total No. Marks. Q No Q No Q No

Dev Bhoomi Institute Of Technology Department of Electronics and Communication Engineering PRACTICAL INSTRUCTION SHEET

DALHOUSIE UNIVERSITY Department of Electrical & Computer Engineering Digital Circuits - ECED 220. Experiment 4 - Latches and Flip-Flops

Part 4: Introduction to Sequential Logic. Basic Sequential structure. Positive-edge-triggered D flip-flop. Flip-flops classified by inputs

DIGITAL TECHNICS. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

A Review of logic design

CHAPTER 4: Logic Circuits

UNIVERSITI TEKNOLOGI MALAYSIA

Chapter 7 Counters and Registers

PHYSICS 5620 LAB 9 Basic Digital Circuits and Flip-Flops

Course Plan. Course Articulation Matrix: Mapping of Course Outcomes (COs) with Program Outcomes (POs) PSO-1 PSO-2

Agenda. EE 260: Introduction to Digital Design Counters and Registers. Asynchronous (Ripple) Counters. Asynchronous (Ripple) Counters

Chapter 2. Digital Circuits

CS6201 UNIT I PART-A. Develop or build the following Boolean function with NAND gate F(x,y,z)=(1,2,3,5,7).

PHYS 3322 Modern Laboratory Methods I Digital Devices

Digital Circuits I and II Nov. 17, 1999

(Refer Slide Time: 2:03)

Chapter 5 Flip-Flops and Related Devices

Digital Circuits. Electrical & Computer Engineering Department (ECED) Course Notes ECED2200. ECED2200 Digital Circuits Notes 2012 Dalhousie University

Transcription:

PTER igital Electronics. The asics of igital Electronics Until now I have mainly covered the analog realm of electronics circuits that accept and respond to voltages that vary continuously over a given range. Such analog circuits included rectifiers, filters, amplifiers, simple R timers, oscillators, simple transistor switches, etc. lthough each of these analog circuits is fundamentally important in its own right, these circuits lack an important feature they cannot store and process bits of information needed to make complex logical decisions. To incorporate logical decision-making processes into a circuit, you need to use digital electronics. nalog Signal igital Signal Using a switch to demonstrate logic states +V +V continuous voltage waveform +V V IG (), or OW (), or discrete voltage levels K K +V V IG (logic ) OW (logic ) FIGURE... igital ogic States In digital electronics there are only two voltage states present at any point within a circuit. These voltage states are either high or low. The meaning of a voltage being high or low at a particular location within a circuit can signify a number of things. For example, it may represent the on or off state of a switch or saturated transistor. It may represent one bit of a number, or whether an event has occurred, or whether some action should be taken. The high and low states can be represented as true and false statements, which are used in oolean logic. In most cases, high = true and low = false. owever, this does not have to be the case you could make high = false and low = true. The decision to use one convention over the other is a matter left ultimately to the designer. In digital lingo, to avoid people getting confused over which convention is in use, the term opyright The McGraw-ill ompanies, Inc. lick ere for Terms of Use.

PRTI EETRONIS FOR INVENTORS positive true logic is used when high = true, while the term negative true logic is used when high = false. In oolean logic, the symbols and are used to represent true and false, respectively. Now, unfortunately, and are also used in electronics to represent high and low voltage states, where high = and low =. s you can see, things can get a bit confusing, especially if you are not sure which type of logic convention is being used, positive true or negative true logic. I will give some examples later on in this chapter that deal with this confusing issue. The exact voltages assigned to a high or low voltage states depend on the specific logic I that is used (as it turns, digital components are entirely I based). s a general rule of thumb, + V is considered high, while V (ground) is considered low. owever, as you will see in Section., this does not have to be the case. For example, some logic Is may interrupt a voltage from +. to + V as high and a voltage from +. to V as low. Other Is may use an entirely different range. gain, I will discuss these details later... Number odes Used in igital Electronics inary ecause digital circuits work with only two voltage states, it is logical to use the binary number system to keep track of information. binary number is composed of two binary digits, and, which are also called bits (e.g., = low voltage, = high voltage). y contrast, a decimal number such as is represented by successive powers of : = + + Similarly, a binary number such as ( ) can be expressed as successive powers of : = + + + + The subscript tells what number system is in use ( = decimal number, = binary number). The highest-order bit (leftmost bit) is called the most significant bit (MS), while the lowest-order bit (rightmost bit) is called the least significant bit (S). Methods used to convert from decimal to binary and vice versa are shown below. ecimal-to-inary onversion ecimal-to-inary onversion FIGURE. to binary / = w/ remainder (S) / = w/ remainder / = w/ remainder / = w/ remainder / = w/ remainder / = w/ remainder / = w/remainder (MS) nswer: -bit answer: Take decimal number and keep dividing by, while keeping the remainders. The first remainer becomes the S, while the last one becomes the MS. to decimal (MS) (S) x = x = x = x = x = x = x = x = Expand the binary number as shown and add up the terms. The result will be in decimal form. nswer: It should be noted that most digital systems deal with,,,, etc., bit strings. In the decimal-to-binary conversion example given here, you had a -bit answer. In

igital Electronics an -bit system, you would have to add an additional in front of the MS (e.g., ). In a -bit system, additional s would have to be added (e.g., ). s a practical note, the easiest way to convert a number from one base to another is to use a calculator. For example, to convert a decimal number into a binary number, type in the decimal number (in base mode) and then change to binary mode (which usually entails a d-function key). The number will now be in binary (s and s). To convert a binary number to a decimal number, start in binary mode, type in the number, and then switch to decimal mode. Octal and exadecimal Two other number systems used in digital electronics include the octal and hexadecimal systems. In the octal system (base ), there are allowable digits:,,,,,,,. In the hexadecimal system, there (base ) there are allowable digits:,,,,,,,,,,,,,, E, F. ere are example octal and hexadecimal numbers with decimal equivalents: (octal) = + + = (decimal) (hex) = + (= ) + = (decimal) Now, binary numbers are of course the natural choice for digital systems, but since these binary numbers can become long and difficult to interpret by our decimalbased brains (a result of our fingers), it is common to write them in hexadecimal or octal form. Unlike decimal numbers, octal and hexadecimal numbers can be translated easily to and from binary. This is so because a binary number, no matter how long, can be broken up into -bit groupings (for octal) or -bit groupings (for hexadecimal) you simply add zero to the beginning of the binary number if the total numbers of bits is not divisible by or. Figure. should paint the picture better than words. Octal to inary inary to Octal ex to inary inary to ex to binary to octal E to binary to octal E F nswer: nswer: nswer: nswer: F FIGURE. -digit binary number is replaced for each octal digit, and vise versa. The -digit terms are then grouped (or octal terms are grouped). -digit binary number is replaced for each hex digit, and vise versa. The -digit terms are then grouped (or hex terms are grouped). Today, the hexadecimal system has essentially replaced the octal system. The octal system was popular at one time, when microprocessor systems used -bit and -bit words, along with a -bit alphanumeric code all these are divisible by -bit units ( octal digit). Today, microprocessor systems mainly work with -bit, -bit, -bit, - bit, or -bit words all these are divisible by -bit units ( hex digit). In other words, an -bit word can be broken down into hex digits, a -bit word into hex digits, a -bit word into hex digits, etc. exadecimal representation of binary numbers pops up in many memory and microprocessor applications that use programming

PRTI EETRONIS FOR INVENTORS codes (e.g., within assembly language) to address memory locations and initiate other specialized tasks that would otherwise require typing in long binary numbers. For example, a -bit address code used to identify of million memory locations can be replaced with a hexadecimal code (in the assembly program) that reduces the count to hex digits. [Note that a compiler program later converts the hex numbers within the assembly language program into binary numbers (machine code) which the microprocessor can use.] Table. gives a conversion table. TE. ecimal, inary, Octal, ex, onversion Table EIM INRY OT EEIM E F ode inary-coded decimal () is used to represent each digit of a decimal number as a -bit binary number. For example, the number in is expressed as

x x x x x x x x igital Electronics = () To convert from to binary is vastly more difficult, as shown in Fig... Of course, you could cheat by converting the into decimal first and then convert to binary, but that does not show you the mechanics of how machines do things with s and s. You will rarely have to do -to-binary conversion, so I will not dwell on this topic I will leave it to you to figure how it works (see Fig..). () + -digit MS Second digit S l k j i h g f e d c b a (decimal) (binary) x x x x + Weighting factor bit position decimal binary a b c d e f g h i j k l FIGURE. is commonly used when putting to decimal ( ) displays, such as those found in digital clocks and multimeters. will be discussed later in Section.. Sign-Magnitude and s omplement Numbers Up to now I have not considered negative binary numbers. ow do you represent them? simple method is to use sign-magnitude representation. In this method, you simply reserve a bit, usually the MS, to act as a sign bit. If the sign bit is, the number is positive; if the sign bit is, the number is negative (see Fig..). lthough the sign-magnitude representation is simple, it is seldom used because adding requires a different procedure than subtracting (as you will see in the next section). Occasionally, you will see sign-magnitude numbers used in display and analog-to-digital applications but hardly ever in circuits that perform arithmetic. more popular choice when dealing with negative numbers is to use s complement representation. In s complement, the positive numbers are exactly the same as unsigned binary numbers. negative number, however, is represented by a binary number, which when added to its corresponding positive equivalent results in zero. In this way, you can avoid two separate procedures for doing addition and subtraction. You will see how this works in the next section. simple procedure lining how to convert a decimal number into a binary number and then into a s complement number, and vice versa, is lined in Fig... rithmetic with inary Numbers dding, subtracting, multiplying, and dividing binary numbers, hexadecimal numbers, etc., can be done with a calculator set to that particular base mode. ut that s

PRTI EETRONIS FOR INVENTORS ecimal, Sign-Magnitude, s omplement onversion Table SIGN- EIM MGNITUE S OMPEMENT + + + + + + + ecimal to 's complement + to 's complement true binary = 's comp = to 's complement true binary = 's comp = dd = + 's comp = If the decimal number is positive, the 's complement number is equal to the true binary equivalent of the decimal number. If the decimal number is negative, the 's complement number is found by: ) omplementing each bit of the true binary equivalent of the decimal (making 's into 's and vise versa). This is is called taking the 's complement. ) dding to the 's complement number to get the magnitude bits. The sign bit will always end up being. 's complement to decimal If the 's complement number is positive (sign bit = ), perform a regular binary-to-decimal conversion. ('s comp) to decimal 's comp = If the 's complement number is negative (sign bit = ), the decimal sign will be negative. The decimal is omplement = found by: dd = + ) omplementing each bit of the 's complement True binary = number. ecimal eq. = ) dding to get the true binary equivalent. ) Performing a true binary-to-decimal conversion. FIGURE. cheating, and it doesn t help you understand the mechanics of how it is done. The mechanics become important when designing the actual arithmetical circuits. ere are the basic techniques used to add and subtract binary numbers. + ING = = FIGURE. SUTRTION Subtraction done the long way FIGURE. + = = 's comp. subtraction + = - = Sum = dding binary numbers is just like adding decimal numbers; whenever the result of adding one column of numbers is greater than one digit, a is carried over to the next column to be added. Subtracting decimal numbers is not as easy as it looks. It is similar to decimal subtraction but can be confusing. For example, you might think that if you were to subtract a from a, you would borrow a from the column to the left. No! You must borrow a ( ). It becomes a headache if you try to do this by hand. The trick to subtracting binary numbers is to use the s complement representation that provides the sign bit and then just add the positive number with the negative number to get the sum.this method is often used by digital circuits because it allows both addition and subtraction, with the headache of having to subtract the smaller number from the larger number. SII SII (merican Standard ode for Information Interchange) is an alphanumeric code used to transmit letters, symbols, numbers, and special nonprinting characters between computers and computer peripherals (e.g., printer, keyboard, etc.). SII consists of different -bit codes. odes from (or hex ) to (or hex F) are reserved for nonprinting characters or special machine commands like ES (escape), E (delete), R (carriage return), F (line feed), etc. odes from (or hex ) to (or hex F) are reserved for printing characters like a,, #, &, {, @,, etc. See Tables. and.. In practice, when SII code is sent, an additional bit is added to make it compatible with -bit systems. This bit may be set to and ignored, it may be used as a parity bit for error detection (I will cover parity bits in Section.), or it may act as a special function bit used to implement an additional set of specialized characters.

TE. SII Nonprinting haracters E E -IT OE ONTRO R R MENING E E -IT ONTRO R R MENING ctrl-@ NU Null ctrl-p E ata line escape ctrl- SO Start of heading ctrl- evice control ctrl- ST Start of text ctrl-r evice control ctrl- ET End of text ctrl-s evice control ctrl- EOT End of xmit ctrl-t evice control ctrl-e EN Enquiry ctrl-u NK Neg acknowledge ctrl-f K cknowledge ctrl-v SYN Synchronous idle ctrl-g E ell ctrl-w ET End of xmit block ctrl- S ackspace ctrl- N ancel ctrl-i T orizontal tab ctrl-y EM End of medium ctrl-j F ine feed ctrl-z SU Substitute ctrl-k VT Vertical tab ctrl-[ ES Escape ctrl- FF Form feed ctrl-\ FS File separator ctrl-m R arriage return ctrl-] GS Group separator E ctrl-n S Shift E ctrl-^ RS Record separator F ctrl-o SI Shift in F ctrl-_ US Unit separator TE. SII Printing haracters E E -IT OE R E E -IT R E E -IT OE R SP @! a b # c $ d % E e & F f G g ( h ) I i * J j + K k, l - M m E. E N E n F / F O F o P p q R r S s T t U u V v W w x Y y : Z z ; [ { < \ = ] } E > E ^ E F? F _ F E

PRTI EETRONIS FOR INVENTORS.. lock Timing and Parallel versus Serial Transmission efore moving on to the next section, let s take a brief look at three important items: clock timing, parallel transmission, and serial transmission. lock Timing FIGURE. +V V V clock T ns V f = /T = / ns = Mz t igital circuits require precise timing to function properly. Usually, a clock circuit that generates a series of high and low pulses at a fixed frequency is used as a reference on which to base all critical actions executed within a system. The clock is also used to push bits of data through the digital circuitry. The period of a clock pulse is related to its frequency by T = /f. So, if T = ns, then f = /( ns) = Mz. Serial versus Parallel Representation inary information can be transmitted from one location to another in either a serial or parallel manner. The serial format uses a single electrical conductor (and a common ground) for data transfer. Each bit from the binary number occupies a separate clock period, with the change from one bit to another occurring at each falling or leading clock edge the type of edge depends on the circuitry used. Figure. shows an -bit () word that is transmitted from circuit to circuit in clock pulses ( ). In computer systems, serial communications are used to transfer data between keyboard and computer, as well as to transfer data between two computers via a telephone line. Serial transmission of a -bit word () Parallel transmission of a -bit word () clock data +V V +V V S ircuit data ircuit MS -bit word ircuit S a = b = c = d = e= f = g = h = data MS ircuit clock a b c d e f g h S MS data FIGURE. Parallel transmission uses separate electrical conductors for each bit (and a common ground). In Fig.., an -bit string () is sent from circuit to circuit. s you can see, unlike serial transmission, the entire word is transmitted in only one clock cycle, not clock cycles. In other words, it is times faster. Parallel communications are most frequently found within microprocessor systems that use multiline data and control buses to transmit data and control instructions from the microprocessor to other microprocessor-based devices (e.g., memory, put registers, etc.).

igital Electronics. ogic Gates FIGURE. ogic gates are the building blocks of digital electronics. The fundamental logic gates include the INVERT (NOT), N, NN, OR, NOR, exclusive OR (OR), and exclusive NOR (NOR) gates. Each of these gates performs a different logical operation. Figure. provides a description of what each logic gate does and gives a switch and transistor analogy for each gate. INVERT (NOT) Truth table Switch analogy Transistor analogy + V escription in N in = OW voltage level = IG voltage level + + in lamp () On = Off = lamp () On = Off = in K K K K K + V NOT gate or inverter puts a logic level that's the opposite (complement) of the input logic level. The ouput of an N gate is IG only when both inputs are IG. NN + lamp () On = Off = K K N stage K + V + V NOT stage ombines the NOT function with an N gate; put only goes OW when both inputs are IG. OR + lamp () On = Off = K K + V K The put of an OR gate will go IG if one or both inputs goes IG. The put only goes OW when both inputs are OW. NOR + lamp () On = Off = K K OR stage + V K + V NOT stage ombines the NOT function with an OR gate; put goes OW if one or both inputs are OW, ouput goes IG when both inputs are OW. Exclusive OR (OR) Exclusive NOR (NOR) equivalent circuit The put of an OR gate goes IG if the inputs are different from each other. OR gates only come with two inputs. equivalent circuit ombines the NOT function with an OR gate; put goes IG if the inputs are the same.

PRTI EETRONIS FOR INVENTORS.. Multiple-Input ogic Gates N, NN, OR, and NOR gates often come with more than two inputs (this is not the case with OR and NOR gates, which require two inputs only). Figure. shows a -input N, an -input N, a -input NOR, and an -input NOR gate. With the -input N gate, all inputs must be high for the put to be high. With the -input OR gate, at least one of the inputs must be high for the put to go high. FIGURE. a b c d a b c d e f g h a b c a b c d e f g h.. igital ogic Gate Is The construction of digital gates is best left to the I manufacturers. In fact, making gates from discrete components is highly impractical in regard to both overall performance (power consumption, speed, drive capacity, etc.) and overall cost and size. There are a number of technologies used in the fabrication of digital logic. The two most popular technologies include TT (transistor-transistor logic) and MOS (complementary MOSFET) logic. TT incorporates bipolar transistors into its design, while MOS incorporates MOSFET transistors. oth technologies perform the same basic functions, but certain characteristics (e.g., power consumption, speed, put drive capacity, etc.) differ. There are many subfamilies within both TT and MOS. These subfamilies, as well as the various characteristics associated with each subfamily, will be discussed in greater detail in Section.. logic I, be it TT or MOS, typically houses more than one logic gate (e.g., quad -input NN, hex inverter, etc.). Each of the gates within the I shares a common supply voltage that is implemented via two supply pins, a positive supply pin (+ or +V ) and a ground pin (). The vast majority of TT and MOS Is are designed to run off a +-V supply. (This does not apply for all the logic families, but I will get to that later.) Generally speaking, input and put voltage levels are assumed to be V (low) and + V (high). owever, the actual input voltage required and the actual put voltage provided by the gate are not set in stone. For example, the xx TT series will recognize a high input from. to V, a low from to. V, and will guarantee a high put from. to V and a low put from to. V. owever, for the MOS series ( =+ V), recognizable input voltages range from. to V for high, to. V for low, while guaranteed high and low put levels range from. to V and to. V, respectively. gain, I will discuss specifics later in Section.. For now, let s just get acquainted with what some of these Is look like see Figs.. and.. [MOS devices listed in the figures include xx, (), while TT devices shown include the xx, Fxx, S.]

igital Electronics Series uad -input NN uad -input NOR ex Inverter uad -input N Triple -input NN Triple -input N Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y, S, F,, etc., S, F,, etc., S, F,, etc., S, F,, etc., S, F,, etc., S, F,, etc. ual -input NN ual -input N Triple -input NOR -input NN uad -input OR uad -input OR N Y N Y N Y N Y Y Y Y E F N G N N Y Y Y Y Y Y Y Y Y, S, F,, etc., S, F,, etc., S, F,, etc., S, F,, etc., S, F,, etc., S, F,, etc. FIGURE. () Series uad -input NOR ual -input NOR uad -input NN ual -input NN uad -input OR -input NN Y Y V SS V Y Y Y N V SS V Y N Y Y V SS V Y Y Y N V SS V Y N Y Y V SS V Y Y N N V SS V Y G F E N MOS () MOS () MOS () MOS () MOS () MOS () ex inverter uad -input OR Triple -input N uad -input NOR uad -input N ual -input N Y Y Y V SS V Y Y Y Y Y V SS V Y Y Y V SS V Y Y Y Y V SS V Y Y Y Y V SS V Y Y Y N V SS V Y N MOS () MOS () MOS () MOS () MOS () MOS () FIGURE... pplications for a Single ogic Gate efore we jump into the heart of logic gate applications that involve combining logic gates to form complex decision-making circuits, let s take a look at a few simple applications that require the use of a single logic gate. Enable/isable ontrol n enable/disable gate is a logic gate that acts to control the passage of a given waveform. The waveform, say, a clock signal, is applied to one of the gate s inputs, while

PRTI EETRONIS FOR INVENTORS the other input acts as the enable/disable control lead. Enable/disable gates are used frequently in digital systems to enable and disable control information from reaching various devices. Figure. shows two enable/disable circuits; the first uses an N gate, and the second uses an OR gate. NN and NOR gates are also frequently used as enable gates. Using an N as an enable gate f clk = Mz, T clk = µs clock input enable Using an OR as an enable gate f clk = Mz, T clk = µs clock clock input enable clock input enable µs enable disable µs µs In the upper part of the figure, an N gate acts as the enable gate. When the input enable lead is made high, the clock signal will pass to the put. In this example, the input enable is held high for µs, allowing clock pulses (where T clk = µs) to pass. When the input enable lead is low, the gate is disabled, and no clock pulses make it through to the put. elow, an OR gate is used as the enable gate. The put is held high when the input enable lead is high, even as the clock signal is varying. owever, when the enable input is low, the clock pulses are passed to the put. input enable FIGURE. FIGURE. Waveform Generation µs y using the basic enable/disable function of a logic gate, as illustrated in the last example, it is possible, with the help of a repetitive waveform generator circuit, to create specialized waveforms that can be used for the digital control of sequencing circuits. n example waveform generator circuit is the Johnson counter, shown below. The Johnson counter will be discussed in Section. for now let s simply focus on the puts. In the figure below, a Johnson counter uses clock pulses to generate different put waveforms, as shown in the timing diagram. Outputs,,, and go high for µs (four clock periods) and are offset from each other by µs. Outputs,,, and produce waveforms that are complements of puts,,, and, respectively. Johnson shift counter clock Johnson shift counter time scale (µs) clock a b c d e f g h µs µs µs µs µs µs µs µs Now, there may be certain applications that require -µs high/low pulses applied at a given time as the counter provides. owever, what would you do if the appli-

igital Electronics cation required a -µs high waveform that begins at µs and ends at µs (relative to the time scale indicated in the figure above)? This is where the logic gates come in handy. For example, if you attach an N gate s inputs to the counter s and puts, you will get the desired - to -µs high waveform at the N gate s put: from to µs the N gate puts a low ( =, = ), from to µs the N gate puts a high ( =, = ), and from to µs the N gate puts a low ( =, = ). See the leftmost figure below. onnections for µs to µs waveform Other possible connections and waveforms clock FIGURE. Johnson shift counter µs µs µs clock clock c d Various other specialized waveforms can be generated by using different logic gates and tapping different puts of the Johnson shift counter. In the figure above and to the left, six other possibilities are shown. b c d.. ombinational ogic ombinational logic involves combining logic gates together to form circuits capable of enacting more useful, complex functions. For example, let s design the logic used to instruct a janitor-type robot to recharge itself (seek a power let) only when a specific set of conditions is met. The recharge itself condition is specified as follows: when its battery is low (indicated by a high put voltage from a battery-monitor circuit), when the workday is over (indicated by a high put voltage from a timer circuit), when vacuuming is complete (indicated by a high voltage put from a vacuum-completion monitor circuit), and when waxing is complete (indicated by a high put voltage from a wax-completion monitor circuit). et s also assume that the power-let-seeking rine circuit is activated when a high is applied to its input. Two simple combinational circuits that perform the desired logic function for the robot are shown in Fig... The two circuits use a different number of gates but perform the same function. Now, the question remains, how did we come up with these circuits? In either circuit, it is not hard to predict what gates are needed. You simply exchange the word and present within the conditional statement with an N gate within the logic circuit and exchange the word or present within the conditional statement with an OR gate within the logic circuit. ommon sense takes care of the rest.

PRTI EETRONIS FOR INVENTORS low battery () battery OK () time to "sleep" () work time () finished vacuuming? yes (), no () finished waxing? yes (), no () FIGURE. T V W T V W equivalent circuit VW +T VW +T + VW (+T) + VW enact powerlet-seeking rine enact powerlet-seeking rine? yes () no () T V W +T VW (+T)+VW owever, when you begin designing more complex circuits, using intuition to figure what kind of logic gates to use and how to join them together becomes exceedingly difficult. To make designing combinational circuits easier, a special symbolic language called oolean algebra is used, which only works with true and false variables. oolean expression for the robot circuit would appear as follows: E = ( + T) + VW This expression amounts to saying that if (battery-check circuit s put) or T (timer circuit s put) is true or V and W (vacuum and waxing circuit puts) are true, than E (enact power-let circuit input) is true. Note that the word or is replaced by the symbol + and the word and is simply expressed in a way similar to multiplying two variables together (placing them side-by-side or using a dot between variables). lso, it is important to note that the term true in oolean algebra is expressed as a, while false is expressed as a. ere we are assuming positive logic, where true = high voltage. Using the oolean expression for the robot circuit, we can come up with some of the following results (the truth table in Fig.. provides all possible results): E = ( + T) + VW E = ( + ) + ( ) = + = E = ( + ) + ( ) = + = E = ( + ) + ( ) = + = E = ( + ) + ( ) = + = E = ( + ) + ( ) = + = (battery is low, time to sleep, finished with chores = go recharge). (battery is low = go recharge). (hasn t finished waxing = don t recharge yet). (has finished all chores = go recharge). (hasn t finished vacuuming and waxing = don t recharge yet). The robot example showed you how to express N and OR functions in oolean algebraic terms. ut what ab the negation operations (NOT, NN, NOR) and the exclusive operations (OR, NOR)? ow do you express these in oolean terms? To represent a NOT condition, you simply place a line over the NOT ed variable or variables. For a NN expression, you simply place a line over an N expression. For a NOR expression, you simply place a line over an OR expression. For exclusive operations, you use the symbol. ere s a rundown of all the possible oolean expressions for the various logic gates.

igital Electronics oolean expressions for the logic gates Y Y = Y Y = + Y Y = Y Y = Y Y = + Y Y = Y Y = Y Y = ++ Y Y = FIGURE. Y Y = Y Y = ++ ike conventional algebra, oolean algebra has a set of logic identities that can be used to simplify the oolean expressions and thus make circuits more compact. These identities go by such names as the commutative law of addition, associate law of addition, distributive law, etc. Instead of worrying ab what the various identities are called, simply make reference to the list of identities provided below and to the left. Most of these identities are self-explanatory, although a few are not so obvious, as you will see in a minute. The various circuits below and to the right show some of the identities in action. OGI IENTITIES ) + = + ) = ) + ( + ) = ( + ) + ) () = () ) ( + ) = + ) ( + )( + ) = + + + ) = ) = ) = ) = ) + = ) + = ) + = ) = ) = ) + = ) = ) + = ) = + ) + = + ) + = + ) = + = ( + )( ) ) = + equivalent circuits equivalent circuits = (+)(+) (+)(+) = +++ +++ equivalent circuits equivalent circuits + = + ( + ) ( + ) = + + FIGURE. EMPE et s find the initial oolean expression for the circuit in Fig.. and then use the logic identities to come up with a circuit that requires fewer gates.

PRTI EETRONIS FOR INVENTORS + The circuit shown here is expressed by the following oolean expression: = ( + ) + + (+)++ This expression can be simplified by using Identity : FIGURE. not used logic level at has no effect on put + ( + ) = + This makes = + + + Using Identities ( = ) and ( + = ), you get = + + + = + Factoring a from the preceding term gives = ( + ) + Using Identities ( + = ) and, you get = () + = + Finally, using Identity, you get the simplified expression = + Notice that is now missing.this means that the logic input at has no effect on the put and therefore can omitted. From the reduction, you get the simplified circuit in the bottom part of the figure. ealing with Exclusive Gates (Identities and ) Now let s take a look at a couple of not so obvious logic identities I mentioned a second ago, namely, those which involve the OR (Identity ) and NOR (Identity ) gates. The leftmost section below shows equivalent circuits for the OR gate. In the lower two equivalent circuits, Identity is proved by oolean reduction. Equivalent circuits for the NOR gate are show in the rightmost section below. To prove Identity, you can simply invert Identity. FIGURE. equivalent circuits equivalent circuits = + = + = + + + ( = = ) = ( + ) + ( + ) = ( ) + ( ) = ( + )( ) + + = ( + ) = ( + )( + ) = + + + = + = + +

igital Electronics e Morgan s Theorem (Identities and ) To simplify circuits containing NNs and NORs, you can use an incredibly useful theorem known as e Morgan s theorem. This theorem allows you to convert an expression having an inversion bar over two or more variables into an expression having inversion bars over single variables only. e Morgan s theorem (Identities and ) is as follows: = + ( variables) = + + ( or more variables) + = + + = The easiest way to prove that these identities are correct is to use the figure below, noting that the truth tables for the equivalent circuits are the same. Note the inversion bubbles present on the inputs of the corresponding leftmost gates. The inversion bubbles mean that before inputs and are applied to the base gate, they are inverted (negated). In other words, the bubbles are simplified expressions for NOT gates. + + + + FIGURE. Why do you use the inverted-input OR gate symbol instead of a NN gate symbol? Or why would you use the inverted-input N gate symbol instead of a NOR gate symbol? This is a choice left up to the designer whatever choice seems most logical to use. For example, when designing a circuit, it may be easier to think ab ORing or Ning inverted inputs than to think ab NNing or NORing inputs. Similarly, it may be easier to create truth tables or work with oolean expressions using the inverted-input gate it is typically easier to create truth tables and oolean expressions that do not have variables joined under a common inversion bar. Of course, when it comes time to construct the actual working circuit, you probably will want to convert to the NN and NOR gates because they do not require additional NOT gates at their inputs. ubble Pushing shortcut method for forming equivalent logic circuits, based on e Morgan s theorem, is to use what s called bubble pushing. FIGURE. = = = = =

PRTI EETRONIS FOR INVENTORS ubble pushing involves the flowing tricks: First, change an N gate to an OR gate or change an OR gate to an N gate. Second, add inversion bubbles to the inputs and puts where there were none, while removing the original bubbles. That s it. You can prove to yourself that this works by examining the corresponding truth tables for the original gate and the bubble-pushed gate, or you can work the oolean expressions using e Morgan s theorem. Figure. shows examples of bubble pushing. Universal apability of NN and NOR Gates FIGURE. NN and NOR gates are referred to as universal gates because each alone can be combined together with itself to form all other possible logic gates. The ability to create any logic gate from NN or NOR gates is obviously a handy feature. For example, if you do not have an OR I handy, you can use a single multigate NN gate (e.g., ) instead. The figure below shows how to wire NN or NOR gates together to create equivalent circuits of the various logic gates. ogic gate NN equivalent circuit NOR equivalent circuit NOT = + = N = += += +== NN OR = + + (+)+(+)=+ NOR = + + OR NOR

igital Electronics N-OR-INVERT Gates (OIs) When a oolean expression is reduced, the equation that is left over typically will be of one of the following two forms: product-of-sums (POS) or sum-of-products (SOP). POS expression appears as two or more ORed variables Ned together with two or more additional ORed variables. n SOP expression appears as two or more Ned variables ORed together with additional Ned variables. The figure below shows two circuits that provide the same logic function (they are equivalent), but the circuit to the left is designed to yield a POS expression, while the circuit to the right is designed to yield a SOP expression. Table made using SOP expression (it's easier than POS) ogic circuit for POS expression = ( + )( + ) FIGURE. ogic circuit for SOP expression = + + + FIGURE. In terms of design, which circuit is best, the one that implements the POS expression or the one that implements SOP expression? The POS design shown here would appear to be the better choice because it requires fewer gates. owever, the SOP design is nice because it is easy to work with the oolean expression. For example, which oolean expression above (POS or SOP) would you rather use to create a truth table? The SOP expression seems the obvious choice. more down-to-earth reason for using an SOP design has to do with the fact that special Is called N-OR-INVERT (OI) gates are designed to handle SOP expressions. For example, the S OI I shown below creates an inverted SOP expression at its put, via two -input N gates and two -input N gates NORed together. NOT gate can be attached to the put to get rid of the inversion bar, if desired. If specific inputs are not used, they should be held high, as shown in the example circuit below and to the far left. OI Is come in many different configurations check the catalogs to see what s available. OI GTE S + E F G I J Y = + E + FG + JK Y = + E + FG + JK unused inputs are held IG = + Y= + Y

PRTI EETRONIS FOR INVENTORS.. Keeping ircuits Simple (Karnaugh Maps) We have just seen how using the logic identities can simplify a oolean expression. This is important because it reduces the number of gates needed to construct the logic circuit. owever, as I am sure you will agree, having to work oolean problems in longhand is not easy. It takes time and ingenuity. Now, a simple way to avoid the unpleasant task of using your ingenuity is to get a computer program that accepts a truth table or oolean expression and then provides you with the simplest expression and perhaps even the circuit schematic. owever, let s assume that you do not have such a program to help you. re you stuck with the oolean longhand approach? No. What you do is use a technique referred to as Karnaugh mapping. With this technique, you take a given truth table (or oolean expression that can be converted into a truth table), convert it into a Karnaugh map, apply some simple graphic rules, and come up with the simplest (most of the time) possible oolean expression for your final circuit. Karnaugh mapping works best for circuits with three to four inputs below this, things usually do not require much thought anyway; beyond four inputs, things get quite tricky. ere s a basic line showing how to apply Karnaugh mapping to a three-input system: FIGURE.. First, select a desired truth table. et s choose the one shown in Fig... (If you only have a oolean expression, transform it into an SOP expression and use the SOP expression to create the truth table refer to Fig.. to figure how this is done.). Next, translate the truth table into a Karnaugh map. Karnaugh map is similar to a truth table but has its variables represented along two axes. Translating the truth Truth table "translation" Karnaugh map valid loop Encircling adjacent cells in map These variables remain constant within the enclosed loops = + + + Inital SOP expression (not the simplest form) Inital logic based on final SOP expression = + + Final expression in SOP format (simplest form) Practical circuit "bubble push" = = + = + = + + = + + + +

igital Electronics table into a Karnaugh map reduces the number of s and s needed to present the information. Figure. shows how the translation is carried.. fter you create the Karnaugh map, you proceed to encircle adjacent cells of s into groups of,, or. The more groups you can encircle, the simpler the final equation will be. In other words, take all possible loops.. Now, identify the variables that remain constant within each loop, and write an SOP equation by ORing these variables together. ere, constant means that a variable and its inverse are not present together within the loop. For example, the top horizontal loop in Fig.. yields (the first term in the SOP expression), since s and s inverses ( and ) are not present. owever, the variable is omitted from this term because and are both present.. The SOP expression you end up with is the simplest possible expression. With it you can create your logic circuit. You may have to apply some bubble pushing to make the final circuit practical, as shown in the figure below. To apply Karnaugh mapping to four-input circuits, you apply the same basic steps used in the three-input scheme. owever, now you use must use a Karnaugh map to hold all the necessary information. ere is an example of how a four-input truth table (or unsimplified four-variable SOP expression) can be mapped and converted into a simplified SOP expression that can be used to create the final logic circuit: inputs Y FIGURE. Unsimplified SOP expression: + + + + + + + + = Y Simplified SOP expression and circuit These variables remain constant within the enclosed loops + = Y ere s an example that uses an OI I to implement the final SOP expression after mapping. I ve thrown in variables other than the traditional,,, and just to let you know you are not limited to them alone. The choice of variables is up to you and usually depends on the application. Y T S (OI) T P T P M S M S M S M S These variables remain constant within the enclosed loops P M Y T P T P T P + P M + T M = Y S FIGURE.

PRTI EETRONIS FOR INVENTORS Other ooping onfigurations ere are examples of other looping arrangements used with Karnaugh maps: FIGURE. Y = + Y = + + Y = + Y = +. ombinational evices Now that you know a little something ab how to use logic gates to enact functions represented within truth tables and oolean expressions, it is time to take a look at some common functions that are used in the real world of digital electronics. s you will see, these functions are usually carried by an I that contains all the necessary logic. word on I part numbers before I begin. s with the logic gate Is, the combinational Is that follow will be of either the or series. It is important to note that an original TT I, like the, is essentially the same device (same pins and function usually, but not always) as its newer counterparts, the F, (MOS), S, etc. The practical difference resides in the overall performance of the device (speed, power dissipation, voltage level rating, etc.). I will get into these gory details in a bit. FIGURE. ( series) -bit magnitude comparitor ( series) -line to -line decoder/ demultiplexer F T S S etc. Same basic device, different technology.. Multiplexers (ata Selectors) and ilateral Switches Multiplexers or data selectors act as digitally controlled switches. (The term data selector appears to be the accepted term when the device is designed to act like an SPT switch, while the term multiplexer is used when the throw count of the switch exceeds two, e.g., SPT. I will stick with this convention, although others may not.) simple -of- data selector built from logic gates is shown in Fig... The data select input of this circuit acts to control which input ( or ) gets passed to the put: When data select is high, input passes while is blocked. When data select is low, input is passed while is blocked. To understand how this circuit works, think of the N gates as enable gates.

S igital Electronics Simple -of- data selector S quad -of- data selector quad bilateral switch + data select Switch analogy data select ata select input: OW() = selects IG() = selects S Select Select Enable Enable Select: IG () = inputs selected OW () = inputs selected Enable: IG () = puts disabled OW () = pus enabled V V SS igital control ontrol logic = switch OFF = switch ON FIGURE. FIGURE. There are a number of different types of data selectors that come in I form. For example, the S quad -of- data selector I, shown in Fig.., acts like an electrically controlled quad SPT switch (or if you like, a PT switch). When its select input is set high (), inputs,,, and are allowed to pass to puts,,, and. When its select input is low (), inputs,,, and are allowed to pass to puts,,, and. Either of these two conditions, however, ultimately depends on the state of the enable input. When the enable input is low, all data input signals are allowed to pass to the put; however, if the enable is high, the signals are not allowed to pass. This type of enable control is referred to as active-low enable, since the active function (passing the data to the put) occurs only with a low-level input voltage. The active-low input is denoted with a bubble (inversion bubble), while the er label of the active-low input is represented with a line over it. Sometimes people omit the bubble and place a bar over the inner label. oth conventions are used commonly. Figure. shows a -line-to--line multiplexer built with logic gates. This circuit resembles the -of- data selector shown in Fig.. but requires an additional select input to provide four address combinations. -line to -line multiplexer S S select inputs S S transmitted input put active-ow enable input data inputs -line to -line multiplexer E I I I I I I I I Y Y S S S = pin = pin put put data select S S S data (Y ) I I I I I I I I When enable (E) is set IG (), all inputs are disabled put (Y ) is forced OW () regardless of all other inputs.

PRTI EETRONIS FOR INVENTORS In terms of Is, there are multiplexers of various input line capacities. For example, the -line-to--line multiplexer uses three select inputs (S, S, S ) to choose among of possible data inputs (I to I ) to be funneled to the put. Note that this device actually has two puts, one true (pin ) and one inverted (pin ). The activelow enable forces the true put low when set high, regardless of the inputs. To create a larger multiplexer, you combine two smaller multiplexers together. For example, Fig.. shows two -line-to--line s combined to create a - line-to--line multiplexer. nother alternative is to use a -line-to--line multiplexer I like the shown below. heck the catalogs to see what other kinds of multiplexers are available. ombining two -line-to--line multiplexers to create a -line-to--line multiplexer -bit data input -line-to--line multiplexer...... data input data select S S S I... I E Y Y S S S I... I E Y Y enables second multiplexer (enables - when = ) data data select E S S S S = pin, = pin Y put FIGURE. Finally, let s take a look at a very useful device called a bilateral switch. n example bilateral switch I is the, shown to the far left in Fig... Unlike the multiplexer, this device merely acts as a digitally controlled quad SPST switch or quad transmission gate. Using a digital control input, you select which switches are on and which switches are off. To turn on a given switch, apply a high level to the corresponding switch select input; otherwise, keep the select input low. ater in this chapter you come across analog switches and multiplexers. These devices use digital select inputs to control analog signals. nalog switches and multiplexers become important when you start linking the digital world to the analog world... emultiplexers (ata isctributors) and ecoders demultiplexer (or data distributor) is the opposite of a multiplexer. It takes a single data input and res it to one of several possible puts. simple four-line demultiplexer built from logic gates is shown in Fig.. left. To select the put (,,, or ) to which you want to send the input signal (applied at E), you apply logic levels to the data select inputs (S, S ), as shown in the truth table. Notice that the unselected puts assume a high level, while the selected put varies with the input signal. n I that contains two functionally separate four-line demultiplexers is the, shown in Fig.. right. If you need more puts, check the xx -line demultiplexer. This I uses four data select inputs to choose from of possible puts. heck the catalogs to see what other demultiplexers exist.

igital Electronics -line demultiplexer logic circuit dual -line demultiplexer S S data select input data E input data data select E a a a demult.a a a a a a puts input data data select E b b b demult. b a a a a b puts E a a a a a a a E b b b b b b b ontrol logic S S input red to: disabled puts are held IG = pin, = pin E a E a / a a a a a a a a a a ontrol logic a a input red to: a a a a FIGURE. decoder is somewhat like a demultiplexer, but it does not re input data to a specific put via data select inputs. Instead, it simply uses the data select inputs to choose which put (or puts) among many are to be made high or low. The number of address inputs, the number of puts, and the active state of the selected put vary from decoder to decoder. The variance is of course based on what the decoder is designed to do. For example, the S -of- decoder shown in Fig.. uses a -bit address input to select which of puts will be made low all other puts are held high. ike the demultiplexer in Fig.., this decoder has active-low puts. ogic diagram S -of- decoder ogic symbol +V E E E active-ow puts input select enables E E E E E E Pin configuration +V S S enabled E E E = OW voltage level = IG voltage level = don't care Truth table for S FIGURE. Now what exactly does it mean to say an put is an active-low put? It simply means that when an active-low put is selected, it is forced to a low logic state; otherwise, it is held high. ctive-high puts behave in the opposite manner. n active-low put is usually indicated with a bubble, although often it is

PRTI EETRONIS FOR INVENTORS indicated with a bared variable within the I logic symbol no bubble included. ctive-high puts have no bubbles. oth active-low and active-high puts are equally common among Is. y placing a load (e.g., warning E) between + and an active-low put, you can sink current through the load and into the active-low put when the put is selected. y placing a load between an active-high put and ground, you can source current from the active-high put and sink it through the load when the put is selected. There are of course limits to how much current an I can source or sink. I will discuss these limits in Section., and I will present various schemes used to drive analog loads in Section.. Now let s get back to the S decoder and discuss the remaining enable inputs (E, E, E ). For the S to decode, you must make the active-low inputs E and E low while making the active-high input E high. If any other set of enable inputs is applied, the decoder is disabled, making all active-low puts high regardless of the selected inputs. Other common decoders include the -to-e (decimal) decoder, the -of- (ex) decoder, and the -to-seven-segment decoder shown below. ike the preceding decoder, these devices also have active-low puts. The uses a binary-coded decimal input to select of ( through ) possible puts. The uses a -bit binary input to address of (or of ) puts, making that put low (all others high), provided the enables are both set low. input -to E decoder V = pin = pin E put enable binary input E E -of- decoder V = pin = pin E put input -to-seven-segment decoder RI RO T a b c d e f g V = pin = pin -segment put FIGURE. Now the is a bit different from the other decoders. With this device, more than one put can be driven low at a time. This is important because it allows the to drive a seven-segement E display; to create different numbers requires driving more than one E segment at a time. For example, in Fig.., when the number for () is applied to the s inputs, all puts except b and c go low. This causes E segments a, d, e, f, and g to light up the sinks current through these E segments, as indicated by the internal wiring of the display and the truth table.