ie - california state university, northridgerd436460/digitalelectronics/exercise 6.pdfthe 74181 alu...

9
I . In this lab' exercise you will learn to implement binary adders. You will learn about the half-adder and the full-adder. LD-2 Logic Designer 74L586 Quad EXOR IC 74L508 Quad,AND Ie 74L532 QUAD OR IC Jumper Wires TIL Data Book 1. You will use a 74L508 and a 74L586 for the first part of this experiment. Plac.e both of these Ies on the LD-2 breadboard and wire power to them. 2. Wire the circuit shown in Figure 6-15. 74LS86 '/4 A S1 ___ L_' Sum 8 S2 2 LAB EXERCISE 6.1 Binary Adders Materials Procedure FiGURE 6-15. Half·Adder Schematic. 74LS08 ·1/4 3. Place 51 and 52 to their off positions. The power indicator, D1 should light. Turn on power. 4: UseSl arid 52 for 'iheA observe the sum and carry outputs. table for this circuit. Record the truth 5. Turn 117

Upload: hacong

Post on 19-Mar-2018

226 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Ie - California State University, Northridgerd436460/DigitalElectronics/Exercise 6.pdfThe 74181 ALU is the largest and most complex . Ie . you have used to date. -The 74181 perfonns

I .

In this lab' exercise you will learn to implement binary adders. You will learn about the half-adder and the full-adder.

LD-2 Logic Designer

74L586 Quad EXOR IC

74L508 Quad,AND Ie

74L532 QUAD OR IC

Jumper Wires

TIL Data Book

1. You will use a 74L508 and a 74L586 for the first part of this experiment. Plac.e both of these Ies on the LD-2 breadboard and wire power to them.

2. Wire the circuit shown in Figure 6-15.

74LS86 '/4

A S1 ~3___L_' Sum

8 S2

2

LAB EXERCISE 6.1 Binary Adders

Objectiv~s

Materials

Procedure

FiGURE 6-15. Half·Adder Schematic.

74LS08 ·1/4

3. Place 51 and 52 to their off positions. The power indicator, D1 should light.

Turn on power.

4: UseSl arid 52 for'iheA andB\nFut~:. observe the sum and carry outputs. table for this circuit.

;UsetJand :·Llto Record the truth

5. Turn off-power~

117

Page 2: Ie - California State University, Northridgerd436460/DigitalElectronics/Exercise 6.pdfThe 74181 ALU is the largest and most complex . Ie . you have used to date. -The 74181 perfonns

.. :.~~. .. : ; .. .' . Add a74L$3?lC"toHieLD-2breadboard; ·Wir.e 'powerand ,. ground to this circuit. ' ' . ' " . ' ,

7. Wire the circuitshown in Figure 6-16.

FIGURE 6-16..Full-Adder Schematic.

S1 1 Cin~_....__4-+-\ 6 A---4__~ 3 S3 5 ~---L1

S2 2 ~---~--~~~~~ , Sum B-----+0---1'-(...--'

1 3 >----L2 2 08 ~-----""';;;-L...--" Carry

~"""';;;"L-~

8. Place 51, 52 and 53 to off. Tum on _power. D1 should light.

9. Use 51, 52 and 53 for the A, B and Carry in inputs. Use '--­Ll and L2 to observe the sum and carry outputs. Record your observations'in the form of a truth table.

Questions l. Explain the difference between a half-adder and a full­adder.

2. Use the truth table from step 9 to form the logic equations and Kamaugh maps for the full-adder.

LAB EXERCISE 6.2 Parallel Binary Adder ----­In this lab exercise you will learn about the 4-bit parallel Ie adder. .

Objectives You will use this adder to perform one's complement arithmetic.

118

Page 3: Ie - California State University, Northridgerd436460/DigitalElectronics/Exercise 6.pdfThe 74181 ALU is the largest and most complex . Ie . you have used to date. -The 74181 perfonns

--

LD-2 Logic Designer

7483 4-Bit Binary Full-Adder With Fast Carry

74LS86 Quad Two Input EXOR Gate

Jumper Wires

TIL Data Book

1. You will use the 74LS86, and 7483 ICs for this lab. Insert both of these ICs in the . breadboard-and . wire tile power and ground to both ICs. Be particularly careful with the 7483 as it has the power on pin 5 and ground on pin twelve of the 16 pin DIP.

2. Wire the circuit shown in Figure 6-17.

Wire Augend To: 54., 11

55., 7 56 .. 4 57., 16

Augend • 0 •

~4 D !.2

15 2 6

L3 L2 L1

~1

74L583

A2 A1 Cin

13

9

LO

,....,.....4+--_ 51

5

~r-~+----

A o oCout E14

6 N o

503

DS1 L5B

E 0 -­

74L586 4/4

3. This circuit requires some explanation. The four gates of the 74LS86 are used to form a true/complement circuit. This will allow you to add numbers with unlike signs.

Materials

Procedure

FIGURE 6·17. Parallel Binary Adder Circuit.

119

Page 4: Ie - California State University, Northridgerd436460/DigitalElectronics/Exercise 6.pdfThe 74181 ALU is the largest and most complex . Ie . you have used to date. -The 74181 perfonns

4. This circuit is connected so that the inputs act as unsigned magnitudes. Use SO-S3 as the A1-A4 inputs, 54­S7 as the BI-B4 inputs, LO-I3 as the sum output, and 051 as the carry output. Observe this circuit and describe it's operation.

5. Now you will configure this circuit for subtraction. Remove the wire connecting pins 2,5,9 and 13 -of the 74LS86 to ground at the ground end •.

6. Connect this wire to vee. This will enable the complement output of the true/complement gate.

7. Remove the jumper between pin 13- of the 7483 and ground. Connect this jumper wire to pins 13 and 14 of the 7483. This change will perform the end-around carry " ­needed for one's complement arithmetic.

8. Place all logic switches to off. Tum on power and record your,opservatibns. Use the same inputs and outputs as step 5. . .. Do not change theS4-S7 inputs at this time. Remember that the inputs on SO-54 are entered , into the addet in a one's complement f~rmat. .

9. Use the S4-S7 switches as the input for the minuend while 50-54 are used as the subtrahend. Describe the action of this circuit.

Questions 1. Describe the two different types of adders used in this laboratory.

120

Page 5: Ie - California State University, Northridgerd436460/DigitalElectronics/Exercise 6.pdfThe 74181 ALU is the largest and most complex . Ie . you have used to date. -The 74181 perfonns

2. Show two ways that the 7483 can represent a 0 when connected as a one's complement subtractor.

3. What changes would have to be made for the circuit of step 8 in order for the circuit to add two positive binary numbers?

LAB EXERCISE 6.3 The BCD Adder In this lab exercise you will learn about the BCD adder. You

will construct a BCD adder and observe it's operation. Objectives

LD-2 Logic Designer Materials

7483 4-Bit Adder (2)

74LS27 Triple Three Input NOR

74LS04 Hex Inverter

74LS08 Quad AND

Jumper Wires

TIL Data Book

1. Place two 7483s, a 74LS08, a 74LS27, and a 74LS04 on the Procedure breadboard and wire power and ground to them.

2. Wire the circuit shown in Figure 6-18. 121

Page 6: Ie - California State University, Northridgerd436460/DigitalElectronics/Exercise 6.pdfThe 74181 ALU is the largest and most complex . Ie . you have used to date. -The 74181 perfonns

FIGURE 6-18. BCD Adder Circuit.

.Cf~' '"

4 7 11

Primary 7483

2 "

4

5

74L50B 214

t 3 8 10 . A4; .,- A1

56 54 57 S5

···· 83 81coutL6 ----------~14~B4 82

75L527 1/3

3

Correcting 7483

~~04 1/~ . . "i ':

13 --L3

.~

3. Place all logic switches off. Turn-on power~ Only Dl should light.

4. Use SO-53 as one adder input and 54-57 as the other adder input. L7 indicates a carry while Lo-L4 indicate the sum output. Add several numbers and record your observations.

5. Turn off power. Remove the wires from Lo-L3 and place them on 052 A-052 D respectively. Wire 051 DE and 052 DE to +5 VOC. Remove the wires from L7 and L6 and place them on pins 1 and 2 of the 74L527. Wire pin 13 of the 74L527 to ground. Wire pin 12 of the 74L527 to p~ 3 of the 74LS04. Wire pin 4 of the 74LS04 to 051 A.

6. Place a.lllogic switches to ofL Tum on power. Now use the same inputs as step 4 but this time use 051 and D52 as outputs. Again ' observe the adder operation and record your observations.

122

Page 7: Ie - California State University, Northridgerd436460/DigitalElectronics/Exercise 6.pdfThe 74181 ALU is the largest and most complex . Ie . you have used to date. -The 74181 perfonns

1. What are the results when a number greater than 20 is Questions the sum output for the circuit of step 6 ?

2. What does the drcuitry added to pirts 1 and 20f the 74LS27 in step 5 do?

-,

.,, ': "

In this lab exercise you will study the Arithmetic Logic Unit or ALU. You will use the ALU to perform binary multiplication and subtraction.

LAB EXERCISE 6.4 The ALU

Objectives

LD-2 Logic Designer Materials

74181 Arithmetic Logic Unit

jumper Wires

TIL Data Book

The 74181 ALU is the largest and most complex Ie you have used to date. - The 74181 perfonns a variety of arithmetic and logiC functions on two four-bit inputs. It provides a four-bit with carry output. It has a carry input ­and is controlled by the 50-54, andM inputs. The-A and B inputs and the F output can

-be used as 'either true or -complement bits; For this reason you will often find two function tables for the 74181 listed in data books.

Procedure

123

Page 8: Ie - California State University, Northridgerd436460/DigitalElectronics/Exercise 6.pdfThe 74181 ALU is the largest and most complex . Ie . you have used to date. -The 74181 perfonns

FIGURE 6-19. 74181 Adder.

1.

2.

A

Place the 74181 on the breadboard and wire power and ground to it.

Wire the circuit shown in Figure 6-19._

SO

81

82

83

8

54

55 22 81

86 20 82 "; . :".

87---'_804 '83

Cout

, ,

L7

H L L H

2 LO

23 A1 L1

21 A2 L2 Output

19 A3 L3

1 14 8 Ac8 Not Used

So 1 16

--3. Place all logic switches to off. Turn on power. D1 and L7

should light. Use SO-S3 as the A input, 54-57 as the B input, LO-L3 as the F output and L7 as the carry output. Observe and describe the action of this circuit. Remember that the carry output is LO true.

4. The 74181 can perform a variety of other functions. The type of function performed is controlled by the M · input, while the function selection is via the 50-54 inputs. Turn off power.

124

Page 9: Ie - California State University, Northridgerd436460/DigitalElectronics/Exercise 6.pdfThe 74181 ALU is the largest and most complex . Ie . you have used to date. -The 74181 perfonns

5. You will now change the function selection. Remove the wiring to pins 3-6. Wire pins 3 and 6 to ground and pins 4 and 5 to vee. Place all logic switches off.

6. Use the same inputs and outputs as before. Observe the circuit's operation and describe it. Pay particular attention to incorrect arithmetic results.

7. Turn off power. Wire pin 7 to ground. 8. Turn on power and observe the circuit's operation. Describe the results. Again look for any incorrect outputs for arithmetic operation.

1. What circuitry would be needed to perform an end Questions around carry for the circuit of step 6 ?

125