Chapter 3 Digital Basics
|
|
- Martin Hicks
- 7 years ago
- Views:
Transcription
1 Chapter 3 Digital asics We conclude our review of basic concepts with a survey of topics from digital electronics. We confine our attention to aspects that are important in the understanding of simple devices, and in particular the analog to digital converter. s often as is practical we illustrate the concept with a LabVIEW demonstration. ackground We have seen in Chapter 2 how a gate can be made from a manual switch, a transistor, and an operational amplifier (opamp). gate can exist in one of only two states: ON or OFF, CLOSED or OPEN. transistor can be conducting a current or not. n opamp s output can be HIGH or LOW. We can think of these states of switches, transistors or opamps as representing a TRUE logic state or a FLSE logic state. The functionality of these devices, existing in only two possible states, is most naturally described by the binary number system. We begin therefore with background mathematics and basic definitions. Number System number system is defined as a set of unique number elements. For example, the decimal system, the one most familiar to us (with our ten fingers and toes) has ten elements: the digits through 9. ny number in the decimal system is constructed with digits from this set. The size of the set is called the base. Thus a number N in the decimal system is said to be to the base and is commonly written N when the base needs to be explicitly indicated. In any system the integers making up any number have a weight depending on their position in the number. The number abcd n in the base n system may be written as the series: abcd n = a( n 3 ) + b( n 2 ) + c( n ) + d( n ). [3-] inary System The binary number system is comprised of the elements and. number in this system is to the base 2 and is denoted N 2. If a is taken to stand for the one state of a digital device and a for the other, then the mathematics of digital circuitry involves just s and s, or binary arithmetic. binary number is written as a string of s and s arranged from left to right with the digits laid out in order of decreasing significance. Each digit is called a bit. n example is shown in Figure 3-, the 8-bit number 2. Each bit is shown within a box. Shown below each box is the decimal value of each bit, and shown above each box is the decimal value expressed as a power of 2. In accordance with eq[3-] the decimal equivalent is seen to be 23. The digit a has the weight n 3, the digit b the weight n 2, and so on. For example, = ()+ () + () + () Though in principle a system may have any number of elements, the systems in most use in modern digital electronics have two, eight or sixteen elements, called the binary, octal and hexadecimal systems. We consider some aspects of each. ON/OFF 2 n : DEC: The decimal equivalent is: x28 + x64 + x32 + x6 + x8 + x4 + x2 + x = 23. Figure 3-. The eight-bit binary number. 3-
2 Digital asics number may require more than 8-bits or less than 8- bits to be completely specified. Some of the instruments of data acquisition you will use in this course produce floating point measurements of 8-bits, some of -bits, and a few of 2-bits. In comparison, stateof-the-art audio CDs have a resolution of 2 bits and current microcomputers handle data of 32 bits (with 64-bit models just around the corner). Figure 3-2 shows what a binary number can look like in terms of voltages on an RS-232 interface line. Example Problem 3- inary-to-decimal Conversion Using the Method of Positional Values Convert the 5-bit number 2 to N using the method of positional values. Solution: The method of positional values implements eq[3-]: 2 = (2 4 ) + (2 3 ) + (2 2 ) + (2 ) + (2 ) = (6) + (8) + (4) + (2) + () = = 22. Thus 2 = 22. If you wish you can experiment with the LabVIEW demo intodec.vi for the same purpose. Running a LabVIEW Demo To run a LabVIEW demo on a Macintosh in the physics lab do the following: Figure 3-2. The pulse train for the SCII character m, 9, as sent over an RS-232 interface. Octal System The octal number system is comprised of the eight elements: the digits through 7. This system was much used in the days of mainframe computers but is little used today. We mention it here only for completeness. Navigate from the desktop through Physics >> PSCS >> LabVIEW Demos >> Chapter 3 and load intodec.vi. LabVIEW should run. ➁ When LabVIEW has finished booting it will present you with intodec.vi s front panel (Figure 3-3a). To run the demo click the Run button. The demo will continue running until you click the STOP button. Hexadecimal System In terms of usage the hexadecimal system is next in importance to the binary system. The system is comprised of sixteen elements: the digits through 9 and the letters through F.,, etc. stand for,, etc. For compactness, data and computer memory locations are commonly wrtten in hexadecimal notation. In the following example problems and LabVIEW demos we demonstrate a few methods of converting from one number system to another. Figure 3-3a.The Panel of intodec.vi. 3-2
3 ➂ Manipulate the vertical slide switches as you wish by clicking with the mouse in the up or down spaces. You will see the demo update the decimal value dynamically. When you wish to stop the demo, click the Stop button. ➃ With the demo stopped, but with LabVIEW still running, you might wish to examine the code of the VI. The code is contained in the Diagram window. First ensure the demo is stopped. Then select Window >> Display Diagram. The Diagram window will open (Figure 3-3b). You should be able to identify the functions Multiply and dd in the G code. Digital asics The so-called remainder method of converting from decimal to binary is illustrated in Example Problem 3-2. The demo Dectoin.vi illustrating the LabVIEW equivalent is shown in Figures 3-4a and b. Example Problem 3-2 Decimal-to-inary Conversion y the Remainder Method Convert 39 to N 2 by the remainder method. Solution: The remainder method of converting a decimal number to binary consists of continuously dividing the number by 2 and recording the remainder. The remainders then form the binary digits. For example, = 9 and remainder of = 9 and remainder of = 4 and remainder of = 2 and remainder of = and remainder of = and remainder of Therefore, 39 = 2. Figure 3-3b. The Diagram of intodec.vi. This G code implements the method of positional values of Example Problem 3-. The border structure is a While loop which continues to execute until the stop button is pressed. Can you recognize the method of positional values in the code? 5 t this stage, even though you may have stopped the VI, LabVIEW itself is still running. To quit LabVIEW correctly select File >> Quit. Don t just click in the window close box. Figure 3-4a. The Panel of Dectoin.vi. The VI is shown in its running state. Compare the switch settings with Figure
4 Digital asics Figure 3-6a. The LabVIEW demo HextoDec.vi. Figure 3-4b. The Diagram of Dectoin.vi. This VI does not employ the remainder method. The decimal number is converted into a boolean array whose elements are then indexed and displayed. It is sometimes necessary to convert from decimal to hexadecimal and back again, especially when using legacy data acquisition devices. Demonstrations of decimal to hex conversion and vice versa are given in the LabVIEW demos DectoHex.vi and HextoDec.vi (Figures 3-5 and 3-6). Figure 3-6b. The Diagram of HextoDec.vi. The next two example problems involve octal conversions. They are given here only for your information. To the knowledge of the auther, the octal system is not used in instrument remote control. In this course you will likely not have to perform octal conversions. Example Problem 3-3 Octal-to-Decimal Conversion Using the Method of Positional Values Convert to N. Solution: Figure 3-5a. The LabVIEW demo DectoHex.vi = 2(8 3 ) + 4(8 2 ) + (8 ) + 7(8 ) = 2(52) + 4(64) + (8) + 7() = = 295. Therefore = 295. Figure 3-5b. The Diagram of DectoHex.vi. 3-4
5 Digital asics Example Problem 3-4 Decimal-to-Octal Conversion Using the Remainder Method Convert 483 to N 8. Solution: 483/8 = 6 and remainder of 3 6/8 = 7 and remainder of 4 7/8 = and remainder of 7 Therefore 483 = Figure 3-7b. The LabVIEW demo SevenSegDisp.vi simulating the working of a CD coded display. CD System CD stands for binary-coded decimal. The CD system is a kind of pseudo number system in that each number in this system consists of four bits, the binary equivalent of a decimal digit. It is sometimes desireable to convert a decimal number to binary by converting each digit of the decimal number into its four-bit nibble equivalent. Thus instead of converting 96 to its pure binary equivalent of 2, it is converted more easily digit-by-digit, that is, first 9 and then 6 to get. This form of notation is called binary-coded decimal (CD). CD coding is used in LED and LCD seven-segment display devices on multimeters and other instruments (including many of those described in ppendix ). n example of the circuit is drawn in Figure 3-7a. LabVIEW demo of this device is shown in Figure 3-7b. CD display works in this way. Each decimal digit which is already CD encoded is passed to a decoder. The decoder decodes the four bits by closing the circuits on certain output lines. These closures result in current being passed through certain light emitting diodes (LEDs) in the display. (We have discussed the functioning of light emitting diodes in Chapter 2.) Thus for example if the CD input were corresponding to decimal 8, all the lines a through g (Figure 3-7a) would be closed, resulting in all seven LEDs being lit and the digit 8 being displayed. oolean lgebra ll number systems, simple or complex, support an algebra. The algebra of the binary number system is called oolean algebra, named after oole, the 9 th century French mathematician who invented it. In oolean algebra the letters,, C etc stand for logical variables which take on the values (called in positive logic FLSE) or (in positive logic TRUE). Three basic operations are supported:. ddition + read OR, [3-2a] 2. Multiplication read ND, [3-2b] (also written just for convenience), and Figure 3-7a. CD decoder used in the display of an instrument like a digital multimeter. Each digit is displayed by a circuit such as this one. 3. Inversion read NOT or complement of. [3-2c] The symbols for the operators should not be confused with the word-description of the operations. For example, the symbol for addition, +, represents the 3-5
6 Digital asics operation OR (not ND); the symbol for multiplication stands for the operation ND. For example: The statement = + means the output is TRUE (or ) if or is TRUE (or ). The statement Y = means the output Y is TRUE (or ) if both and are TRUE (s). The statement Z = means if is TRUE (or ) then Z is FLSE (), and vice versa. The basic operations of oolean algebra are implemented with electronic devices called gates. We therefore continue in the next section with this subject. Survey of Gates Most gates in logic circuits today are integrated circuits (ICs). Gates are sold in various family types to perform various logical functions. For each gate type, there exist simple relationships between the inputs and the output that can be summarized in a special kind of table called a truth table. The truth table lists these relationships for all possible combinations of input. TTL Gates There are various families of gates designed to be used at various voltage levels. We concentrate here on the most widely-used family, the TTL (Transistor- Transistor Logic) family. In this family the voltages corresponding to the logic states are as follows: logical (LOW) < V <.8 volts logical (HIGH) 2.4 < V < 5. volts. This is known as positive logic. For a gate to operate as intended these voltages must be obeyed. ny voltage between and.8 volts corresponds to a logic, any voltage between 2.4 and 5. volts corresponds to a logic. Thus the TTL family is fairly forgiving in terms of voltage. However, a voltage between.8 volts and 2.4 volts represents an undefined state and therefore an undefined logic. n undefined state should be avoided since a gate that is operated in this voltage range will produce an unpredictable output. There are seven fundamental TTL logic gates: the ND, OR, NOT, NND, NOR, exclusive-or (OR), and exclusive-nor (NOR) gates. We consider each one in turn. ND Gate The ND gate (Figure 3-8a) has two or more inputs (,, etc.) and performs the operation. Its output is only if all inputs are ; otherwise its output is. The truth table is shown in the figure. The table should be read row by row. For example, the second row shows that when is and is, is, and so on. = Figure 3-8a. Circuit symbol, algebraic representation, and truth table for a two-input ND gate. The Panel of the LabVIEW demo ND gate.vi is shown in Figure 3-8b. See if you can reproduce the truth table by manipulating the buttons. In principle, an ND gate can have any number of inputs; Figure 3-9 shows the Panel of a 3-input ND gate demo. Figure 3-8b. The LabVIEW demo ND gate.vi. 3-6
7 Digital asics NOT Gate The NOT gate (Figure 3-) performs inversion. (The insertion of an open circle in a line of a logical circuit conventionally denotes inversion.) The single output is the complement of the single input; i.e., the output is if the input is, and the output is if the input is. Figure 3-9. The LabVIEW demo 3ND gate.vi. OR Gate The OR gate (Figure 3-) performs the operation +. Its output is when any input is, and only if all inputs are. The Panel of the LabVIEW demo Or gate.vi is shown in Figure 3-b. = + Figure 3-a. Circuit symbol, algebraic representation, and truth table for a two-input OR gate. = Figure 3-. Circuit symbol, algebraic representation, and truth table for a NOT gate (inverter). NND Gate The NND gate (Figure 3-2) performs two operations one after the other: an ND followed by a NOT. The symbol consists of a normal ND gate symbol with an open circle at the output. The Panel of the LabVIEW demo is shown in Figure 3-2b. = Figure 3-2a. two-input NND gate consists of a twoinput ND gate plus inversion. Figure 3-b. The LabVIEW demo OR gate.vi. Figure 3-2b. The LabVIEW demo NND gate.vi. 3-7
8 Digital asics NOR Gate The NOR gate (Figure 3-3) performs an OR followed by a NOT. The Panel of the LabVIEW demo NOR gate.vi is shown in Figure 3-3b. = + Figure 3-3a. two-input NOR gate. Figure 3-4b. The LabVIEW demo OR gate.vi. Exclusive-NOR or Equality Gate The exclusive-nor ( NOR) gate (Figure 3-5a) performs the operation followed by a NOT. The output is when the inputs are equal and otherwise. The gate is therefore also called an equality gate. The Panel of the LabVIEW demo NOR gate.vi is shown in Figure 3-5b. Figure 3-3b. The LabVIEW demo NOR gate.vi. The next two gates, though available as single ICs and represented by single circuit symbols, are derivative in the sense that they consist of combinations of ND, OR, and NOT. = Figure 3-5a. n exclusive-nor or equality gate. Exclusive-OR Gate The exclusive-or (OR) gate (Figure 3-4) performs an operation denoted by the symbol. The gate has two inputs and an output which is when the inputs are different ( and, or and ), and an output when the inputs are alike ( and, or and ). 3-8 = Figure 3-4a. Circuit symbol, algebraic representation, and truth table for an exclusive-or gate. Figure 3-5b. The LabVIEW demo NOR gate.vi. We stated earlier that logic gates used today are nearly always in IC form. ut a logic gate in IC form does have an equivalent circuit that can be represented by
9 transistors. It is instructive to decipher the transistor equivalent of simple gates. Here is one example. Example Problem 3-5 Gate Identification With reference to the operation of the transistors explain that the following circuit functions as an OR gate. Confirm this result by means of a truth table. (The values of the resistors are not important to your answer.) kω kω + 6V Digital asics Gate Synthesis In digital electronics the NND gate is considered to be the basic building block from which all other gate operations can be constructed. Today, the gates we have described in the previous section are readily available as ICs, and from a number of manufacturers. In principle, there is no need to derive a gate operation from other gates. In practice, however, it is often expedient to synthesize gate operations, especially when constrained to do so by your circuit design. For example, when using a chip that contains many gates, you may wind up with extra unused gates, and may wish to use them up by synthesizing an operation rather than using a dedicated, single gate. We shall see in this section that the NOT gate can be formed from a NND gate with inputs joined; an ND gate can be formed from a NND gate followed by a NOT. Other gates can be derived following the rules of oolean algebra. 4.7 kω Solution: If the voltages applied to both and are HIGH () then both transistors are saturated, the current flow through them is at a maximum and the voltage drop across the 4.7 kω resistor is in a HIGH () state. Thus two input HIGHs give an output HIGH and we have the first row in the truth table below. If the voltages applied to both and are LOW () then both transistors are cut off, neither transistor conducts and the voltage across the 4.7 kω resistor is in a LOW () state. If any one of or is HIGH (), then the output is also HIGH () by similar arguments. The truth table is as follows. Z This truth tables describes the functioning of an OR gate. Z De Morgan s Theorems De Morgan s theorems are important in implementing gate combinations; they allow one to switch between ND (or NND) and OR (or NOR) gate implementations. De Morgan s theorems may be written:. + + C...= C... [3-5a] 2. C... = + + C... [3-5b] These theorems are useful in gate synthesis as we shall show in the next section. OR Gate Synthesized from NND Gates If the NND gate is taken as the natural building block then an OR gate may be synthesized from 3 NND gates by connecting them together as shown in Figure 3-6. The segmented truth table for this circuit is given in Table 3-. You can see that the last column of this table is identical to the truth table for +. You can prove this with the help of de Morgan s theorem (Figure 3-6). This is only one example of gate synthesis. 3-9
10 Digital asics = + = + Figure 3-6. This circuit illustrates how to synthesize an OR gate from three NND gates with the help of de Morgan s theorem. Table 3-. Segmented truth table for the synthesized OR gate of Figure 3-6. The Half dder We can now investigate the mechanization of binary addition. For this purpose we consider only 2-bit numbers using the following notation: and Y Y, where the subscript refers to the order of the bit. Of course,, etc. can take only the values or. Starting with the th bit, we can write + Y = C Z, [3-6] where C is the carry from the addition of the two th order bits over into the st order bit position. The addition of the two 2-bit numbers can therefore be represented in this way: inary rithmetic Like any arithmetic, binary arithmetic must include the standard operations of addition, subtraction, multiplication, and division. Here we look briefly at binary addition. The physical process of addition, say how it is done with pencil and paper, can be summarize with a truth table and then mechanize with logic gates. inary ddition s we have seen, the binary system includes only two elements. ddition is therefore simple. Some examples are shown in Figure 3-7. Numbers in binary can be added in columns much like numbers in decimal. Note that plus yields a sum of and a carry of into the next column to the left, producing an answer of 2. Similarly, plus plus yields a sum of and a carry of into the next column to the left. inary numbers, like decimal numbers, can be added column by column working from right to left Figure 3-7. Some examples of binary addition. Carry bits C 2 C 2-bit number 2-bit number Y Y Z 2 Z Z The result Z 2 Z Z is, in general, a 3-bit number. The truth table for the operation given in eq[3-6] is given in Table 3-2. This operation is called half addition because no provision exists for dealing with an initial carry (or carry in). Table 3-2. Truth table for a half-addition. Y C Z This table is represented by the following oolean statements: C = Y, [3-7a] and Z = Y. [3-7b] The second of these equations describes the Sum operation, the first describes the Carry. These equations can be mechanized, that is, they can be represented by real, physical gates. With a little reflection you can see that the Carry operation is given by an ND gate and the Sum is given by an exclusive-or gate (Figure 3-8). The combination of these gates (within the 3-
11 dashed rectangle) is called a half adder. The LabVIEW demo Halfdder.vi that illustrates this is shown in Figures 3-8b and c. Sum S = Carry C = Figure 3-8a. Mechanization of a half-adder using an ND gate and an exclusive-or gate. Digital asics The Full dder The process of full addition must allow for an initial, or carry-in bit and a final, or carry-out bit. Generalizing Table 3-2 with a carry-in bit (C ) gives the truth table shown in Table 3-3. C 2 is the carry-out bit. There are two results of a full addition: the result Z and the carry bit C 2. Let us consider them separately as we did for the half adder. From Table 3-3 you can see that C 2 = Y + C Y + C. [3-8] This expression can be mechanized using three ND gates and a three-input OR gate (Figure 3-9). Table 3-3. Truth Table for a Full dder. C Y C 2 Z Figure 3-8b. The panel of the LabVIEW demo Halfdder.vi. You should be able to show also from Table 3-3 that Z = C ( Y ). [3-9] Figure 3-8c. The diagram of the LabVIEW demo Half- dder.vi. Note how the G code resembles the circuit diagram of Figure 3-8a. The half adder can only add two -bit numbers. It cannot be used to add two 2-bit numbers because in general the result is a 3-bit number. The sum of the 2 column involves three bits: one bit from each of the two numbers being added and a carry-in bit from the units column. Thus a full adder for two 2-bit numbers must be able to process three input variables. The full adder we consider next. Mechanizing this expression in conjunction with the majority detector of Figure 3-9 drawn as a black box gives the full adder circuit shown in Figure 3-2. full adder is commonly represented as a rectangle with three inputs and two outputs. The LabVIEW demo Fulldder.vi is shown in Figures 3-2b and c. This is the simplest kind of binary adder. It is also the slowest as each column of the sum must wait on the resulting carry bit from its adjoining lower-order column. This is known as serial carry propagation. Modern packages are described as 4-bit sum plus carry. These 4-bit sum plus carrys may be serially propagated to create an 8-bit sum plus carry, the smallest truly useable circuit in 8-bit devices. 3-
12 Digital asics C C Y C Y C 2 Figure 3-2b. The LabVIEW demo Full adder.vi. Y C 2 = Y + C Y + C Figure 3-9. Mechanization of the carry bit from a full addition. This is called a majority detector. Y C Y Majority detector Z Sum Figure 3-2a. Mechanization of a full adder. C 2 Carry Figure 3-2c. Diagram of the LabVIEW demo Full adder.vi. This concludes our survey of a few of the basics of digital electronics. We spend the rest of our time in this chapter on the subject of analogue-to-digital conversion. 3-2
13 nalog to Digital Conversion t the heart of a digital instrument is an analog-to-digital converter (DC). There are three common types or techniques of analog converter: parallel (also called flash conversion), successive approximation and dual slope integration. Digital asics Terminology Each type of DC has its own conversion time, absolute accuracy and resolution. Resolution is the number of bits to which the analog signal is converted. bsolute accuracy is expressed in bits. The absolute accuracy, in bits, times the voltage value represented by the least significant bit gives the absolute accuracy in volts. Conversion time is the time it takes the converter to take an analog signal and convert it to its binary equivalent. Parallel Conversion parallel (flash or simultaneous) converter employs a series of comparator circuits as is shown in Figure 3-2. (For a description of a comparator see the discussion of the opamp in Chapter 2.) This particular example is a 3-bit parallel DC that uses seven comparators. Parallel converters require 2 n comparators where n is the resolution in bits. Thus a 2-bit parallel converter would require 4,95 comparators! The chain of resistors in the figure provides a reference or trip point voltage for each comparator. The trip point of each successive comparator is equally spaced in voltage, say V. Each value of V represents one bit. The voltage to be converted Vin is applied simultaneously to the other input of each comparator. Comparator trips at the lowest input voltage, comparator G at the highest. To give the simplest example, if Vref = 7. V then V = V; the trip point for comparator is.5 V, is.5 V, C is 2.5 V, D is 3.5 V, E is 4.5 V, F is 5.5 V and G is 6.5 V. Thus if Vin were 4.9 V, comparators through E would trip, while F and G would remain unchanged. The decoder circuitry would convert the (high to low) on its input lines to the 3-bit value, representing a voltage in the range of 4.5 to 5.49 V (the decoding is summar-ized in Table 3-4). Thus the parallel or flash nature of the DC should be apparent. This is the fastest of the three DC types and is widely used in the audio industry. Though a 3- bit DC as considered here is of little use, 2-bit converters are now widely available, with conversion frequencies in the MHz range. /2 R R R R R R R /2 R Vref Vin Range (Volts) Vin G F E D C Decoder Circuitry Figure 3-2. parallel or flash 3-bit DC. Table 3-4. Data for the 3-bit flash converter. Comparator C D E F G MS NMS LS Encoded inary MS LS >
14 Digital asics Successive pproximation The successive approximation converter is one of the least expensive and therefore most popular DC types. Substantially faster than a ramp DC, it has a constant and known conversion time. This circuit (Figure 3-22) employs a digital-to-analogue converter (DC roughly the opposite of an DC) and a comparator to compare the voltage to be measured with the output of the DC. The input to the DC is provided by a successive approximation circuitry triggered by the output of the comparator. SR DC Digital Outputs 53 = 2. The SR algorithm states that the MS, having the value of 28, is to be tested first. ecause 28 is less than 53, the MS is to be kept. The best estimate after the first cycle is. On the next cycle, the next MS, having value 64, is added to the best estimate (that is, = 92). ecause 92 is greater than 53, this bit is not kept, and the best estimate remains. In the following cycle, the next bit value of 32 yields a test value of = 6. gain, the test value is greater than the input level, so this bit is not kept, and the best estimate remains at. In the following cycle, the next test value of 6 yields = 44. This value is less than 53, so this bit is kept. fter 4 cycles, the best estimate is. The remaining cycles can be seen on the panel of SR.vi. nalogue Input Comparator Successive pproximation Circuitry Clock Figure lock diagram of a successive-approximation DC. conversion can be described in terms of the following algorithm: Zero the DC and reset its digital input (the successive approximation register or SR). 2 Set the MS of the SR, thereby producing an output V DC. If V DC is greater than V in, then turn that bit off else if V DC is less than V in, leave the bit on. 3 Repeat step 2 for the next MS, until all n bits of the SR have been set and tested. 4 fter n cycles, the digital output of the SR will contain the digitized value of the input signal. The algorithm can be followed by studying the working of the LabVIEW demo SR.vi (Figure 3-23a). The graph on the panel shows the input waveform (dashed line) and the output of the SR over about 8 clock cycles. The input waveform is, by default, the constant value 53 (which can be changed). The number 53 is equal to so the binary equivalent is Figure 3-23a. The panel of SR.vi showing on the graph a typical DC output of successive-approximation DC converter as a function of clock cycle. To get the most out of the demo do the following: Load and run SR.vi in continuous mode. ➁ Use the Operate Value tool to change the input level, and observe the SR output waveform. Change the level over a wide range, greater and less than 28. Is the input level always digitized in the same 8 clock cycles? ➂ To stop a VI running in continuous mode click the 3-4
15 bort button. Digital asics is only 8 bits as in the case of the PCI-2 the effective conversion time is increased. Figure 3-23b. The Diagram of SR.vi. Though slower than the flash converter, successive approximation converters are relatively fast, in the range of µs. Typical conversion times at the time of writing are µs for a -bit DC and 2 µs for a 2-bit DC. We shall see in ppendix that this method is used in a number of data acquisition (DQ) cards produced by National Instruments, in particular the PCI-2 card installed in many of the computers in the physics lab. Integrating Type: Dual Slope Conversion The dual slope integrating DC works via the charge and discharge of a capacitor (Figure 3-24). The capacitor is charged from zero volts by a current proportional to the input voltage for a given time. Then the input voltage is disconnected and the capacitor is discharged back to zero volts by a constant current source whose value is known. Figure 3-24 shows the capacitor voltage as it goes through the charge/ discharge cycle. Since the discharge time is proportional to the value of the constant current and the voltage on the capacitor, a digital representation of the discharge time (in clock cycles) is the digital value of the input voltage. Voltage on Capacitor Example Problem 3-6 Conversion Time 2-bit PCI-2 DQ card with a successive approximation DC is installed in a computer whose clock frequency is 233 MHz. In principle, what should be the approximate conversion time? Comment on the result. Solution: ccording to the method of successive approximations, a 2-bit conversion takes 2 clock cycles. Thus in principle the conversion time should be cycles 2 conversion x 233x 6 = 5.5ns seconds cycle large input voltage small input voltage Current proportional to input voltage charges capacitor for a fixed number of clock cycles zero detect zero detect Time Figure Charge and discharge cycle for integrating DC. This kind of DC is commonly found in inexpensive hand-held DMMs, such as the Radio Shack Manual/uto Range DMM (discussed in ppendix and Lab #). This number is an absolute minimum conversion time. The actual time will depend on factors such as the bus width. If the DC is 2 bits but the bus width 3-5
16 Digital asics Working Circuit working DC is shown in block form in Figure It consists essentially of two functional blocks, a signal conditioner and the DC chip itself. The signal conditioner is a variable-gain amplifier that allows for calibration for a variety of sensors. The DC in this particular case is the DC84, an 8-bit converter. DC Input DC Offset Gain /D Converter 8 Digital IO Lines Pwr Write Data Figure lock diagram of the DC84 analogue to digital converter. (IO) lines which can then be read by a computer. The DC84 accepts an analogue input of -5 volts DC and converts it to a binary number between and 256. With a maximum range of 5 volts and 256 steps between and 5, resolution is 5/256 =.95 volts, or almost 2 mv. So for any analogue input voltage between. and.95, the DC84 will produce a binary (); for any voltage between.95 and.39, a binary (), and so on. The signal conditioner is present to enable one to process analogue signals smaller than 5V. For example, without the signal conditioner a signal as small as 4mV maximum would only give rise to two binary values. Such a signal would therefore be amplified to a value close to the maximum range of the IC and therefore result in much finer increments. The output would then be scaled back to the appropriate value by the computer software that is used to monitor the IO lines. What Was Left Out The DC84 responds to a change in an C voltage very quickly, in fact at a rate greater than per second. The DC84 converts each sample to digital form and places the signal on 8 digital input/output This brings us to the end of our review of digital basics. 3-6
17 Practice Problems Digital asics. Convert the following numbers to decimal: 2, 2, Convert the following numbers to binary:, 225, Convert the following numbers to decimal: 7 8, 234 8, 55 8, 62 8, = + ; Z = Complete the following truth table for the expressions shown: C C ++C C +C 4. Convert the following numbers to octal: 27, 2626, 95, 26, Convert the following numbers to CD: 27, 2, Write a G program to perform octal-to-decimal conversion. 7. Write a G program to perform decimal-to-octal conversion. 8. pply oolean theorems to reduce the following expressions to simplest form: + + ; ; M M ; + ; C + D D; ; + + ; (E + E); H + H + H + H;. 9. Remove common factors to simplify the following expressions: + + ; + CDD + D + ; ( + ) + C.. Prove these expressions by means of truth tables: (+) = ; +C = (+)(+C).. Draw a block diagram corresponding to each of the following equations. Label all terminals. ssume that the variables are available in noninverted form only, i.e., if an inverted form of the variable is required, a NOT circuit must be used. = ; Y = C + C; Z = + + C; 3. Perform the following binary additions: The three-input OR gate follows the oolean statement Q = + + C. (a) Make a truth table for this gate. (b) Write the oolean statement for Q and mechanize the result using 2-input NND gates and inverters. 5. n experimenter observes that the output of a TTL NND gate is V with both inputs open and does not change when they are both connected to +5 V. Is the gate malfunctioning? Why or why not? 6. It is required that Q be true only when the logic signal equals the logic signal. Make a truth table of this problem, mechanize the result directly assuming that only and signals are available (not or ), and then use de Morgan s theorem to reduce this to a three-gate mechaniza- 3-7
18 Digital asics tion from and inputs. 7. With detailed reference to the operation of the transistors (and by means of a truth table) confirm that the following circuit functions as a NOR gate. (The values of the resistors are not important to your answer. kω + 6V + 6V kω 4.7 kω Z Z 4.7 kω kω kω 9. With reference to problem 7 construct a NND gate. Justify the operation of your gate by means of description and a truth table. (The values of the resistors are not important to your answer. 8. With detailed reference to the operation of the transistors (and by means of a truth table) confirm that the following circuit functions as a ND gate. (The values of the resistors are not important to your answer. 2. Write a program in G to prove the synthesized circuit of Figure 3-2. EndNotes for Chapter 3 These demos were modified by the author from ones written by. Paton in Fundamentals of Digital Electronics (National Instruments, 998). I am especially indebted to Prof. Paton for SR.vi in his Lab #9 and its use in illustrating the successive approximation DC. 3-8
Figure 8-1 Four Possible Results of Adding Two Bits
CHPTER EIGHT Combinational Logic pplications Thus far, our discussion has focused on the theoretical design issues of computer systems. We have not yet addressed any of the actual hardware you might find
More informationCOMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design
PH-315 COMINATIONAL and SEUENTIAL LOGIC CIRCUITS Hardware implementation and software design A La Rosa I PURPOSE: To familiarize with combinational and sequential logic circuits Combinational circuits
More informationDigital Logic Elements, Clock, and Memory Elements
Physics 333 Experiment #9 Fall 999 Digital Logic Elements, Clock, and Memory Elements Purpose This experiment introduces the fundamental circuit elements of digital electronics. These include a basic set
More informationDIGITAL-TO-ANALOGUE AND ANALOGUE-TO-DIGITAL CONVERSION
DIGITAL-TO-ANALOGUE AND ANALOGUE-TO-DIGITAL CONVERSION Introduction The outputs from sensors and communications receivers are analogue signals that have continuously varying amplitudes. In many systems
More informationBinary Adders: Half Adders and Full Adders
Binary Adders: Half Adders and Full Adders In this set of slides, we present the two basic types of adders: 1. Half adders, and 2. Full adders. Each type of adder functions to add two binary bits. In order
More informationGates, Circuits, and Boolean Algebra
Gates, Circuits, and Boolean Algebra Computers and Electricity A gate is a device that performs a basic operation on electrical signals Gates are combined into circuits to perform more complicated tasks
More informationUnderstanding Logic Design
Understanding Logic Design ppendix of your Textbook does not have the needed background information. This document supplements it. When you write add DD R0, R1, R2, you imagine something like this: R1
More informationGates & Boolean Algebra. Boolean Operators. Combinational Logic. Introduction
Introduction Gates & Boolean lgebra Boolean algebra: named after mathematician George Boole (85 864). 2-valued algebra. digital circuit can have one of 2 values. Signal between and volt =, between 4 and
More informationConversion Between Analog and Digital Signals
ELET 3156 DL - Laboratory #6 Conversion Between Analog and Digital Signals There is no pre-lab work required for this experiment. However, be sure to read through the assignment completely prior to starting
More informationDigital Electronics Detailed Outline
Digital Electronics Detailed Outline Unit 1: Fundamentals of Analog and Digital Electronics (32 Total Days) Lesson 1.1: Foundations and the Board Game Counter (9 days) 1. Safety is an important concept
More informationCounters and Decoders
Physics 3330 Experiment #10 Fall 1999 Purpose Counters and Decoders In this experiment, you will design and construct a 4-bit ripple-through decade counter with a decimal read-out display. Such a counter
More informationDigital to Analog and Analog to Digital Conversion
Real world (lab) is Computer (binary) is digital Digital to Analog and Analog to Digital Conversion V t V t D/A or DAC and A/D or ADC D/A Conversion Computer DAC A/D Conversion Computer DAC Digital to
More informationChapter 6: From Digital-to-Analog and Back Again
Chapter 6: From Digital-to-Analog and Back Again Overview Often the information you want to capture in an experiment originates in the laboratory as an analog voltage or a current. Sometimes you want to
More information1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1.
File: chap04, Chapter 04 1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1. 2. True or False? A gate is a device that accepts a single input signal and produces one
More informationELEC 2210 - EXPERIMENT 1 Basic Digital Logic Circuits
Objectives ELEC - EXPERIMENT Basic Digital Logic Circuits The experiments in this laboratory exercise will provide an introduction to digital electronic circuits. You will learn how to use the IDL-00 Bit
More informationStep Response of RC Circuits
Step Response of RC Circuits 1. OBJECTIVES...2 2. REFERENCE...2 3. CIRCUITS...2 4. COMPONENTS AND SPECIFICATIONS...3 QUANTITY...3 DESCRIPTION...3 COMMENTS...3 5. DISCUSSION...3 5.1 SOURCE RESISTANCE...3
More information6 3 4 9 = 6 10 + 3 10 + 4 10 + 9 10
Lesson The Binary Number System. Why Binary? The number system that you are familiar with, that you use every day, is the decimal number system, also commonly referred to as the base- system. When you
More informationFORDHAM UNIVERSITY CISC 3593. Dept. of Computer and Info. Science Spring, 2011. Lab 2. The Full-Adder
FORDHAM UNIVERSITY CISC 3593 Fordham College Lincoln Center Computer Organization Dept. of Computer and Info. Science Spring, 2011 Lab 2 The Full-Adder 1 Introduction In this lab, the student will construct
More informationFlip-Flops, Registers, Counters, and a Simple Processor
June 8, 22 5:56 vra235_ch7 Sheet number Page number 349 black chapter 7 Flip-Flops, Registers, Counters, and a Simple Processor 7. Ng f3, h7 h6 349 June 8, 22 5:56 vra235_ch7 Sheet number 2 Page number
More informationCHAPTER 3 Boolean Algebra and Digital Logic
CHAPTER 3 Boolean Algebra and Digital Logic 3.1 Introduction 121 3.2 Boolean Algebra 122 3.2.1 Boolean Expressions 123 3.2.2 Boolean Identities 124 3.2.3 Simplification of Boolean Expressions 126 3.2.4
More informationDigital circuits make up all computers and computer systems. The operation of digital circuits is based on
Digital Logic Circuits Digital circuits make up all computers and computer systems. The operation of digital circuits is based on Boolean algebra, the mathematics of binary numbers. Boolean algebra is
More informationBOOLEAN ALGEBRA & LOGIC GATES
BOOLEAN ALGEBRA & LOGIC GATES Logic gates are electronic circuits that can be used to implement the most elementary logic expressions, also known as Boolean expressions. The logic gate is the most basic
More informationLab 1: Full Adder 0.0
Lab 1: Full Adder 0.0 Introduction In this lab you will design a simple digital circuit called a full adder. You will then use logic gates to draw a schematic for the circuit. Finally, you will verify
More informationEE 261 Introduction to Logic Circuits. Module #2 Number Systems
EE 261 Introduction to Logic Circuits Module #2 Number Systems Topics A. Number System Formation B. Base Conversions C. Binary Arithmetic D. Signed Numbers E. Signed Arithmetic F. Binary Codes Textbook
More informationPROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 TUTORIAL OUTCOME 2 Part 1
UNIT 22: PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 TUTORIAL OUTCOME 2 Part 1 This work covers part of outcome 2 of the Edexcel standard module. The material is
More informationThe components. E3: Digital electronics. Goals:
E3: Digital electronics Goals: Basic understanding of logic circuits. Become familiar with the most common digital components and their use. Equipment: 1 st. LED bridge 1 st. 7-segment display. 2 st. IC
More informationElementary Logic Gates
Elementary Logic Gates Name Symbol Inverter (NOT Gate) ND Gate OR Gate Truth Table Logic Equation = = = = = + C. E. Stroud Combinational Logic Design (/6) Other Elementary Logic Gates NND Gate NOR Gate
More informationChapter 19 Operational Amplifiers
Chapter 19 Operational Amplifiers The operational amplifier, or op-amp, is a basic building block of modern electronics. Op-amps date back to the early days of vacuum tubes, but they only became common
More informationDigital Logic Design. Basics Combinational Circuits Sequential Circuits. Pu-Jen Cheng
Digital Logic Design Basics Combinational Circuits Sequential Circuits Pu-Jen Cheng Adapted from the slides prepared by S. Dandamudi for the book, Fundamentals of Computer Organization and Design. Introduction
More information3.Basic Gate Combinations
3.Basic Gate Combinations 3.1 TTL NAND Gate In logic circuits transistors play the role of switches. For those in the TTL gate the conducting state (on) occurs when the baseemmiter signal is high, and
More informationARRL Morse Code Oscillator, How It Works By: Mark Spencer, WA8SME
The national association for AMATEUR RADIO ARRL Morse Code Oscillator, How It Works By: Mark Spencer, WA8SME This supplement is intended for use with the ARRL Morse Code Oscillator kit, sold separately.
More informationBase Conversion written by Cathy Saxton
Base Conversion written by Cathy Saxton 1. Base 10 In base 10, the digits, from right to left, specify the 1 s, 10 s, 100 s, 1000 s, etc. These are powers of 10 (10 x ): 10 0 = 1, 10 1 = 10, 10 2 = 100,
More informationHaving read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop.
Objectives Having read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop. describe how such a flip-flop can be SET and RESET. describe the disadvantage
More informationDigital System Design Prof. D Roychoudhry Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur
Digital System Design Prof. D Roychoudhry Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur Lecture - 04 Digital Logic II May, I before starting the today s lecture
More informationMeasuring Electric Phenomena: the Ammeter and Voltmeter
Measuring Electric Phenomena: the Ammeter and Voltmeter 1 Objectives 1. To understand the use and operation of the Ammeter and Voltmeter in a simple direct current circuit, and 2. To verify Ohm s Law for
More informationProperties of Real Numbers
16 Chapter P Prerequisites P.2 Properties of Real Numbers What you should learn: Identify and use the basic properties of real numbers Develop and use additional properties of real numbers Why you should
More informationBINARY CODED DECIMAL: B.C.D.
BINARY CODED DECIMAL: B.C.D. ANOTHER METHOD TO REPRESENT DECIMAL NUMBERS USEFUL BECAUSE MANY DIGITAL DEVICES PROCESS + DISPLAY NUMBERS IN TENS IN BCD EACH NUMBER IS DEFINED BY A BINARY CODE OF 4 BITS.
More informationInterfacing To Alphanumeric Displays
Interfacing To Alphanumeric Displays To give directions or data values to users, many microprocessor-controlled instruments and machines need to display letters of the alphabet and numbers. In systems
More informationThe string of digits 101101 in the binary number system represents the quantity
Data Representation Section 3.1 Data Types Registers contain either data or control information Control information is a bit or group of bits used to specify the sequence of command signals needed for
More informationComputer Science 281 Binary and Hexadecimal Review
Computer Science 281 Binary and Hexadecimal Review 1 The Binary Number System Computers store everything, both instructions and data, by using many, many transistors, each of which can be in one of two
More informationFundamentals of Digital Electronics
Fundamentals of Digital Electronics by Professor Barry Paton Dalhousie University March 998 Edition Part Number 32948A- Fundamentals of Digital Electronics Copyright Copyright 998 by National Instruments
More informationSection 1.4 Place Value Systems of Numeration in Other Bases
Section.4 Place Value Systems of Numeration in Other Bases Other Bases The Hindu-Arabic system that is used in most of the world today is a positional value system with a base of ten. The simplest reason
More informationUpon completion of unit 1.1, students will be able to
Upon completion of unit 1.1, students will be able to 1. Demonstrate safety of the individual, class, and overall environment of the classroom/laboratory, and understand that electricity, even at the nominal
More informationDisplay Board Pulse Width Modulation (PWM) Power/Speed Controller Module
Display Board Pulse Width Modulation (PWM) Power/Speed Controller Module RS0 Microcontroller LEDs Motor Control Pushbuttons Purpose: To demonstrate an easy way of using a Freescale RS0K2 microcontroller
More informationSchool of Engineering Department of Electrical and Computer Engineering
1 School of Engineering Department of Electrical and Computer Engineering 332:223 Principles of Electrical Engineering I Laboratory Experiment #4 Title: Operational Amplifiers 1 Introduction Objectives
More informationEXPERIMENT NUMBER 5 BASIC OSCILLOSCOPE OPERATIONS
1 EXPERIMENT NUMBER 5 BASIC OSCILLOSCOPE OPERATIONS The oscilloscope is the most versatile and most important tool in this lab and is probably the best tool an electrical engineer uses. This outline guides
More informationBasic Logic Gates Richard E. Haskell
BASIC LOGIC GATES 1 E Basic Logic Gates Richard E. Haskell All digital systems are made from a few basic digital circuits that we call logic gates. These circuits perform the basic logic functions that
More informationplc numbers - 13.1 Encoded values; BCD and ASCII Error detection; parity, gray code and checksums
plc numbers - 3. Topics: Number bases; binary, octal, decimal, hexadecimal Binary calculations; s compliments, addition, subtraction and Boolean operations Encoded values; BCD and ASCII Error detection;
More informationChapter 2 Logic Gates and Introduction to Computer Architecture
Chapter 2 Logic Gates and Introduction to Computer Architecture 2.1 Introduction The basic components of an Integrated Circuit (IC) is logic gates which made of transistors, in digital system there are
More informationA Digital Timer Implementation using 7 Segment Displays
A Digital Timer Implementation using 7 Segment Displays Group Members: Tiffany Sham u2548168 Michael Couchman u4111670 Simon Oseineks u2566139 Caitlyn Young u4233209 Subject: ENGN3227 - Analogue Electronics
More informationDEPARTMENT OF INFORMATION TECHNLOGY
DRONACHARYA GROUP OF INSTITUTIONS, GREATER NOIDA Affiliated to Mahamaya Technical University, Noida Approved by AICTE DEPARTMENT OF INFORMATION TECHNLOGY Lab Manual for Computer Organization Lab ECS-453
More informationSECTION C [short essay] [Not to exceed 120 words, Answer any SIX questions. Each question carries FOUR marks] 6 x 4=24 marks
UNIVERSITY OF KERALA First Degree Programme in Computer Applications Model Question Paper Semester I Course Code- CP 1121 Introduction to Computer Science TIME : 3 hrs Maximum Mark: 80 SECTION A [Very
More informationOPERATIONAL AMPLIFIER
MODULE3 OPERATIONAL AMPLIFIER Contents 1. INTRODUCTION... 3 2. Operational Amplifier Block Diagram... 3 3. Operational Amplifier Characteristics... 3 4. Operational Amplifier Package... 4 4.1 Op Amp Pins
More information(Refer Slide Time: 00:01:16 min)
Digital Computer Organization Prof. P. K. Biswas Department of Electronic & Electrical Communication Engineering Indian Institute of Technology, Kharagpur Lecture No. # 04 CPU Design: Tirning & Control
More informationDecimal Number (base 10) Binary Number (base 2)
LECTURE 5. BINARY COUNTER Before starting with counters there is some vital information that needs to be understood. The most important is the fact that since the outputs of a digital chip can only be
More informationLab 11 Digital Dice. Figure 11.0. Digital Dice Circuit on NI ELVIS II Workstation
Lab 11 Digital Dice Figure 11.0. Digital Dice Circuit on NI ELVIS II Workstation From the beginning of time, dice have been used for games of chance. Cubic dice similar to modern dice date back to before
More informationApplication Unit, MDRC AB/S 1.1, GH Q631 0030 R0111
, GH Q631 0030 R0111 SK 0010 B 98 The application unit is a DIN rail mounted device for insertion in the distribution board. The connection to the EIB is established via a bus connecting terminal at the
More informationOperational Amplifier - IC 741
Operational Amplifier - IC 741 Tabish December 2005 Aim: To study the working of an 741 operational amplifier by conducting the following experiments: (a) Input bias current measurement (b) Input offset
More informationLAB 7 MOSFET CHARACTERISTICS AND APPLICATIONS
LAB 7 MOSFET CHARACTERISTICS AND APPLICATIONS Objective In this experiment you will study the i-v characteristics of an MOS transistor. You will use the MOSFET as a variable resistor and as a switch. BACKGROUND
More information26 Integers: Multiplication, Division, and Order
26 Integers: Multiplication, Division, and Order Integer multiplication and division are extensions of whole number multiplication and division. In multiplying and dividing integers, the one new issue
More information2.0 Chapter Overview. 2.1 Boolean Algebra
Thi d t t d ith F M k 4 0 2 Boolean Algebra Chapter Two Logic circuits are the basis for modern digital computer systems. To appreciate how computer systems operate you will need to understand digital
More informationSequential Logic Design Principles.Latches and Flip-Flops
Sequential Logic Design Principles.Latches and Flip-Flops Doru Todinca Department of Computers Politehnica University of Timisoara Outline Introduction Bistable Elements Latches and Flip-Flops S-R Latch
More informationLecture 2. Binary and Hexadecimal Numbers
Lecture 2 Binary and Hexadecimal Numbers Purpose: Review binary and hexadecimal number representations Convert directly from one base to another base Review addition and subtraction in binary representations
More informationNumbering Systems. InThisAppendix...
G InThisAppendix... Introduction Binary Numbering System Hexadecimal Numbering System Octal Numbering System Binary Coded Decimal (BCD) Numbering System Real (Floating Point) Numbering System BCD/Binary/Decimal/Hex/Octal
More informationFrequency Response of Filters
School of Engineering Department of Electrical and Computer Engineering 332:224 Principles of Electrical Engineering II Laboratory Experiment 2 Frequency Response of Filters 1 Introduction Objectives To
More informationContent Map For Career & Technology
Content Strand: Applied Academics CT-ET1-1 analysis of electronic A. Fractions and decimals B. Powers of 10 and engineering notation C. Formula based problem solutions D. Powers and roots E. Linear equations
More informationLab 1: The Digital Oscilloscope
PHYSICS 220 Physical Electronics Lab 1: The Digital Oscilloscope Object: To become familiar with the oscilloscope, a ubiquitous instrument for observing and measuring electronic signals. Apparatus: Tektronix
More information2011, The McGraw-Hill Companies, Inc. Chapter 3
Chapter 3 3.1 Decimal System The radix or base of a number system determines the total number of different symbols or digits used by that system. The decimal system has a base of 10 with the digits 0 through
More informationLAB4: Audio Synthesizer
UC Berkeley, EECS 100 Lab LAB4: Audio Synthesizer B. Boser NAME 1: NAME 2: The 555 Timer IC SID: SID: Inductors and capacitors add a host of new circuit possibilities that exploit the memory realized by
More informationAUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR
AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR INTRODUCTION This Project "Automatic Night Lamp with Morning Alarm" was developed using Microprocessor. It is the Heart of the system. The sensors
More informationCHAPTER 11: Flip Flops
CHAPTER 11: Flip Flops In this chapter, you will be building the part of the circuit that controls the command sequencing. The required circuit must operate the counter and the memory chip. When the teach
More informationNTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter
NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter Description: The NTE2053 is a CMOS 8 bit successive approximation Analog to Digital converter in a 20 Lead DIP type package which uses a differential
More informationControlling a Dot Matrix LED Display with a Microcontroller
Controlling a Dot Matrix LED Display with a Microcontroller By Matt Stabile and programming will be explained in general terms as well to allow for adaptation to any comparable microcontroller or LED matrix.
More informationBinary full adder. 2-bit ripple-carry adder. CSE 370 Spring 2006 Introduction to Digital Design Lecture 12: Adders
SE 370 Spring 2006 Introduction to Digital Design Lecture 12: dders Last Lecture Ls and Ls Today dders inary full 1-bit full omputes sum, carry-out arry-in allows cascaded s = xor xor = + + 32 ND2 11 ND2
More informationTake-Home Exercise. z y x. Erik Jonsson School of Engineering and Computer Science. The University of Texas at Dallas
Take-Home Exercise Assume you want the counter below to count mod-6 backward. That is, it would count 0-5-4-3-2-1-0, etc. Assume it is reset on startup, and design the wiring to make the counter count
More informationINSTRUMENTATION AND CONTROL TUTORIAL 3 SIGNAL PROCESSORS AND RECEIVERS
INSTRUMENTATION AND CONTROL TUTORIAL 3 SIGNAL PROCESSORS AND RECEIVERS This tutorial provides an overview of signal processing and conditioning for use in instrumentation and automatic control systems.
More informationCOMBINATIONAL CIRCUITS
COMBINATIONAL CIRCUITS http://www.tutorialspoint.com/computer_logical_organization/combinational_circuits.htm Copyright tutorialspoint.com Combinational circuit is a circuit in which we combine the different
More informationCS311 Lecture: Sequential Circuits
CS311 Lecture: Sequential Circuits Last revised 8/15/2007 Objectives: 1. To introduce asynchronous and synchronous flip-flops (latches and pulsetriggered, plus asynchronous preset/clear) 2. To introduce
More informationMULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.
CHAPTER3 QUESTIONS MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. ) If one input of an AND gate is LOW while the other is a clock signal, the output
More informationSection 3. Sensor to ADC Design Example
Section 3 Sensor to ADC Design Example 3-1 This section describes the design of a sensor to ADC system. The sensor measures temperature, and the measurement is interfaced into an ADC selected by the systems
More informationPCM Encoding and Decoding:
PCM Encoding and Decoding: Aim: Introduction to PCM encoding and decoding. Introduction: PCM Encoding: The input to the PCM ENCODER module is an analog message. This must be constrained to a defined bandwidth
More informationChapter 4 Register Transfer and Microoperations. Section 4.1 Register Transfer Language
Chapter 4 Register Transfer and Microoperations Section 4.1 Register Transfer Language Digital systems are composed of modules that are constructed from digital components, such as registers, decoders,
More informationDigital Design. Assoc. Prof. Dr. Berna Örs Yalçın
Digital Design Assoc. Prof. Dr. Berna Örs Yalçın Istanbul Technical University Faculty of Electrical and Electronics Engineering Office Number: 2318 E-mail: siddika.ors@itu.edu.tr Grading 1st Midterm -
More informationOp-Amp Simulation EE/CS 5720/6720. Read Chapter 5 in Johns & Martin before you begin this assignment.
Op-Amp Simulation EE/CS 5720/6720 Read Chapter 5 in Johns & Martin before you begin this assignment. This assignment will take you through the simulation and basic characterization of a simple operational
More informationToday s topics. Digital Computers. More on binary. Binary Digits (Bits)
Today s topics! Binary Numbers! Brookshear.-.! Slides from Prof. Marti Hearst of UC Berkeley SIMS! Upcoming! Networks Interactive Introduction to Graph Theory http://www.utm.edu/cgi-bin/caldwell/tutor/departments/math/graph/intro
More informationLecture 12: More on Registers, Multiplexers, Decoders, Comparators and Wot- Nots
Lecture 12: More on Registers, Multiplexers, Decoders, Comparators and Wot- Nots Registers As you probably know (if you don t then you should consider changing your course), data processing is usually
More informationComputers. Hardware. The Central Processing Unit (CPU) CMPT 125: Lecture 1: Understanding the Computer
Computers CMPT 125: Lecture 1: Understanding the Computer Tamara Smyth, tamaras@cs.sfu.ca School of Computing Science, Simon Fraser University January 3, 2009 A computer performs 2 basic functions: 1.
More informationTwo's Complement Adder/Subtractor Lab L03
Two's Complement Adder/Subtractor Lab L03 Introduction Computers are usually designed to perform indirect subtraction instead of direct subtraction. Adding -B to A is equivalent to subtracting B from A,
More informationLow Cost Pure Sine Wave Solar Inverter Circuit
Low Cost Pure Sine Wave Solar Inverter Circuit Final Report Members: Cameron DeAngelis and Luv Rasania Professor: Yicheng Lu Advisor: Rui Li Background Information: Recent rises in electrical energy costs
More informationSum-of-Products and Product-of-Sums expressions
Sum-of-Products and Product-of-Sums expressions This worksheet and all related files are licensed under the reative ommons ttribution License, version.. To view a copy of this license, visit http://creativecommons.org/licenses/by/./,
More informationExperiment #5, Series and Parallel Circuits, Kirchhoff s Laws
Physics 182 Summer 2013 Experiment #5 1 Experiment #5, Series and Parallel Circuits, Kirchhoff s Laws 1 Purpose Our purpose is to explore and validate Kirchhoff s laws as a way to better understanding
More informationLab 17: Building a 4-Digit 7-Segment LED Decoder
Phys2303 L.A. Bumm [Nexys 1.1.2] Lab 17 (p1) Lab 17: Building a 4-Digit 7-Segment LED Decoder In this lab your will make 4 test circuits, the 4-digit 7-segment decoder, and demonstration circuit using
More informationJianjian Song LogicWorks 4 Tutorials (5/15/03) Page 1 of 14
LogicWorks 4 Tutorials Jianjian Song Department of Electrical and Computer Engineering Rose-Hulman Institute of Technology March 23 Table of Contents LogicWorks 4 Installation and update...2 2 Tutorial
More informationSystems I: Computer Organization and Architecture
Systems I: omputer Organization and Architecture Lecture 8: Registers and ounters Registers A register is a group of flip-flops. Each flip-flop stores one bit of data; n flip-flops are required to store
More informationLM 358 Op Amp. If you have small signals and need a more useful reading we could amplify it using the op amp, this is commonly used in sensors.
LM 358 Op Amp S k i l l L e v e l : I n t e r m e d i a t e OVERVIEW The LM 358 is a duel single supply operational amplifier. As it is a single supply it eliminates the need for a duel power supply, thus
More informationUse and Application of Output Limiting Amplifiers (HFA1115, HFA1130, HFA1135)
Use and Application of Output Limiting Amplifiers (HFA111, HFA110, HFA11) Application Note November 1996 AN96 Introduction Amplifiers with internal voltage clamps, also known as limiting amplifiers, have
More informationDesigning VM2 Application Boards
Designing VM2 Application Boards This document lists some things to consider when designing a custom application board for the VM2 embedded controller. It is intended to complement the VM2 Datasheet. A
More informationBuilding the AMP Amplifier
Building the AMP Amplifier Introduction For about 80 years it has been possible to amplify voltage differences and to increase the associated power, first with vacuum tubes using electrons from a hot filament;
More information