Presentation is loading. Please wait.

Presentation is loading. Please wait.

DIGITAL CIRCUITS Dr. L M Head Sophomore Clinic Fall 2004.

Similar presentations


Presentation on theme: "DIGITAL CIRCUITS Dr. L M Head Sophomore Clinic Fall 2004."— Presentation transcript:

1 DIGITAL CIRCUITS Dr. L M Head Sophomore Clinic Fall 2004

2 Binary Numbers and Boolean Logic DecimalBinary 00000 10001 20010 30011 40100 50101 60110 70111 81000 91001 http://www.neurophys.wisc.edu/www/comp/docs/ascii.html 2 0010 +5 0101 7 0111 3 0011 +5 0101 8 1000 7 0111 - 5 0101 2 0010 5 0101 - 2 0010 3 0011

3 Binary Designations 2 3 = 82 2 = 42 1 = 22 0 = 1 01014 + 1 = 5 4 TH 3 RD 2 ND 1 ST As seen in the above example, the four digit binary representation of the number 5 is 0101. Binary numbers are read from right to left, and the total is the sum of all individual digits represented by a “1”. For “5”, the third or “4” digit is added to the first or “1” digit, bringing the total to five.

4 The AND gate implements the AND function. With the gate shown above, both inputs must have logic 1 (high) signals applied to them in order for the output to be logic 1. With either input at logic 0 (low), the output will be held to logic 0. The AND Gate is not limited to only two inputs. AND Gates are also commonly manufactured to have three or four inputs. AND Gate symbol

5 OR Gatesymbol + The OR gate is sort of the reverse of the AND gate. The OR function, like its verbal counterpart, allows the output to be true (logic 1) if any one or more of its inputs are true. Verbally, we might say, "If it is raining OR if I turn on the sprinkler, the lawn will be wet." Note that the lawn will still be wet if the sprinkler is on and it is also raining. This is correctly reflected by the basic OR function.

6 Inverter symbols ‾ or ~ Otherwise known as a NOT Gate The inverter is a little different from AND and OR gates in that it always has exactly one input as well as one output. Whatever logical state is applied to the input, the opposite state will appear at the output. For example, if a logic 0 is applied to the input, the output would be a logic 1. In the inverter symbol, the triangle actually denotes only an amplifier, which in digital terms means that it "cleans up" the signal but does not change its logical sense. It is the circle at the output, which denotes the logical inversion. The circle could have been placed at the input instead, and the logical meaning would still be the same. For shorthand, the inverter may simply be shown as the circle.

7 NAND Gate The NAND gate implements the NAND function, which is exactly inverted from the AND function you already examined. With the gate shown above, both inputs must have logic 1 signals applied to them in order for the output to be a logic 0. With either input at logic 0, the output will be held to logic 1. The circle at the output of the NAND gate denotes the logical inversion, just as it did at the output of the inverter. Also in the figure above, note that the overbar is a solid bar over both input values at once. This shows that it is the AND function itself that is inverted, rather than each separate input. =

8 NOR Gate The NOR gate is an OR gate with the output inverted. Where the OR gate allows the output to be true (logic 1) if any one or more of its inputs are true, the NOR gate inverts this and forces the output to logic 0 when any input is true. In symbols, the NOR function is designated with a plus sign (+), with an overbar over the entire expression to indicate the inversion. In logical diagrams, the symbol above designates the NOR gate. As expected, this is an OR gate with a circle to designate the inversion. =

9 XOR Gate Otherwise known as the Exclusive-OR The Exclusive-OR, or XOR function is an interesting and useful variation on the basic OR function. Verbally, it can be stated as, "Either A or B, but not both." The XOR gate produces a logic 1 output only if its two inputs are different. If the inputs are the same, the output is a logic 0. The XOR symbol is a variation on the standard OR symbol. It consists of a plus (+) sign with a circle around it. The logic symbol, as shown here, is a variation on the standard OR symbol.

10 Implementing a Function F = (AB) + (CD) Find F if A=1 B=0 C=0 D=1 F = (AB) (CD)

11 The Digital Timer LM555 Timer 74LS90 Binary Counter SCHS086 Decoder Seven-Segment Display Each decimal digit has its own binary code of ones and zeros. The counter tells the SCHS086 Decoder which sections of the seven-segment display to light up to show the proper number. So when the counter outputs 0001, the decoder will tell the two vertical right hand segments of the display to light up. The timer/clock is a standard LM555 astable oscillator configuration with external components to set the frequency. The 74LS90 Binary Counter counts the pulses from the LM555 timer and turns those pulses into the “4-bit” output.

12 The LM555 is an IC device that can generate a time signal usually referred to as an oscillation. Timing is an essential part of most electronic devices. For the most part, timing is used to set which pins in the chip will go on at any given time. In order to do this the chip must be connected first to an input voltage, then through a series of resistors and capacitors. These resistors, connected to the threshold and discharge pins, as well as the capacitor, connected to the trigger pin, will decide what frequency the timer will operate at. RB RA Frequency = ((1.44)/(RA +2RB)C)

13 12345671234567 14 13 12 11 10 9 8 DM74LS90 COUNTER To 555 Timer A D TO GROUND B C 6V TO GROUND The connections designated A, B, C, and D connect to the inputs of the BCD to seven-segment decoder. The input counts pulses generated by the LM555 timer chip and the outputs are as described in the appropriate truth table. To Decoder

14 1234567812345678 16 15 14 13 12 11 10 9 470 ohm 6V A D B C f g e d c b a MC 14543B BCD TO GROUND 6V From Counter To 7-segment Display The Decoder will be, in a sense, “told” from the decade counter which sections of the seven-segment display to light up. For example, if the counter outputs 0001, the decoder will tell the two vertical right hand segments of the display to light up.

15 The display component is a common-anode seven-segment display. The chip is composed of seven light emitting diodes (LEDs) combined to make the number display. This chip takes the information being sent from the decoder and lights up the corresponding number with the LEDs. A combination of the LEDs is turned on or off to make the appropriate number.


Download ppt "DIGITAL CIRCUITS Dr. L M Head Sophomore Clinic Fall 2004."

Similar presentations


Ads by Google