Logic Circuits and Design - Lab 1
Logic Circuits and Design - Lab 1
I. OBJECTIVE
A combinational circuit consists of input variables, logic gates and output variables. The logic
gate accepts signals from the input and generate signal from the output. This process transforms
binary information from the given input data to the required output data. The input and output data
are represented by binary signal that is, they exist in two possible values either logic0 or logic1. A
block diagram of a combinational circuit is shown in figure 1-1. The n input binary variable come from
an external source and the m output variable go to an external destination. There are 2n combinations
of binary input value for n input variables. A combinational circuit described by m Boolean function,
one for each variable. Each output is expressed in terms of the input variables.
III. MATERIALS
Digital trainer
IC type 7400, quad 2-input NAND gate
IC type 7404, hex inverter
IC type 7432, quad 2-input OR gate
IC type 7408, quadruple 2-input AND gate
IC type 7486, quad Exclusive-OR gate
Wires
LED
Breadboard
• Design, construct and test the following combinational logic problems with minimum number
of IC’s. For all ICs in this experiment: Vcc = +5v to pin 14, and 0 (ground) to pin 7.
Problem 1
Design a combinational circuit with 4 inputs ABCD and 1 output F. F is equal to 1 when A =0
provided that B=1 provided that either C and D is also to be equal to 0. Otherwise, the output is equal
to 0.
a. Obtain the truth table of the circuit.
b. Simplify the output function.
c. Draw the logic diagram of the circuit using NAND gates with the minimum number of IC’s.
d. Construct the circuit and test it for proper operation by verifying the condition stated above.
Problem 2
Design a circuit for a car chime based on the following system:
A car chime or bell will sound if the output of the logic circuit (X) is set to a logic ‘1’. The chime is to be
sounded for either of the following conditions:
• if the headlights are left on when the engine is turned off and
• if the engine is off and the key is in the ignition when the door is opened.
Use the following input names and nomenclature in the design process:
• ‘E’ – Engine. ‘1’ if the engine is ON and ‘0’ if the engine is OFF
• ‘L’ – Lights. ‘1’ if the lights are ON and ‘0’ if the lights are OFF
• ‘K’ – Key. ‘1’ if the key is in the ignition and ‘0’ if the key is not in the ignition
• ‘D’ – Door. ‘1’ the door is open and ‘0’ if the door is closed
• ‘X’ – Output to Chime. ‘1’ is chime is ON and ‘0’ if chime is OFF
Problem 3
A manufacturing plant needs to have a horn sound to signal quitting time. The horn should be
activated when either of the following conditions is met:
1. It’s after 5 o’clock and all machines are shut down.
2. It’s Friday, the production run for the day is complete, and all machines are shutdown.
Design a logic circuit that will control the horn. (Hint: Use four logic input variables to
represent the various conditions; for example; input A will be HIGH only when the time of day is 5
o’clock or later)
V. QUESTION
1. In a microcomputer, the microprocessor unit (MPU) is always communicating with one of the
following: (1) Random Access Memory(RAM), which stores programs and data that can be readily
changed; (2) Read Only Memory (ROM), which stores programs and data that never change; (3)
external input/output (I/O) such as keyboards, video displays, printers, and disk drives. As it is
executing a program, the MPU will generate an address code that selects which type of device (RAM,
ROM, or I/O) it wants to communicate with. The figure below shows a typical arrangement where the
MPU outputs an eight-bit address code A15 through A8. Actually, the MPU outputs a 16-bit address
code, but the lower bit A7 through A0 are not used in the device selection process. The address code is
applied to a logic circuit which uses it to generate the device select signals: RAM,ROM, and I/O.
Express the addresses in binary and hexadecimal. For example, the answer to a is A15 to A8 =
000000002 to 111011112 = 0016 to EF16.