Practical Workbook Digital Logic Design / Logic Design & Switching Theory

Save this PDF as:
 WORD  PNG  TXT  JPG

Size: px
Start display at page:

Download "Practical Workbook Digital Logic Design / Logic Design & Switching Theory"

Transcription

1 Practical Workbook Digital Logic Design / Logic Design & Switching Theory Name : Year : Batch : Roll No : Department: Second edition Dept. of Computer & Information Systems Engineering NED University of Engineering & Technology, Karachi 75270, Pakistan

2 INTRODUCTION The digital logic design area covers the digital building blocks, tools, and techniques in the design of computers and other digital systems. Digital logic design is one of the topic areas that differentiate computer engineers from electrical engineers and computer scientists. It covers a variety of basic topics, including switching theory, combinational and sequential logic circuits, and memory elements. In this Practical Workbook, laboratory sessions based on both combinational and sequential logic are covered. The lab sessions fall into two categories: 1. Hardware implementation and IC testing. It covers combinational and sequential circuit building on a bread board or logic trainer board, and testing of various MSI ICs including registers and different types of counters. 2. Logic circuit simulation on CAD software Electronics Workbench (EWB). EWB is excellent simulation software, where circuits can be designed and tested before physical implementation. Various laboratory sessions of this workbook provide activities and exercises on EWB. All laboratory sessions of this workbook incorporate brief theoretical backgrounds, as details may be covered in the respective theory classes. Exercises / activities are included with almost all the sessions for the students to practice. Three appendices are also included in this workbook. The first one provides pin diagrams for all the ICs required for the laboratory work provided in this workbook. It will help the students in preparing the pin diagrams for the circuits. Second appendix covers hardware equipment /components other than ICs that are commonly required in building circuits / mini projects. Third appendix discusses generation of square wave via 555 timer IC and a hardware debouncing circuit for mechanical switches as such switches are extensively used for input purpose in logic circuits.

3 From power supply 2 pin female header Vcc GND PREREQUISITES The students coming for the lab sessions of Digital Logic Design / Logic Design & Switching Theory, should have a personal hardware kit containing the following items: 1 Power supply (preferably student made). 2 An Input-Output panel as shown in figure A (preferably student made) ICs of each of the following type: 7400, 7404, 7408, 7432, 7447, 7473, 7474, 7476, IC of each of the following type: 7490, 74138, 74148, 74150, 74194, any EEPROM 5 Breadboard 6 Connecting wires 8 DIP switches Push button Push button 10 pin female header 10 pin female header 8 LED Panel 1 Hz Clock generator (see appendix C.1 for the circuit using 555 timer IC) Figure A: Input-Output panel

4 CONTENTS Lab Session No. Object Page No Working with Electronics Workbench. Simplifying and implementing the given logic expression in hardware and realizing its NAND equivalent. Implementing half and full adder circuits. Simulating a 4-bit parallel adder on Electronics Workbench. Experimenting with digital decoder IC. Experimenting with digital multiplexer IC. Experimenting with encoder and seven segment display driver ICs. Testing different modes of JK flip flop, and implementing a modulo-4 asynchronous up-counter using JK flip flops. Experimenting with decade counter IC. Designing and simulating the seconds section of a digital clock. Experimenting with bidirectional universal shift register IC. Designing and implementing a 3-bit even sequence synchronous up counter using T flip flops. Designing and implementing synchronous sequential circuit for the given state diagram using D flip-flop. Designing and simulating a finite string recognizer to recognize the sequence 010. Programming EEPROM as a hex to seven-segment driver. Appendix A Pin diagrams of the ICs required for the laboratory sessions. Appendix B Common components (beside logic ICs) used in building circuits. Appendix C C.1 Clock generation using 555 timer IC. C.2 Debouncing circuitry for mechanical switches

5 Digital Logic Design / Logic Design & Switching Theory Lab Session 01 OBJECT Lab Session 01 Working with Electronics Workbench ELECTRONICS WORKBENCH - EWB Electronics Workbench is a computer aided design tool that provides you with all the components and instruments necessary to create board-level designs. It has complete mixed analog and digital simulation and graphical waveform analysis, allowing you to design your circuit and then analyze it using different simulated instruments and analysis options. It is fully integrated and interactive, thus you can change your circuits quickly, allowing fast and repeated what-if analysis. Electronics Workbench provides the following kind of components: Sources parts bin (AC voltage source, Vcc source, ground, battery, etc) Basic parts bin (resistors, capacitors, transformers, switches, etc) Diodes parts bin Transistors parts bin Analog ICs parts bin (op-amps, etc) Mixed ICs parts bin (ADCs, DACs, 555 timers, etc) Digital ICs parts bin (AND, OR, adders, multiplexers, etc) Indicators parts bin (voltmeter, ammeter, probe, displays, etc) Controls parts bin (voltage differentiator, multiplier, etc) Instruments parts bin (multimeter, oscilloscope, function generator, etc) Miscellaneous parts bin (write data, textbox, etc) o Write data: This component allows you to save simulation results as an ASCII file. o Text Box: Use this to add descriptive text anywhere in a circuit. DESIGNING LOGIC CIRCUIT FOR A GIVEN LOGIC EXPRESSION Given Logic Expression: F A. B A. B. C Procedure 1. From Logic Gates Parts Bin, drag and drop the required logic gates on the design area. Use Component Properties dialog box to customize these gates. 2. Connect the terminal of these gates according to the given expression. Use additional connectors form the Basic Parts Bin if more than one wire needs to be connected at a single node. 3. Drag and drop a probe from Indicators Parts Bin. Use Component Properties dialog box to customize the color and other properties of the probe. Connect this probe at the output terminal of the circuit to indicate results. 4. Select four switches form Basic Parts Bin. Specify the key that controls the switch by typing its name in the Value tab of the Component Properties dialog box. For example, if you want the switch to close or open when digit 1 is pressed, type 1 in the Value tab, then click OK. Assign different keys to all the switches. 1

6 Digital Logic Design / Logic Design & Switching Theory Lab Session Connect the output terminals of the switches to each of the circuit inputs A, B, and C. 6. Drag and drop Vcc and Ground form the Sources Parts Bin. 7. Connect Vcc terminal to one end and Ground terminal to the other end of all the switches. 8. Label the circuit properly using text boxes found in the miscellaneous parts bin. 9. Run the circuit using the Activate Simulation switch. Use the keys you have assigned to the switches to toggle them between Vcc and Ground connections, thus providing 1 or 0 respectively to the inputs. Record the results as indicated by the probe for all possible combinations of 1s and 0s at the inputs. EWB Circuit Observations Figure 1.1: Designed circuit on EWB A B C Expected Output Observed Output USING LOGIC CONVERTER Logic converter can be used to derive truth table and logic expression for a given logic circuit or vice versa, i.e. if a logic circuit is expressed in any one of the three ways, other two can be directly obtained using the logic converter. From the Instruments Parts Bin, drag and drop Logic Converter on the design area. Double click the Logic Converter to reveal Logic Converter dialog box. This dialog box shows various conversion options between truth table, logic expression and logic circuit. 2

7 Digital Logic Design / Logic Design & Switching Theory Lab Session 01 Finding truth table and logic expression for a given logic circuit 1. Create any arbitrary logic circuit on the design area. 2. Attach the input terminals of the logic converter to the input points in the circuit. 3. Connect the single output of the circuit to the output terminal on the logic converter icon. 4. Click the Circuit to Truth Table button. The truth table appears in the logic converter's display. 5. To convert this truth table to a Boolean expression, click the Truth Table to Boolean Expression button. The Boolean expression will be displayed at the bottom of the logic converter. Creating logic circuit and truth table for a given logic expression 1. Enter the given logic expression in the edit box found at the end of the Logic converter dialog box. Use to represent invert of a variable. For example, A is written as A. 2. Click the Boolean Expression to Truth Table button. The truth table appears in the logic converter's display. 3. Now click the Boolean Expression to Circuit button. This creates the logic circuit for the given expression in the design area. Label the diagram if needed. Creating logic circuit and finding logic expression for a given truth table 1. Click desired number of input channels from A to H, across the top of the logic converter. The display area below the terminals fills up with the necessary combinations of ones and zeros to fulfill the input conditions. The values in the output column on the right are initially set to Edit the output column to specify the desired output for each input condition. To change an output value, select it and type a new value: 1, 0 or x. An x indicates a don t care condition. 3. To convert this truth table to a Boolean expression, click the Truth Table to Boolean Expression button. The Boolean expression will be displayed at the bottom of the logic converter. 4. Simplify the expression by clicking the Simplify button. 5. Now click the Boolean Expression to Circuit button. This creates the logic circuit for the given expression in the design area. EXERCISE 1. Create a neat pin diagram (using TTL ICs) for the logic expression F A. B A. B. C. Test the output and attach hard copy of the diagram here. 3

8 Digital Logic Design / Logic Design & Switching Theory Lab Session 02 OBJECT Lab Session 02 Simplifying and implementing the given logic expression in hardware and realizing its NAND equivalent. COMPONENTS REQUIRED 1. Digital logic trainer board or the following components: Bread board, 5 V - Power Supply, Multimeter, LEDs with Resistors, Switches 2. Logic probe 3. Connecting wires 4. Following ICs and their datasheets or pin configurations: 7400 quad 2 input NAND gate 7404 hex inverter 7408 quad 2 input AND gate 7432 quad 2 input OR gate GIVEN LOGIC EXPRESSION PROCEDURE ( ) ( ) 1. Use Karnaugh map to reduce the given function. 2. Draw the circuit diagram for the obtained reduced function. 3. Implement the reduced circuit using digital ICs on a bread board (refer to appendix A for IC pin configurations) and record the observations. 4. Find NAND realization for the simplified circuit. 5. Implement the all NAND circuit using digital ICs on a bread board (refer to appendix A for the pin diagram) and verify the observations taken in step 3. REDUCTION OF LOGIC EXPRESSION Reduced logic expression comes out to be: 4

9 Digital Logic Design / Logic Design & Switching Theory Lab Session 02 LOGIC DIAGRAM (REDUCED FORM) NAND REALIZATION OF THE REDUCED LOGIC EXPRESSION OBSERVATIONS A B C D Expected Output Observed Output For simplified expression For NAND realization EXERCISE 1. Simulate the simplified expression implemented in lab using Electronics Workbench or any other simulation tool and generate its NAND equivalent using Logic Converter tool. Attach hardcopy of the simulated circuit/output here. 5

10 Digital Logic Design / Logic Design & Switching Theory Lab Session 03 OBJECT Lab Session 03 Implementing half and full adder circuits. COMPONENTS AND APPARATUS REQUIRED 1. Digital logic trainer board or the following components: Bread board, 5 V - Power Supply, Multimeter, LEDs with Resistors, Switches 2. Logic probe 3. Connecting wires 4. Following ICs and their datasheets or pin configurations: 7408 Quad 2-input AND Gate 7432 Quad 2-input OR Gate 7486 Quad 2-input XOR Gate THEORY Half Adder A combination circuit that performs the addition of two bits without accounting for the previous carry is called half adder. It needs two binary inputs and two binary outputs. The input variables designate the augend and addend bits. The output variables produce the sum and carry. The simplified sum of product expressions for a half adder are: S x. y x. y x y C x. y Full Adder Figure 3.1: Logic circuit for Half Adder A combinational circuit that performs the addition of three input bits. It consist of three inputs and two outputs. Two of the input variables, represent the two significant bits to be added. The third input, represents the carry from the previous lower significant position. The output variables produce the sum and carry. The simplified sum of product expressions for a half adder are: S x. y. z x. y. z x. y. z x. y. z x y z C y. x x. z y. z ( x y). z x. y 6

11 Digital Logic Design / Logic Design & Switching Theory Lab Session 03 Figure 3.2: Circuit diagram for Full Adder HARDWARE IMPLEMENTATION AND OBSERVATIONS Implement the half adder and full adder circuits in hardware (refer to appendix A for IC pin configurations) and record the observations in the following tables: Half Adder Full Adder Inputs Outputs Inputs Outputs X Y Carry Sum X y z Carry Sum EXERCISES 1. Design a full subtractor circuit and simulate it using Electronic Workbench or any simulation tool. Compare the results of simulation with that of your designed circuit. Attach hardcopy of the simulated circuit/output here. 7

12 Digital Logic Design / Logic Design & Switching Theory Lab Session 04 OBJECT THEORY 4-Bit Parallel Adder Lab Session 04 Simulating a 4-bit parallel adder on Electronics Workbench A 4-bit parallel adder can add two 4-bit values. One way of constructing such an adder is to simply cascade four full adders as shown in figure 4.1. Here A 3 A 2 A 1 A 0 and B 3 B 2 B 1 B 0 are two 4-bit values to be added. FA3, FA2, FA1 and FA0 are the four full adders that are cascaded in parallel to provide the desired result. S 3 S 2 S 1 S 0 is the final 4-bit sum. C 0 is the external carry input (if any) to the circuit and C 4 is the final carry generated by the 4-bit addition. A 3 B 3 A 2 B 2 A 1 B 1 A 0 B 0 C 0 x y C in x y C in x y C in x y C in FA 3 FA 2 FA 1 FA 0 C out S C out S C out S C out S C 4 S 3 S 2 S 1 S 0 Figure 4.1: 4-bit Parallel Adder Creating Subcircuits in Electronic Workbench Creating a subcircuit allows you to reuse the circuit multiple times in a design and in future designs. Subcircuits may contain basic circuit elements or other subcircuit definitions. To create a subcircuit in Electronics Workbench: 1. First you have to design the circuit that you want to implement. Let's say you want to create a half-adder, so you simply draw a circuit with a XOR and AND gate (XOR is SUM and AND is Carry Out). 2. Select all components of the design that needs to be included in the subcircuit. 3. From the menu Circuit, select Create Subsircuit. Type a name and choose appropriate options. This will open a subwindow on the main design area containing the initially selected components. 4. Drag the input and output lines towards the edges to make input and output ports/terminals in the subcircuit. 5. Now click anywhere in the outer design area, this will close the internal structure of the subcircuit. The subcircuit will appear as a block on the main design area with assigned input and output lines. Now this block can be replicated (copy-pasted) where ever required or can be saved for future reuse. 8

13 Digital Logic Design / Logic Design & Switching Theory Lab Session 04 PROCEDURE 1. Create a subcircuit for a full adder unit. Refer to lab session 3 for the gate level circuit of a full adder. This subcircuit should have three inputs namely x, y, C in and two outputs namely C out and S. 2. Replicate the subcircuit to make a total of four full adder subcircuits namely FA3, FA2, FA1 and FA0. 3. Make connections among these full adders as shown in figure Again create a subcircuit containing all these four full adders to make a single unit of a 4- bit parallel adder. This new subcircuit should have nine inputs (C 0, A3, A 2, A 1, A 0, B 3, B 2, B 1, B 0 ) and five outputs (C 4, S 3, S 2, S 1, S 0 ). 5. Connect the inputs to switches and outputs to indicators. Apply various combinations of 1s and 0s at inputs and check the binary values at the outputs. 9

14 Digital Logic Design / Logic Design & Switching Theory Lab Session 05 OBJECT Lab Session 05 Experimenting with digital decoder IC. COMPONENTS AND APPARATUS REQUIRED 1. Digital logic trainer board or the following components: Bread board, 5 V - Power Supply, Multimeter, LEDs with Resistors, Switches 2. Logic probe 3. Connecting wires 4. Following ICs and their datasheets or pin configurations: x 8 Line Decoder / Demultiplexer THEORY Decoder A Decoder is a combinational circuit that converts binary information from n input lines to a maximum of 2 n unique output lines. In practical applications, decoders are often used for selecting one of several devices. Demultiplexer A Demultiplexer (DMUX) is a circuit that receives information on a single line and transmits this information on one of 2 n possible output lines. The selection of a specific output line is controlled by the bit values of n selection lines. A decoder with an enable input can function as a Demultiplexer (DMUX) x 8 Line Decoder / Demultiplexer The IC has three inputs and eight output lines. It has three enable inputs and for the IC to function all three inputs need to be enabled. Refer to appendix A for IC pin configuration. Function of various pins of this IC is described below: Y0 through Y7: Active low data outputs A, B, C: Active high input / select lines with C being the MSB G1: Active high enable Input G2A and G2B : Active low enable Inputs VCC and GND: Supply connections lines TESTING PROCEDURE AND OBSERVATIONS 1 Make Vcc and Gnd supply connections. 2 Connect the three inputs A, B and C to switches. 3 Set appropriate values at enable inputs to activate the IC. 10

15 Digital Logic Design / Logic Design & Switching Theory Lab Session 05 4 Apply different combinations of 1s and 0s at data inputs. 5 Observe the output and record your observations in the following table. C B A Y0 Y1 Y2 Y3 Y4 Y5 Y6 Y EXERCISES 1. What will be the binary values at the outputs, Y0 through Y7, of if: All three enable pins are connected to ground? All three enable pins are connected to VCC? 2. Consider a 2 x 4 Decoder with two enable inputs (one active high - G and one active low G ). Draw the output wave-forms for D0, D1, D2 and D3, if the two select inputs are A and B (B being the MSB). All outputs are active low. G G A B D0 D1 D2 D3 3. Cascade two 2x4 decoders to form a 3x8 decoder. a. Implement the circuit in hardware using two ICs and observe the output. b. Simulate the circuit on Electronics Workbench or any other simulation software using dual 2-line-to-4-line decoder/demultiplexer IC. Attach hardcopy of the simulated circuit/output here. 11

16 Digital Logic Design / Logic Design & Switching Theory Lab Session 06 OBJECT Lab Session 06 Experimenting with digital multiplexer IC. COMPONENTS AND APPARATUS REQUIRED 1. Digital logic trainer board or the following components: Bread board, 5 V - Power Supply, Multimeter, LEDs with Resistors, Switches 2. Logic probe 3. Connecting wires 4. Following ICs and their datasheets or pin configurations: x 1 Mutiplexer THEORY Multiplexers A digital data Multiplexer (MUX) is a combinational circuit having several data inputs and a single output. A set of data-select inputs is used to control which of the data inputs is routed to the single output. A multiplexer is also called a data selector because of this ability to select which data input is connected to the output. Normally there are 2 n input lines and n selection lines whose bit combination determine which input is selected x 1 Multiplexer The IC has sixteen data inputs and four data-selection lines. It also contains an active low enable and an active low output line. Refer to appendix A for IC pin configuration. Function of various pins of this IC is described below: E0 through E15: Active high data input lines A, B, C, D: Active high data select lines with D being the MSB W: Active low output line G : Active low enable line VCC and GND: Supply connections lines TESTING PROCEDURE AND OBSERVATIONS 1 Make Vcc and Gnd supply connections. 2 Connect the data select inputs A, B, C and D to switches. 3 Set appropriate values at enable inputs to activate the IC. 4 Connect the data inputs E0 through E15 to switches. For simplicity just two or three data inputs can be connected to switches at a time. Remaining inputs will draw 1 by default (float high characteristic of TTL ICs). 5 Now select any data input with the help of data selectors A, B, C, and D. Apply different data (1 or 0) at this selected data inputs. 12

17 Digital Logic Design / Logic Design & Switching Theory Lab Session 06 6 Observe the output. The invert of the value applied at the selected data input will appear at the output. 7 Record your observations for the input configurations given in the following table. Here only E0, E4 and E15 data inputs are considered. G D C B A Value at data input W G D C B A Value at data input W EXERCISES 1. Consider 4x1 Multiplexer. Draw the output wave-form for the following data inputs (E 0, E 1, E 2, E 3,) and select lines A, B (B being the MSB). Output is W. E3 E2 E1 E0 A B W 4. Implement the following function using 8x1 multiplexer. ( ) ( ) a. Implement the circuit in hardware using IC and observe the output. b. Simulate the circuit on Electronics Workbench or any other simulation software using line-to-1-line multiplexer IC. Attach hardcopy of the simulated circuit/output here. 13

18 Digital Logic Design / Logic Design & Switching Theory Lab Session 07 OBJECT Lab Session 07 Experimenting with encoder and seven segment display driver ICs. COMPONENTS AND APPARATUS REQUIRED 1. Digital logic trainer board or the following components: Bread board, 5 V - Power Supply, Multimeter, LEDs with Resistors, Switches 2. Logic probe 3. Connecting wires 4. Seven Segment Display (Common Anode Type) with resistor 5. Following ICs and their datasheets or pin configurations: Octal to Binary Priority Encoder 7447 BCD to Seven Segment Driver 7404 hex inverter THEORY Encoder An Encoder is a digital function that produces a reverse operation from that of a decoder. An Encoder has 2 n (or less) input lines and n output lines. The output lines generate the binary code for the 2 n input variables. Priority Encoder A simple encoder may produce an erroneous output if more than one of its inputs is high. A Priority Encoder is one that responds to just one input among those that may be simultaneously high, in accordance with some priority system. The most common priority system is based on the relative magnitudes of the inputs: whichever decimal input is largest is the one that is encoded x 3 Octal to Binary Priority Encoder The is a priority encoder with active-low inputs for decimal digits. There are nine inputs lines (including an enable input) and five output lines, of which three represents the binary code for the octal digit. Refer to appendix A for IC pin configuration. Function of various pins of this IC is described below: 0 through 7: Active low data inputs representing the octal digits A2, A1, A0: Active low output lines representing the binary code E1: Active low enable Input E0: Active low output indicating none of the inputs is high 14

19 Digital Logic Design / Logic Design & Switching Theory Lab Session 07 GS: Active low output indicating any of the inputs is high VCC and GND: Supply connections lines 7447 BCD to Seven Segment Driver 7447 IC is particularly used to drive common-anode Seven Segment displays. Its input is a BCD number and output drives a seven segment display. Refer to appendix A for IC pin configuration. Function of various pins of these ICs is described below: A, B, C, D: Active high inputs representing BCD digits (D being the MSB). OA through OG: Active low outputs to drive segments a through g of the display. RBI: Ripple Blanking Input. Turns off all the segments if kept low, provided that LT is kept high and all other inputs (A, B, C, D, BI) are kept low. Should be kept high otherwise. BI / RBO: Wire-AND logic serving as a Blanking Input and / or Ripple Blanking Output. o BI: Turns off all the segments if low. o RBO: Goes to a low level (response condition) along with other outputs, when RBI and inputs A, B, C, and D are low with LT input at high level. LT: Lamp Test input. Tests whether all segments are working or not. Illuminates all segments if kept low, provided that BI is kept high. Should be kept high otherwise. VCC and GND: Supply connections lines Seven Segment Displays A Seven Segment Display consists of seven light-emitting segments. The segments are designated by letters a through g (see figure 9.1). By illuminating various combinations of segments, the numerals 0 through 9 can be displayed. Seven Segment Displays are commonly constructed with light-emitting diodes (LEDs) and with liquid-crystal displays (LCDs). LEDs generally provide greater illumination levels but require much greater power than LCDs. An LED display can be a common-anode type or common cathode type. In common anode type, a high voltage is applied at the common terminal of the display and low voltage is applied at a segment s terminal for illumination. In the common-cathode type, a low voltage is applied at the common terminal of the display and high voltage is applied at a segment s terminal for illumination. a f g b e d c Figure 7.1: Seven Segment Display 15

20 Digital Logic Design / Logic Design & Switching Theory Lab Session 07 IMPLEMENTATION AND OBSERVATIONS You are required to display the outputs of a encoder IC on a seven segment display. The circuit is given in figure Make connections as shown in figure 7.2. (refer to appendix A for IC pin configurations). 2 Select any input from IC and observe the corresponding decimal code being displayed on the seven segment. EXERCISES Octal to Binary Priority Encoder 0 E1 Vcc 5 V GS 1 1 E0 2 3 A2 0 4 A1 5 A0 6 7 GND 0 V 7447 BCD to Seven Segment Decoder LT BI RBI D C B A GND Figure 7.2: Circuit for displaying encoders output on 7-segment display 1. Perform the Lamp Test for the designed circuit and write your observations. 2. How can you use 7447 IC to drive a common-cathode display? Vcc OA OB OC OD OE OF OG 5V a b c d e f g Seven Segment Display g f a b e d 5 V c dot 330 Ω 16

21 Digital Logic Design / Logic Design & Switching Theory Lab Session 08 OBJECT Lab Session 08 Testing different modes of JK flip flop and implementing a modulo-4 asynchronous up-counter using JK flip flops COMPONENTS AND APPARATUS REQUIRED 1. Digital logic trainer board or the following components: Bread board, 5 V - Power Supply, Multimeter, LEDs with Resistors, Switches 2. Logic probe 3. Connecting wires 4. Following ICs and their datasheets or pin configurations: 7473 / 7476 JK Flip-Flop THEORY Flip-Flop A flip-flop circuit can maintain a binary state indefinitely (as long as the power is delivered to the circuit) until directed by an input signal to switch states. The major differences among various types of flip-flops are in the number of inputs they possess and in the manner in which the inputs affect the binary state. JK Flip-Flop JK flip flop is an edge triggered device. A typical JK flip flop has three inputs: J, K and a clock input. The flip-flop can be either positive or negative edge triggered. The output Q is available in complemented form as well. PRE PRE J Q J Q J Q CLK K _ Q CLK K _ Q CLK K _ Q CLR CLR (a) (b) (c) Figure 8.1: Symbol for JK flip-flop. (a) Positive-edge triggering. (b) Active low Preset (PRE) and Clear (CLR) with positiveedge triggering. (c) Active low Preset (PRE) and Clear (CLR) with negative-edge triggering 17

22 Digital Logic Design / Logic Design & Switching Theory Lab Session 08 Besides the usual inputs and output, most of the flip-flop IC also possess two asynchronous inputs, namely Preset and Clear. These inputs are usually active low. If used, Preset and Clear inputs keep the flip-flop in set and reset state respectively, irrespective of the other inputs. Both of these inputs cannot be used simultaneously, otherwise they will bring the flip-flop in unstable state / 7476 Dual JK Flip Flop Both the ICs 7473 and 7476 are similar in functionality except for one difference. The flip-flops in 7473 have only one type of active low asynchronous input, which is the Clear input, whereas the flip-flops in 7476 have both Preset and Clear inputs. Both these ICs have negative edge triggered flip-flops. Refer to appendix A for IC pin configuration Function of various pins of this IC is described below: 1CLK, 2CLK: Negative edge triggered clock inputs for FF1 and FF2 respectively. 1PRE, 2PRE(for 7476 only): Active low preset inputs for FF1 and FF2 respectively. 1CLR, 2CLR: Active low clear inputs for FF1 and FF2 respectively. 1J, 2J: Active high J inputs for FF1 and FF2 respectively. 1K, 2K: Active high K inputs for FF1 and FF2 respectively. 1Q, 2Q: Active high outputs for FF1 and FF2 respectively. 1Q`, 2Q`: Active low outputs for FF1 and FF2 respectively. VCC and GND: Supply connections lines Digital Counters A digital counter is a set of flip-flops whose states change in response to pulses applied at the input to the counter. Every counter resets after a certain number of clock pulses. Thus, as it name implies, a counter is used to count pulses. An n stage counter can count up to a maximum of 2 n states. n is equal to the number of flip-flops required for the construction of counter. Modulus Counters The number of input pulses that causes a counter to reset to its initial count is called the modulus of the counter. Thus, the modulus equals to total number of distinct states (counts), including zero that a counter can store. A binary counter with n stages is a modulo-2 n (or MOD-2 n ) counter. The largest count a mod-n counter can achieve is N-1, i.e. a mod-n counter never reaches the binary number equal to its modulus. N is always equal to or less than 2 n. Counters can be classified as: Synchronous Counters, which are clock driven. All the flip-flops are driven by a single clock. Asynchronous Counters, which are event driven. Clock input is given to the first flip-flop only. Rest of the flip-flops are driven by their preceding flip-flops. 18

23 Digital Logic Design / Logic Design & Switching Theory Lab Session 08 Mod-4 Asynchronous Up Counter The number of flip-flops required to construct a mod-4 counter is 4. This counter will count from 0 to 3, a total of 4 distinct states. TESTING PROCEDURE AND OBSERVATIONS 7473 / 7476 Dual JK Flip Flop 1 Make Vcc and Gnd supply connections. 2 Connect the CLK input to some clock source or a switch. 3 Apply different combinations of 1s and 0s at inputs J, K, Preset and Clear. 4 Observe the output and record your observations in the following table. *ignore if 7473 IC is being used MOD-4 Asynchronous Counter CLK PRE* CLR J K Q Make connections as shown in figure 8.2. (refer to appendix A for IC pin configurations). 2 Observe the binary values at the outputs of the two flip flops with the incoming clock pulses. 1 1 From clock source J PRE Q J PRE Q K CLR Q K CLR Q Q0 Figure 8.2: MOD-4 Asynchronous Counter Q1 19

24 Digital Logic Design / Logic Design & Switching Theory Lab Session 08 EXERCISES 1. Draw the timing diagram for MOD-4 counter designed in this laboratory session. 2. Simulate MOD-5 asynchronous counter using Electronic Workbench or any other simulation tool. The number of flip-flops required to construct a MOD-5 counter is 3. This counter will count from 0 to 4, a total of 5 distinct states. Since a 3-stage counter can count up to 8 states at maximum, a NAND gate is used to reset it after 5 clock pulses. Attach hardcopy of the simulated circuit/output here. 3. Draw the timing diagram for MOD-5 counter simulated in exercise 2. 20

25 Digital Logic Design / Logic Design & Switching Theory Lab Session 09 OBJECT Lab Session 09 Experimenting with decade counter IC. COMPONENTS AND APPARATUS REQUIRED 1. Digital logic trainer board or the following components: Bread board, 5 V - Power Supply, Multimeter, LEDs with Resistors, Switches 2. Logic probe 3. Connecting wires 4. Following ICs and their datasheets or pin configurations: 7490 decade counter THEORY 7490 Decade Counter 7490 decade counter can generate the following two sequences: 1. BCD sequence: In this case output QA is connected to input B, external clock is applied to input A 2. Bi-quinary sequence: In this case output QD is connected to input A, external clock is applied to input B Refer to appendix A for IC pin configuration. Function of various pins of this IC is described below: Input A, Input B: Positive edge triggered clock inputs. QA, QB, QC and QD: Active high outputs. R91, R92, R01, R02: Active high reset inputs. These resets are activated as follows: VCC and GND: Supply connections lines. TESTING PROCEDURE AND OBSERVATIONS 1 Make Vcc and Gnd supply connections. 2 Disable all RESET inputs. Reset Inputs Output R01 R02 R91 R92 QD QC QB QA H H L X L L L L H H X L L L L L X X H H H L L H X L X L COUNT L X L X COUNT L X X L COUNT X L L X COUNT 21

26 Digital Logic Design / Logic Design & Switching Theory Lab Session 09 3 Connect input A and input B according to the connections indicated in the previous section to generate BCD count and then bi-quinary count. 4 Observe the output in each case and record your observations given in the following table. BCD Count Clock QD QC QB QA Clock Pulse Pulse Bi-quinary Count QD QC QB QA EXERCISES 1. Enable the RESET inputs RO1 and RO2 (keeping R91 and R92 disabled) and write your observations below: 2. Enable the RESET inputs R91 and R92 (keeping R01 and R02 disabled) and write your observations below: 3. Enable all the RESET inputs R01, R02, R91 and R92 and write your observations below: 22

27 Digital Logic Design / Logic Design & Switching Theory Lab Session 10 OBJECT THEORY Digital Clock Lab Session 10 Designing and simulating the seconds section of a digital clock A digital clock is a time keeping circuit that displays seconds, minutes and hours. For seconds section of a digital clock, a MOD-60 counter needs to be designed. A simple way to do this is to design MOD-10 and MOD-6 counters separately and then cascade them. Generating Clock (Square Wave) Signals for Sequential Circuits in Electronic Workbench Most sequential circuits require trigger/pulse for the functioning of their memory elements. This trigger is merely a 0 to1 or 1 to 0 signal transition at the input where it needs to be applied. This can be achieved by simply connecting a switch which can toggle between 0 and 1. For continuous pulse generation a proper clock source is needed. In EWB, this can be achieved via function generator (in Instruments Parts Bin) or more easily as follows: 1. From the Sources Parts Bin, drag and drop Clock on the design area. Double click the Clock to reveal the properties dialog box, where frequency, duty cycle and voltage of the signal can be chosen. 2. Connect the negative end of the component to the ground. 3. Positive end can be connected to the point where the clock signal needs to be applied. You can connect an indicator here to view the generated signal. PROCEDURE In this lab session we will use two 7490 ICs to design MOD-10 and MOD-6 counters. 1. For MOD-10 counter, connect a 7490 IC in BCD count mode (refer to lab session 9). Disable all RESET inputs and apply clock at input A as illustrated is the previous section. Set the frequency of the clock to 1 Hz. 2. Connect another 7490 IC in BCD mode. To convert it to MOD-6 counter, connect R01 to QB and R02 to QC. This will activate the resets of 7490 when it reaches the count of 6. Disable the other two RESET inputs R91 and R92. Now connect QD of the MOD-10 counter created in the last step to the clock input (input A) of this IC. QD is the MSB of the MOD-10 count and it goes from 1 to 0 only when the counter resets after 9, thus providing the negative edge to increment the MOD-6 counter. 23

28 Digital Logic Design / Logic Design & Switching Theory Lab Session 10 Here also a seven segment display can be connected to view the outputs. Now collectively this circuit works as a MOD-60 counter. 3. The output of this circuit can be viewed on seven segment displays. Two kinds of 7 segment displays are available in EWB. One takes four BCD inputs directly and the other one takes seven inputs for the seven segments. The later one is connected via a BCD to seven segment converter. For our application the former one is simpler to use as it provides the BCD to seven segment conversion internally. EXERCISES 1. Design the hours section of a digital clock on EWB. The clock should be a 24 hour clock. Attach hardcopy of the simulated design here. 24

29 Digital Logic Design / Logic Design & Switching Theory Lab Session 11 OBJECT Lab Session 11 Experimenting with bidirectional universal shift register IC COMPONENTS AND APPARATUS REQUIRED 1. Digital logic trainer board or the following components: Bread board, 5 V - Power Supply, Multimeter, LEDs with Resistors, Switches 2. Logic probe 3. Connecting wires 4. Following ICs and their datasheets or pin configurations: bit bidirectional universal shift register THEORY Shift Registers A Register is a set of flip-flops used to store binary data. A register, which is capable of shifting its binary information either to the right or left, is called a shift register. The logical configuration of a register consists of a chain of flip-flops connected in cascade, with the output of one flip-flop connected to the input of next flip-flop. All flip-flops receive a common clock pulse, which causes the shift from one stage to the next. Universal Bidirectional Shift Registers A bi-directional shift register is one whose bits can be shifted from left to right or from right to left. A universal shift register is a bi-directional register whose input can be in either serial or parallel form and whose output can be in either serial or parallel form Bit Bidirectional Universal Shift Register The register provides parallel as well as serial loading in both directions. A, B, C, and D are inputs for parallel loading, whereas SR and SL are inputs for serial loading with right or left shifting respectively. S1 and S0 are used to select the loading mode. Refer to appendix A for IC pin configuration. Function of various pins of this IC is described below: A, B, C and D: Active high inputs for parallel loading. QA, QB, QC and QD: Active high outputs. S0 and S1: Active high mode control inputs. The following table shows combinations of S1 and S0 to enable various modes. 25

30 Digital Logic Design / Logic Design & Switching Theory Lab Session 11 S1 S0 Clock Action 0 0 x No change 0 1 Shift right 1 0 Shift left 1 1 Parallel load SR: Active high serial input for right shifting. SL: Active high serial input for left shifting. CLR: Active low clear input. CLK: Positive edger triggered cock input. VCC and GND: Supply connections lines. TESTING PROCEDURE AND OBSERVATIONS 1 Make Vcc and Gnd supply connections. 2 Connect the CLK input to some clock source or a switch. 3 Disable CLR input. 4 Apply different combinations of 1s and 0s at inputs J, K, Preset and Clear. 5 Observe the output and record your observations given in the following table. S1 S0 SL SR A B C D QA QB QC QD EXERCISES 1. Show connections of to convert it into a ring counter with right shifting. 26

31 Digital Logic Design / Logic Design & Switching Theory Lab Session 12 OBJECT Lab Session 12 Designing and implementing a 3-bit even sequence synchronous up counter using T flip flops COMPONENTS AND APPARATUS REQUIRED 1. Digital logic trainer board or the following components: Bread board, 5 V - Power Supply, Multimeter, LEDs with Resistors, Switches 2. Logic probe 3. Connecting wires 4. Following ICs and their datasheets or pin configurations: 7473 / 7476 JK Flip-Flop THEORY As mentioned in Lab session 08, synchronous counters are clock driven counters. It is a sequential circuit, the design of which involves the following steps: 1. Generate a state diagram and/or a state table from the statement of the problem. 2. Select the type of flip-flop for the circuit and generate the flip flop input equations needed for the required state transitions 3. Derive logic equations for generation of the output from the inputs and current state. 4. Generate a logic diagram of the circuit using ANDs, ORs, inverters, and flip flops. 3-bit Even Sequence Synchronous Up Counter A 3-bit even sequence synchronous up counter will count through the following sequence: 0, 2, 4, 6 and repeat. The number of flip-flops required to construct such a counter is 3. The state of the flip flops is the final output of the circuit, therefore no explicit output equations need to be generated. T Flip-Flop PRE CLK T CLR Q _ Q Q t T Q t Q t Q t+1 T (a) (b) (c) Figure 12.1: T Flip Flop. (a) Graphical symbol. (b) Characteristic table. (c) Excitation table 27

32 Digital Logic Design / Logic Design & Switching Theory Lab Session 12 T flip-flop (toggle flip flop) has a single input T. If the T input is high, the T flip-flop changes state (toggles) whenever the clock input strobes. If the T input is low, the flipflop holds the previous value. This behavior is described by the characteristic table and transition table given in figure Characteristic equation of T flip-flop is: Q (t+1) = T Q t DESIGNING THE COUNTER State Diagram State Table The design requires three flip flops: FF-0, FF-1 and FF-2. Present State Next State Flip flop inputs Q 2t Q 1t Q 0t Q 2(t+1) Q 1(t+1) Q 0(t+1) FF-2, T 2 FF-1, T 1 FF-0, T Input Equations T 2 =, T 1 =, T 0 = 28

33 Digital Logic Design / Logic Design & Switching Theory Lab Session 12 Circuit Diagram IMPLEMENTATION PROCEDURE AND OBSERVATIONS 1. Implement the circuit using digital ICs on a bread board (refer to appendix A for IC pin configurations). T flip flop can be obtained by connecting together the two inputs J and K, of JK flip flop. 2. Make Vcc and Gnd supply connections. 3. Connect the CLK input to some clock source or a switch. 4. Observe the output even value sequence of the circuit. 29

34 Digital Logic Design / Logic Design & Switching Theory Lab Session 13 OBJECT Lab Session 13 Designing and implementing synchronous sequential circuit for the given state diagram using D flip-flop. GIVEN STATE DIAGRAM 0/1 1/0 0/ /0 0/1 0/1 1/0 01 1/0 11 Figure 13.1: State Diagram COMPONENTS AND APPARATUS REQUIRED 1. Digital logic trainer board or the following components: Bread board, 5 V - Power Supply, Multimeter, LEDs with Resistors, Switches 2. Logic probe 3. Connecting wires 4. Following ICs and their datasheets or pin configurations: 7474 D Flip-Flop 7408 Quad 2-input AND Gate 7432 Quad 2-input OR Gate 7404 Hex Inverter THEORY Sequential Circuits In Sequential Circuits, the output not only depends on the present inputs, but also on previous states of the circuit. These circuits use memory elements (latches, flip-flops) and the binary information stored in the memory elements at any given time defines the state of the sequential circuit. Refer to lab session 12 for the steps involved in the design of synchronous sequential circuit. 30

35 Digital Logic Design / Logic Design & Switching Theory Lab Session 13 D Flip-Flop D flip-flop is also called transparent flip-flop as it simply transfers the input data to the output. This behavior is described by the characteristic table and transition table given in figure CLK D PRE CLR Q _ Q Q t D Q t Q t Q t+1 D (a) (b) (c) Figure 13.2: D Flip Flop. (a) Graphical symbol. (b) Characteristic table. (c) Excitation table Characteristic equation of D flip-flop is: Q (t+1) = D DESIGNING SYNCHRONOUS SEQUENTIAL CIRCUIT FOR THE GIVEN STATE DIAGRAM State Table The given state diagram has four states, so two D flip-flops (FF-0, FF-1) will be required. Present State Input Next State Output Flip flop inputs Q 1t Q 0t x Q 1(t+1) Q 0(t+1) z FF-1, D 1 FF-0, D

36 Digital Logic Design / Logic Design & Switching Theory Lab Session 13 Input and Output Equations D 1 =, D 0 =, z = Circuit Diagram 32

37 Digital Logic Design / Logic Design & Switching Theory Lab Session 13 IMPLEMENTATION PROCEDURE AND OBSERVATIONS 1. Implement the circuit using digital ICs on a bread board (refer to appendix A for IC pin configurations). 2. Make Vcc and Gnd supply connections. 3. Connect the CLK and the CLR inputs to input switches (preferably push buttons). 4. Apply 0 to the input x. 5. Enable CLR input momentarily to clear all the flip flops. 6. Apply CLK through the switch and record your observations in the following table. 7. Apply 1 to the input x. 8. Enable CLR input momentarily to clear all the flip flops. 9. Apply CLK through the switch and record your observations in the following table. x = 0 x = 1 Clock Pulse # Q 1 Q 0 Output z Clock Pulse # Q 1 Q 0 Output z Initial value 0 0 Initial value Alternatively, connect the CLK input to a continuous clock source. Now output will change continuously. These outputs can be viewed using an oscilloscope. 33

38 Digital Logic Design / Logic Design & Switching Theory Lab Session 14 OBJECT Lab Session 14 Designing and simulating a finite string recognizer to recognize the sequence 010. THEORY Finite String Recognizer A finite string recognizer or sequence detector is a sequential machine in which the output is asserted every time the desired sequence is detected. It accepts as input a string of bits: either 0 or 1. Its output goes to 1 when a target sequence has been detected. There are two basic types: Non-overlap: The final bits of one sequence cannot overlap with the starting bits of another sequence. Example: For 010 detector, if the input sequence is , the output sequence will be Overlap: The final bits of one sequence can be the start of another sequence. Example: For 010 detector, if the input sequence is , the output sequence will be Sequential Circuit Design The procedure for synchronous sequential circuit design mentioned in Lab session 08 does not involve state assignment and state reduction. Including these two stpes, the complete design procedure is as follows: 1. Generate a state diagram from the statement of the problem. 2. Minimize the number of states using any state reduction technique (e.g. pair chart method). 3. Assign binary states values to the reduced states and generate reduced state table. 4. Select the type of flip-flop for the circuit and generate the flip flop input equations needed for the required state transitions 5. Derive logic equations for generation of the output from the inputs and current state. 6. Generate a logic diagram of the circuit using ANDs, ORs, inverters, and flip flops. 34

39 Digital Logic Design / Logic Design & Switching Theory Lab Session 14 DESIGNING FINITE STRING RECOGNIZER FOR THE SEQUENCE 010 The finite string recognizer for sequence 010 is overlapping / non-overlapping type. State Diagram State Reduction 35

40 Digital Logic Design / Logic Design & Switching Theory Lab Session 14 Reduced State Table Number of flip flops required for the design: Type of flip flops used: Input and Output Equations 36

41 Digital Logic Design / Logic Design & Switching Theory Lab Session 14 Circuit Diagram Implementation Procedure and Observations 1. Implement the circuit using Electronic Workbench or any other simulation software. Connect a switch (preferably a push button) for applying input sequence. 2. Apply the given input sequences and record the corresponding output sequences in the following table: Input Sequence Expected Output Sequence Observed Output Sequence

42 Digital Logic Design / Logic Design & Switching Theory Lab Session 15 OBJECT Lab Session 15 Programming EEPROM as a hex to seven-segment driver. COMPONENTS AND APPARATUS REQUIRED 1. Digital logic trainer board or the following components: Bread board, 5 V - Power Supply, Multimeter, Switches 2. Logic probe 3. Connecting wires 4. Seven Segment Display (Common Anode Type) with resistor 5. Universal IC programmer 6. Any EEPROM IC with datasheet or pin configuration THEORY A large number of fixed function ICs are available from a variety of manufacturers at reasonably low cost. However, some designs are too complex to be implemented using fixed function ICs. Programmable logic devices (PLDs) are frequently used in such scenarios. A PLD is an IC that is user configurable and is capable of implementing logic functions. Some commonly used simple PLDs are ROMs (read only memories), PAL (programmable logic array) devices and PLA (programmable logic array) devices. When used for implementing logic functions, PLDs are actually working as lookup tables for code conversions and logic functions. The memory addresses in such applications are actually the binary input to the logic function and the logic outputs are stored at the corresponding memory locations. A seven-segment display consists of seven light-emitting segments. The segments are designated by letters a through g. By illuminating various combinations of segments, the numerals 0 through F (hex) can be displayed. For details on segment labels and types refer to lab session 07. When an EEPROM IC is used as a hex to seven-segment driver, the IC addresses represent the binary-coded hex values (logic input) and the output (data) lines drive the seven-segment display. Table 15.1 shows a function table for such a decoder, based on the illuminated segments as shown in figure Figure 15.1: Illumination of hex numerals 0 through F, on a seven segment display 38

43 Digital Logic Design / Logic Design & Switching Theory Lab Session 15 Hex Address lines of the EPROM Seven segments Contents to be digit stored in EPROM A 3 A 2 A 1 A 0 a B c d e f g (in hex) E A B C D E F PROCEDURE Table Program the EEPROM using the Universal IC programmer according to the values given in table Make supply connections of the EEPROM IC. 3. Connect the least significant four address (input) lines of the EEPROM to the input switches; ground the remaining address lines. 4. Connect the least significant 7 data (output) lines to the segments a through g of the seven segment display. 5. Other common pins found in EEPROMs are OE (output enable), CE (chip enable) and WE (write enable). Of these pins WE is kept OFF (disabled), remaining two are enabled. 6. Apply address form 0H to FH through the switch and observe the output on the seven-segment display. 39

44 Digital Logic Design / Logic Design & Switching Theory Appendix A Appendix A PIN DIAGRAMS OF THE ICS REQUIRED FOR THE LABORATORY SESSIONS Consult the TTL/IC data book for internal diagrams and electrical characteristics of these ICs Quad 2-Input NAND 7402 Quad 2-Input NOR 7404 Hex Inverter 7408 Quad 2-Input AND 7410 Triple 3-Input NAND 7411 Triple 3-Input AND 7421 Dual 4-Input AND 7432 Quad 2-Input OR 7447 BCD-to-Seven Segment Decoder (15V, O.C.) 40

45 Digital Logic Design / Logic Design & Switching Theory Appendix A 7448 BCD-to-Seven Segment 7473 Dual JK Flip-Flop 7474 Dual D-Type Flip-Flop Decoder (2kΩ pull-up output) 7476 Dual JK Flop-Flop Bit Binary Full Adder 7486 Quad 2-Input with Fast Carry Exclusive OR 7490 Decade Counter to-8 Line to-4 Priority Decoder / Demultiplexer Encoder 41

46 Digital Logic Design / Logic Design & Switching Theory Appendix A to-3 Line to-1 Line Data Quad 2x1 Data Priority Encoder Selector / Multiplexer Selector / Multiplexer Bit Bidirectional Octal Bus Transceivers Universal Shift Register (3-State) 42

47 Digital Logic Design / Logic Design & Switching Theory Appendix B Battery Appendix B COMMON COMPONENTS (BESIDE LOGIC ICS) USED IN BUILDING CIRCUITS Battery supplies a voltage which drives an electric current round the circuit from the positive (+) terminal of the battery to its negative ( ) terminal. Voltage is measured in volts (V) and current in amperes (A). Circuit sign Connecting Wires Figure B.1: Battery (9V, type PP3) A connecting wire allows current to flow through it easily because it is made of copper which is a good electrical conductor. Insulators like PVC (polyvinyl chloride - a plastic) and enamel are used to cover connecting wires. Circuit sign Resistors A resistor reduces the current in a circuit because of its resistance. Color Coded Resistor Figure B.2: Connecting wire (PVC-covered tinned copper wire 1/0.6 mm, i.e. 1 wire of diameter 0.6 mm) The colored bands give the resistance in ohms. Circuit sign Figure B.3: Color coded resistor (carbon, ½ watt) 43

48 Digital Logic Design / Logic Design & Switching Theory Appendix B To distinguish left from right there is a gap between the C and D bands. Band A is the first significant figure of component value (left side) Band B is the second significant figure Band C is the decimal multiplier Band D if present, indicates tolerance of value in percent (no color means 20%) The values are interpreted as given in table B.1. Color Significant Multiplier Tolerance figures Black 0 x Brown 1 x 10 1 ±1% Red 2 x 10 2 ±2% Orange 3 x Yellow 4 x Green 5 x 10 5 ±0.5% Blue 6 x 10 6 ±0.25% Violet 7 x 10 7 ±0.1% Gray 8 x 10 8 ±0.05% White 9 x Gold - x % Silver - x % None % Table B.1: Standard color codes For example, a resistor with bands of yellow, violet, red and gold will have first digit 4, second digit 7, followed by 2 zeros: 4700 ohms. Gold signifies that the tolerance is ±5%, so the resistance could lie anywhere between 4465 and 4935 ohms. Variable Resistor Variable resistors are used when it is necessary to dynamically change the resistance in order to control the current in a circuit, and may also be used when a voltage divider is needed. For example, they are used to control the volume in a radio or the brightness of a lamp. Variable resistors consist of a resistance track with connections at both ends and a wiper which moves along the track as you turn the spindle (see figure B.4). The track may be made from carbon, cermet (ceramic and metal mixture) or a coil of wire (for low resistances). The track is usually rotary but straight track versions, usually called sliders, are also available. Figure B.4: Variable resistor They are specified by their maximum resistance, linear or logarithmic track, and their physical size. The standard spindle diameter is 6mm. The resistance and type of track are marked on the body (for example: 4K7 LIN means 4.7 k linear track ; 1M LOG means 1 M logarithmic track). Linear (LIN) track means that the resistance changes at a constant rate as you move the wiper. This is the standard arrangement which is assumed if a project does not specify the type of 44

49 Digital Logic Design / Logic Design & Switching Theory Appendix B track. Logarithmic (LOG) track means that the resistance changes slowly at one end of the track and rapidly at the other end, so halfway along the track is not half the total resistance. This arrangement is used for volume (loudness) controls because the human ear has a logarithmic response to loudness so fine control (slow change) is required at low volumes and coarser control (rapid change) at high volumes. It is important to connect the ends of the track the correct way round, if turning the spindle increases the volume rapidly followed by little further change you should swap the connections to the ends of the track. Variable resistors may be used as a rheostat with two connections (the wiper and just one end of the track) or as a potentiometer with all three connections in use. Miniature versions called presets are made for setting up circuits which will not require further adjustment. The terminal in the middle is the wiper. When a potentiometer is used as a voltage divider, all three terminals are wired separately. But when a potentiometer is used strictly as a rheostat, only need two connections are needed. Either side of the variable resistor may be attached to the circuit board, with the remaining side unattached or grounded, but it is important to always connect the wiper. The wiper must be grounded or affixed to the voltage source. For example, the left terminal of the pot may be attached to the voltage source and the wiper to ground, or the right terminal may be substituted for the left. Changing the connection to a different side alters the direction the knob must be turned in order to achieve maximum resistance. The unused side of the variable resistor may be left unconnected, wired to an unused portion of the breadboard, or wired to ground. Circuit sign for Rheostat Circuit sign for Potentiometer Figure B.5: Potentiometer and Rheostat Circuit sign for Preset Figure B.6: Preset Light Dependent Resistor (LDR) When light falls on it, its resistance becomes small; in the dark resistance is high. Circuit sign Figure B.7: Photocell or light dependent resistor (LDR) 45

50 Digital Logic Design / Logic Design & Switching Theory Appendix B Capacitors A capacitor stores electricity; the greater the capacitance the more does it store. Capacitance values are measured in microfarads shortened to F or, less correctly, to mfd. On a capacitor, 0.1 F may be marked as.l mfd and 0.01F as 10n. The greatest voltage it can stand is also shown, e.g. 30V. Circuit sign Electrolytic Capacitor Figure B.8: Capacitor (disc ceramic type) Electrolytic capacitor stores electricity: values usually larger than 1F. Greatest voltage marked on it. Must be connected the correct way round. Circuit sign Variable Capacitor Figure B.9: Electrolytic Capacitor It varies the capacitance in a circuit by moving one set of metal plates in or out of a fixed set when the spindle is rotated. The sets of plates are separated by sheets of an insulator (also called a dielectric). Circuit sign Figure B.10: Variable Capacitor ( microfarads) Loud Speaker It changes electric currents into sound. Circuit sign Aerial Changes radio waves into electric currents. Figure B.11: Loud Speaker (2.5 inch, 25 to 80 ohms) Circuit sign 46 Figure B.12: Ferrite rod aerial

51 Digital Logic Design / Logic Design & Switching Theory Appendix B Light Emitting Diode (LED) An LED lets current flow in one direction but not in the other. When it conducts, light is emitted. Must have a current limiting resistor in series with it. The cathode lead is nearest the flat and may be shorter than the anode lead (but this is not always so). The arrow on the sign shows the conducting direction Circuit sign Transistor Figure B.13: LED (light emitting diode) Transistor amplifies small currents into much larger copies. It acts as a very fast switch. It must be correctly connected with a positive voltage to the collector Circuit sign Switches Figure B.14: Transistor (npn) (e.g. ZTX300 or 2N3705) A switch is an electrical component that can break an electrical circuit, interrupting the current or diverting it from one conductor to another. SPDT Switch Connects terminal A to terminal B or C, i.e. it is a change-over switch. Circuit sign DIP Switch Figure B.15: Miniature slide switch SPDT (single pole double throw) A DIP switches are manual electric switches that are packaged in a group in a standard dual inline package (DIP) (the whole package unit may also be referred to as a DIP switch in the singular). It provides an easy way of inputting values to a digital circuit. The Dip Switch requires a Resistor Network Pack for its operation. The connection configuration is shown in figure B.17. Resistor Network Pack has a pin configuration that must be followed. The side of the resistor pack with the print is the front. At the far left end of the component there is a black circle. This pin must be connected to the power 47

52 Digital Logic Design / Logic Design & Switching Theory Appendix B supply. The other pins do not required to be connected to power. Once the dipswitch and resistor pack is placed on the board, the next thing that needs to be done is to connect wires from all the columns connected to the dip-switch to the ground rail. This way one side of the dip-switch is tied to ground. (a) (b) Figure B.16: (a) Resistor Network Pack, (b) DIP Switch The dip-switch can now be used to input values. When the switch is pushed to one side it disconnects the top column from the bottom column on the breadboard. Voltage appears on the column due to the pin of the resistor pack pin connected to that column. When switch is pushed to the other side, the dip-switch connects the top column to the bottom column. Since the top column along with the pin of the resistor pack is tied to ground, no voltage appears on the top column. The idea of the dip-switch is that when the dip switch is open, or there is no connection between the top and bottom column, current flows from the resistor pack to the electrical component. However, when the dip-switch is closed, or the top and bottom column are tied together, current flows from the resistor pack to ground rather than to the electrical component. This resistor-pack/dip-switch circuit should be placed as far to the left side of the breadboard as possible to leave space for other components. Push Button A Push Switch or Push to make switch, allows electricity to flow between its two contacts when held in. When the button is released, the circuit is broken. Other forms are push to break which, does the opposite. Relay Figure B.17: Circuit Connections of DIP switch with resistor network pack A relay is an electrically operated switch. Relays are used where it is necessary to control a circuit by a low-power signal (with complete electrical isolation between control and controlled circuits), or where several circuits must be controlled by one signal. These devices use a solenoid to control a heavy-duty switch. The wiring for the solenoid may require only 0.5 amps to activate, while the switch it controls carries 10 to 30 amps. 48

53 Digital Logic Design / Logic Design & Switching Theory Appendix B A Solid State Relay (SSR) is an electronic switch that works without moving parts. Here the low current control and a high current load are isolated optically or with transformers. They are activated by AC control signals or DC control signals from Programmable logic controller (PLCs), PCs, Transistor-transistor logic (TTL) sources, or other microprocessor and microcontroller controls. Since relays are switches, the terminology applied to switches is also applied to relays. A relay will switch one or more poles, each of whose contacts can be thrown by energizing the coil in one of three ways: Normally-open (NO) contacts connect the circuit when the relay is activated; the circuit is disconnected when the relay is inactive. Normally-closed (NC) contacts disconnect the circuit when the relay is activated; the circuit is connected when the relay is inactive. Change-over (CO), or double-throw (DT), contacts control two circuits: one normally-open contact and one normally-closed contact with a common terminal. (4) (2) NC Energizing (1) Coil Common (3) (5) NO Circuit sign For circuit connections, consider figure B.18, pins 2 and 5 seem to go to the coil. Pin 1 is the common pin. Pin 4 is the NC (normally closed) pin and pin 3 is the NO (normally open) pin. Connect the control device to the two solenoid pins (pins 2 and 5) of the relay. Supplying a small voltage to these two pins will turn the relay switch on or off. The lower the better until you are sure what voltage the relay can take (can start from 3V or 5V). When the relay is not energized, there should be continuity between pins 1 and 4. When the relay is energized, there should be continuity between pins 1 and 3. Connect the negative terminal of the battery to pin 1. This pin brings the power into the relay for powering the external device, which could be the electric motor of a fan or light. If the external device should only be on when the relay is energized, connect a wire from the negative terminal of the external device to pin 3 of the relay. If the external device should be on at all times except when the relay is energized, connect to pin 4 instead of pin 3. Complete the circuit by connecting a wire from the positive terminal of the external device to the positive terminal of the battery. Integrated Circuits (ICs) Figure B.18: Relay Transistors, diodes, resistors and capacitors are connected together on a tiny chip of silicon (sand is mostly silicon oxide) to give any desired circuit, e.g. a multistage amplifier; an astable, bistable or monostable multivibrator; a counter; a logic gate for a computer; several stages of a TRF (tuned radio frequency) radio. (a) Circuit sign (b) Circuit sign Figure B.19: Integrated circuits ( chips ) (a) Can type (b) Dual in line (d.i.l) type (14 or 16 pins) 49

54 Digital Logic Design / Logic Design & Switching Theory Appendix B They must be correctly connected. Pin 1 is next to the tag in the can type and on the d.i.l. type it is identified from the notch or small dot on the case. TTL and CMOS are two technologies in which logic gate ICs are available. CMOS chips (standing for Complementary Metal Oxide Semiconductors and pronounced see-moss ) need special care. CMOS (4000 series) General Characteristics Supply: 3 to 15V, small fluctuations are tolerated. Inputs have very high impedance (resistance), this is good because it means they will not affect the part of the circuit where they are connected. However, it also means that unconnected inputs can easily pick up electrical noise and rapidly change between high and low states in an unpredictable way. This is likely to make the chip behave erratically and it will significantly increase the supply current. To prevent problems all unused inputs MUST be connected to the supply (either +Vs or 0V), this applies even if that part of the chip is not being used in the circuit. Outputs can sink and source only about 1mA if you wish to maintain the correct output voltage to drive CMOS inputs. If there is no need to drive any inputs the maximum current is about 5mA with a 6V supply, or 10mA with a 9V supply (just enough to light an LED). To switch larger currents you can connect a transistor. Fan-out: one output can drive up to 50 inputs. Gate propagation time: typically 30ns for a signal to travel through a gate with a 9V supply, it takes a longer time at lower supply voltages. Frequency: up to 1MHz, above that the 74 series is a better choice. Power consumption (of the chip itself) is very low, a few µw. It is much greater at high frequencies, a few mw at 1MHz for example. Damage occurs if static charges build up on input pins when, for example, they touch insulating materials (e.g. clothes, plastic pen) in warm, dry conditions. 1. Keep the IC in the carrier in which it is supplied until it is inserted in the circuit. 2. Do not finger the pins or hold them in contact with an insulator. 3. Connect all unused inputs of the IC to either the positive or the negative of the battery, depending on the circuit. 74LS series TTL Characteristics Supply: 5V ±0.25V, it must be very smooth, a regulated supply is best. In addition to the normal supply smoothing, a 0.1µF capacitor should be connected across the supply near the chip to remove the 'spikes' generated as it switches state, one capacitor is needed for every 4 chips. Inputs 'float' high to logic 1 if unconnected, but do not rely on this in a permanent (soldered) circuit because the inputs may pick up electrical noise. 1mA must be drawn out to hold inputs at logic 0. In a permanent circuit it is wise to connect any unused inputs to +Vs to ensure good immunity to noise. Outputs can sink up to 16mA (enough to light an LED), but they can source only about 2mA. To switch larger currents you can connect a transistor. Fan-out: one output can drive up to 10 74LS inputs, but many more 74HCT inputs. Gate propagation time: about 10ns for a signal to travel through a gate. Frequency: up to about 35MHz (under the right conditions). Power consumption (of the chip itself) is a few mw. Building Circuits The circuit board shown in figure B.20 accepts ICs as well as separate components. It has 47 rows of 5 interconnected sockets on each side of a central channel across which d.i.l. ICs can be 50

55 Digital Logic Design / Logic Design & Switching Theory Appendix B fitted. A wire inserted in a socket in a certain row becomes connected to wires in any of the other 4 sockets in that row by a metal strip under the board. For example, wires in sockets B5, C5, D5, E5 and F5 are all joined. Metal strips under the board connect the sockets. Figure B.20: Circuit board The circuit board shown above accepts ICs as well as separate components. It has 47 rows of 5 interconnected sockets on each side of a central channel across which d.i.l. ICs can be fitted. A wire inserted in a socket in a certain row becomes connected to wires in any of the other 4 sockets in that row by a metal strip under the board. For example, wires in sockets B5, C5, D5, E5 and F5 are all joined. Metal strips under the board connect the sockets. There is a row of 40 interconnected sockets along the top of the board and a similar row along the bottom act as the positive and negative power supply rails (called bus bars ). Various makes of circuit board are available, some with vertically mounting removable panels for supporting controls. To make a connection push about 1 cm of the bare end of a wire (0.25 to 0.85 mm diameter) straight into the socket (not at an angle) so that it is gripped by the metal strip under the board. Do not use wires that are dirty or have kinked ends. Only put one wire in each socket. Bend leads on resistors etc., as shown in figure B.21 before inserting them in the board. Figure B.21: Placing various components on the circuit board 51

56 Digital Logic Design / Logic Design & Switching Theory Appendix B Bare the ends of connecting wire (PVC-covered tinned copper wire 0.6 mm diameter) by removing the insulation (PVC) either with wire strippers or using a pair of blunt-nosed pliers and a pair of side cutters as shown in figure B.22. With practice you should be able to judge just how much the side cutters have to be squeezed and pulled to remove the insulation without cutting the wire. Figure B.22: Stripping wire 52

57 Digital Logic Design / Logic Design & Switching Theory Appendix C Appendix C C.1 CLOCK GENERATION USING 555 TIMER IC The 555 timer is a versatile and widely used device which can be used effectively without understanding the function of each pin in detail. It can be configured in two different modes as either a monostable multivibrator (one-shot) or as an astable multivibrator (oscillator). An astable multivibrator has no stable state and therefore changes back and forth (oscillates) between two unstable states without any external triggering, hence can be used for clock generation of desired frequency and duty cycle. The circuit given in figure C.1 shows the connections of 555 timer in astable mode. Vcc R1 (7) (4) (8) RESET Vcc DISCH 555 R2 (6) THRESH OUT (3) C1 TRIG CONT (2) (5) GND (1) C2 (0.01 µf) The frequency, or repetition rate, of the output pulses is determined by the values of two resistors, R1 and R2 and by the timing capacitor, C1. The design formula for various parameters are as follows: 1. Frequency, f = (R1 + 2R2) x C1 2. Period, t = 1 = 0.69 (R1 + 2R2) x C1 f 3. HIGH time = 0.69 (R1 + R2) x C1 4. LOW time = 0.69 (R2 x C1) 5. Duty Cycle = HIGH time period Figure C.1: Connections of 555 timer IC in astable mode 53

Module 3: Floyd, Digital Fundamental

Module 3: Floyd, Digital Fundamental Module 3: Lecturer : Yongsheng Gao Room : Tech - 3.25 Email : yongsheng.gao@griffith.edu.au Structure : 6 lectures 1 Tutorial Assessment: 1 Laboratory (5%) 1 Test (20%) Textbook : Floyd, Digital Fundamental

More information

Digital Electronics Detailed Outline

Digital 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 information

DEPARTMENT OF INFORMATION TECHNLOGY

DEPARTMENT 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 information

Experiment # 9. Clock generator circuits & Counters. Eng. Waleed Y. Mousa

Experiment # 9. Clock generator circuits & Counters. Eng. Waleed Y. Mousa Experiment # 9 Clock generator circuits & Counters Eng. Waleed Y. Mousa 1. Objectives: 1. Understanding the principles and construction of Clock generator. 2. To be familiar with clock pulse generation

More information

The components. E3: Digital electronics. Goals:

The 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 information

Counters and Decoders

Counters 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 information

A Digital Timer Implementation using 7 Segment Displays

A 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 information

DIGITAL ELECTRONICS. Counters. By: Electrical Engineering Department

DIGITAL ELECTRONICS. Counters. By: Electrical Engineering Department Counters By: Electrical Engineering Department 1 Counters Upon completion of the chapter, students should be able to:.1 Understand the basic concepts of asynchronous counter and synchronous counters, and

More information

Upon completion of unit 1.1, students will be able to

Upon 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 information

Digital Logic Design. Basics Combinational Circuits Sequential Circuits. Pu-Jen Cheng

Digital 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 information

Having read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop.

Having 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 information

CHAPTER 11: Flip Flops

CHAPTER 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 information

3-Digit Counter and Display

3-Digit Counter and Display ECE 2B Winter 2007 Lab #7 7 3-Digit Counter and Display This final lab brings together much of what we have done in our lab experiments this quarter to construct a simple tachometer circuit for measuring

More information

Lecture 8: Synchronous Digital Systems

Lecture 8: Synchronous Digital Systems Lecture 8: Synchronous Digital Systems The distinguishing feature of a synchronous digital system is that the circuit only changes in response to a system clock. For example, consider the edge triggered

More information

ETEC 2301 Programmable Logic Devices. Chapter 10 Counters. Shawnee State University Department of Industrial and Engineering Technologies

ETEC 2301 Programmable Logic Devices. Chapter 10 Counters. Shawnee State University Department of Industrial and Engineering Technologies ETEC 2301 Programmable Logic Devices Chapter 10 Counters Shawnee State University Department of Industrial and Engineering Technologies Copyright 2007 by Janna B. Gallaher Asynchronous Counter Operation

More information

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

COMBINATIONAL 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 information

Asynchronous Counters. Asynchronous Counters

Asynchronous Counters. Asynchronous Counters Counters and State Machine Design November 25 Asynchronous Counters ENGI 25 ELEC 24 Asynchronous Counters The term Asynchronous refers to events that do not occur at the same time With respect to counter

More information

Figure 8-1 Four Possible Results of Adding Two Bits

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 information

List of Experiment. 8. To study and verify the BCD to Seven Segments DECODER.(IC-7447).

List of Experiment. 8. To study and verify the BCD to Seven Segments DECODER.(IC-7447). G. H. RAISONI COLLEGE OF ENGINEERING, NAGPUR Department of Electronics & Communication Engineering Branch:-4 th Semester[Electronics] Subject: - Digital Circuits List of Experiment Sr. Name Of Experiment

More information

Contents COUNTER. Unit III- Counters

Contents COUNTER. Unit III- Counters COUNTER Contents COUNTER...1 Frequency Division...2 Divide-by-2 Counter... 3 Toggle Flip-Flop...3 Frequency Division using Toggle Flip-flops...5 Truth Table for a 3-bit Asynchronous Up Counter...6 Modulo

More information

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill Objectives: Analyze the operation of sequential logic circuits. Understand the operation of digital counters.

More information

Lab 1: Study of Gates & Flip-flops

Lab 1: Study of Gates & Flip-flops 1.1 Aim Lab 1: Study of Gates & Flip-flops To familiarize with circuit implementations using ICs and test the behavior of different logic gates and Flip-flops. 1.2 Hardware Requirement a. Equipments -

More information

Lesson 12 Sequential Circuits: Flip-Flops

Lesson 12 Sequential Circuits: Flip-Flops Lesson 12 Sequential Circuits: Flip-Flops 1. Overview of a Synchronous Sequential Circuit We saw from last lesson that the level sensitive latches could cause instability in a sequential system. This instability

More information

Digital Fundamentals

Digital Fundamentals Digital Fundamentals Tenth Edition Floyd hapter 8 2009 Pearson Education, Upper 2008 Pearson Saddle River, Education NJ 07458. All Rights Reserved ounting in Binary As you know, the binary count sequence

More information

Digital Fundamentals

Digital Fundamentals Digital Fundamentals Tenth Edition Floyd Chapter 1 2009 Pearson Education, Upper 2008 Pearson Saddle River, Education NJ 07458. All Rights Reserved Analog Quantities Most natural quantities that we see

More information

Digital Fundamentals. Lab 8 Asynchronous Counter Applications

Digital Fundamentals. Lab 8 Asynchronous Counter Applications Richland College Engineering Technology Rev. 0 B. Donham Rev. 1 (7/2003). Horne Rev. 2 (1/2008). Bradbury Digital Fundamentals CETT 1425 Lab 8 Asynchronous Counter Applications Name: Date: Objectives:

More information

Digital Logic Design Sequential circuits

Digital Logic Design Sequential circuits Digital Logic Design Sequential circuits Dr. Eng. Ahmed H. Madian E-mail: ahmed.madian@guc.edu.eg Dr. Eng. Rania.Swief E-mail: rania.swief@guc.edu.eg Dr. Eng. Ahmed H. Madian Registers An n-bit register

More information

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute. 2nd (Spring) term 2012/2013

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute. 2nd (Spring) term 2012/2013 DIGITAL TECHNICS II Dr. Bálint Pődör Óbuda University, Microelectronics and Technology Institute 4. LECTURE: COUNTERS AND RELATED 2nd (Spring) term 2012/2013 1 4. LECTURE: COUNTERS AND RELATED 1. Counters,

More information

DIGITAL COUNTERS. Q B Q A = 00 initially. Q B Q A = 01 after the first clock pulse.

DIGITAL COUNTERS. Q B Q A = 00 initially. Q B Q A = 01 after the first clock pulse. DIGITAL COUNTERS http://www.tutorialspoint.com/computer_logical_organization/digital_counters.htm Copyright tutorialspoint.com Counter is a sequential circuit. A digital circuit which is used for a counting

More information

1.1 The 7493 consists of 4 flip-flops with J-K inputs unconnected. In a TTL chip, unconnected inputs

1.1 The 7493 consists of 4 flip-flops with J-K inputs unconnected. In a TTL chip, unconnected inputs CALIFORNIA STATE UNIVERSITY LOS ANGELES Department of Electrical and Computer Engineering EE-246 Digital Logic Lab EXPERIMENT 1 COUNTERS AND WAVEFORMS Text: Mano, Digital Design, 3rd & 4th Editions, Sec.

More information

Copyright Peter R. Rony 2009. All rights reserved.

Copyright Peter R. Rony 2009. All rights reserved. Experiment No. 1. THE DIGI DESIGNER Experiment 1-1. Socket Connections on the Digi Designer Experiment No. 2. LOGIC LEVELS AND THE 7400 QUADRUPLE 2-INPUT POSITIVE NAND GATE Experiment 2-1. Truth Table

More information

To design digital counter circuits using JK-Flip-Flop. To implement counter using 74LS193 IC.

To design digital counter circuits using JK-Flip-Flop. To implement counter using 74LS193 IC. 8.1 Objectives To design digital counter circuits using JK-Flip-Flop. To implement counter using 74LS193 IC. 8.2 Introduction Circuits for counting events are frequently used in computers and other digital

More information

Chapter 9 Latches, Flip-Flops, and Timers

Chapter 9 Latches, Flip-Flops, and Timers ETEC 23 Programmable Logic Devices Chapter 9 Latches, Flip-Flops, and Timers Shawnee State University Department of Industrial and Engineering Technologies Copyright 27 by Janna B. Gallaher Latches A temporary

More information

Lab 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 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 information

BINARY CODED DECIMAL: B.C.D.

BINARY 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 information

Counters. Present State Next State A B A B 0 0 0 1 0 1 1 0 1 0 1 1 1 1 0 0

Counters. Present State Next State A B A B 0 0 0 1 0 1 1 0 1 0 1 1 1 1 0 0 ounter ounters ounters are a specific type of sequential circuit. Like registers, the state, or the flip-flop values themselves, serves as the output. The output value increases by one on each clock cycle.

More information

Flip-Flops, Registers, Counters, and a Simple Processor

Flip-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 information

Operating Manual Ver.1.1

Operating Manual Ver.1.1 4 Bit Binary Ripple Counter (Up-Down Counter) Operating Manual Ver.1.1 An ISO 9001 : 2000 company 94-101, Electronic Complex Pardesipura, Indore- 452010, India Tel : 91-731- 2570301/02, 4211100 Fax: 91-731-

More information

Modeling Sequential Elements with Verilog. Prof. Chien-Nan Liu TEL: 03-4227151 ext:34534 Email: jimmy@ee.ncu.edu.tw. Sequential Circuit

Modeling Sequential Elements with Verilog. Prof. Chien-Nan Liu TEL: 03-4227151 ext:34534 Email: jimmy@ee.ncu.edu.tw. Sequential Circuit Modeling Sequential Elements with Verilog Prof. Chien-Nan Liu TEL: 03-4227151 ext:34534 Email: jimmy@ee.ncu.edu.tw 4-1 Sequential Circuit Outputs are functions of inputs and present states of storage elements

More information

Take-Home Exercise. z y x. Erik Jonsson School of Engineering and Computer Science. The University of Texas at Dallas

Take-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 information

Design Example: Counters. Design Example: Counters. 3-Bit Binary Counter. 3-Bit Binary Counter. Other useful counters:

Design Example: Counters. Design Example: Counters. 3-Bit Binary Counter. 3-Bit Binary Counter. Other useful counters: Design Eample: ers er: a sequential circuit that repeats a specified sequence of output upon clock pulses. A,B,C,, Z. G, O, T, E, R, P, S,!.,,,,,,,7. 7,,,,,,,.,,,,,,,,,,,. Binary counter: follows the binary

More information

Flip-Flops and Sequential Circuit Design. ECE 152A Winter 2012

Flip-Flops and Sequential Circuit Design. ECE 152A Winter 2012 Flip-Flops and Sequential Circuit Design ECE 52 Winter 22 Reading ssignment Brown and Vranesic 7 Flip-Flops, Registers, Counters and a Simple Processor 7.5 T Flip-Flop 7.5. Configurable Flip-Flops 7.6

More information

Flip-Flops and Sequential Circuit Design

Flip-Flops and Sequential Circuit Design Flip-Flops and Sequential Circuit Design ECE 52 Winter 22 Reading ssignment Brown and Vranesic 7 Flip-Flops, Registers, Counters and a Simple Processor 7.5 T Flip-Flop 7.5. Configurable Flip-Flops 7.6

More information

Chapter 8. Sequential Circuits for Registers and Counters

Chapter 8. Sequential Circuits for Registers and Counters Chapter 8 Sequential Circuits for Registers and Counters Lesson 3 COUNTERS Ch16L3- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 2 Outline Counters T-FF Basic Counting element State

More information

Counters & Shift Registers Chapter 8 of R.P Jain

Counters & Shift Registers Chapter 8 of R.P Jain Chapter 3 Counters & Shift Registers Chapter 8 of R.P Jain Counters & Shift Registers Counters, Syllabus Design of Modulo-N ripple counter, Up-Down counter, design of synchronous counters with and without

More information

ASYNCHRONOUS COUNTERS

ASYNCHRONOUS COUNTERS LB no.. SYNCHONOUS COUNTES. Introduction Counters are sequential logic circuits that counts the pulses applied at their clock input. They usually have 4 bits, delivering at the outputs the corresponding

More information

DATA SHEETS DE COMPONENTES DA FAMÍLIA LÓGICA TTL GATES AND INVERTERS POSITIVES NAND GATES AND INVERTERS DESCRIÇÃO

DATA SHEETS DE COMPONENTES DA FAMÍLIA LÓGICA TTL GATES AND INVERTERS POSITIVES NAND GATES AND INVERTERS DESCRIÇÃO GATES AND INVERTERS POSITIVES NAND GATES AND INVERTERS Hex Invertes 74LS04 Quadruple 2 Inputs Gates 74LS00 Triple 3 Inputs Gates 74LS10 Dual 4 Inputs Gates 74LS20 8 Inputs Gates 74LS30 13 Inputs Gates

More information

WEEK 8.1 Registers and Counters. ECE124 Digital Circuits and Systems Page 1

WEEK 8.1 Registers and Counters. ECE124 Digital Circuits and Systems Page 1 WEEK 8.1 egisters and Counters ECE124 igital Circuits and Systems Page 1 Additional schematic FF symbols Active low set and reset signals. S Active high set and reset signals. S ECE124 igital Circuits

More information

Standart TTL, Serie 74... Art.Gruppe 13.15. 1...

Standart TTL, Serie 74... Art.Gruppe 13.15. 1... Standart TTL, Serie 74... Art.Gruppe 13.15. 1... Standart TTL, Serie 74... 7400 Quad 2-Input Nand Gate (TP) DIL14 7402 Quad 2 Input Nor Gate (TP) DIL14 7403 Quad 2 Input Nand Gate (OC) DIL14 7404 Hex Inverter

More information

Memory Elements. Combinational logic cannot remember

Memory Elements. Combinational logic cannot remember Memory Elements Combinational logic cannot remember Output logic values are function of inputs only Feedback is needed to be able to remember a logic value Memory elements are needed in most digital logic

More information

Interfacing To Alphanumeric Displays

Interfacing 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 information

CS311 Lecture: Sequential Circuits

CS311 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 information

Lecture-3 MEMORY: Development of Memory:

Lecture-3 MEMORY: Development of Memory: Lecture-3 MEMORY: It is a storage device. It stores program data and the results. There are two kind of memories; semiconductor memories & magnetic memories. Semiconductor memories are faster, smaller,

More information

Gates, Circuits, and Boolean Algebra

Gates, 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 information

CHAPTER 3 Boolean Algebra and Digital Logic

CHAPTER 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 information

Systems I: Computer Organization and Architecture

Systems 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 information

Sequential Logic Design Principles.Latches and Flip-Flops

Sequential 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 information

Digital Systems Laboratory

Digital Systems Laboratory Eskişehir Osmangazi University Digital Systems Laboratory Rev 3.01 February 2011 LIST OF EXPERIMENTS 1. BINARY AND DECIMAL NUMBERS 2. DIGITAL LOGIC GATES 3. INTRODUCTION TO LOGICWORKS 4. BOOLEAN ALGEBRA

More information

FORDHAM UNIVERSITY CISC 3593. Dept. of Computer and Info. Science Spring, 2011. Lab 2. The Full-Adder

FORDHAM 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 information

ELEC 2210 - EXPERIMENT 1 Basic Digital Logic Circuits

ELEC 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 information

DM9368 7-Segment Decoder/Driver/Latch with Constant Current Source Outputs

DM9368 7-Segment Decoder/Driver/Latch with Constant Current Source Outputs DM9368 7-Segment Decoder/Driver/Latch with Constant Current Source Outputs General Description The DM9368 is a 7-segment decoder driver incorporating input latches and constant current output circuits

More information

RUTGERS UNIVERSITY Department of Electrical and Computer Engineering 14:332:233 DIGITAL LOGIC DESIGN LABORATORY

RUTGERS UNIVERSITY Department of Electrical and Computer Engineering 14:332:233 DIGITAL LOGIC DESIGN LABORATORY RUTGERS UNIVERSITY Department of Electrical and Computer Engineering 14:332:233 DIGITAL LOGIC DESIGN LABORATORY Fall 2012 Contents 1 LABORATORY No 1 3 11 Equipment 3 12 Protoboard 4 13 The Input-Control/Output-Display

More information

Fundamentals of Digital Electronics

Fundamentals 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 information

Theory of Logic Circuits. Laboratory manual. Exercise 3

Theory of Logic Circuits. Laboratory manual. Exercise 3 Zakład Mikroinformatyki i Teorii Automatów yfrowych Theory of Logic ircuits Laboratory manual Exercise 3 Bistable devices 2008 Krzysztof yran, Piotr zekalski (edt.) 1. lassification of bistable devices

More information

SECTION C [short essay] [Not to exceed 120 words, Answer any SIX questions. Each question carries FOUR marks] 6 x 4=24 marks

SECTION 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 information

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

NTE2053 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 information

Fig1-1 2-bit asynchronous counter

Fig1-1 2-bit asynchronous counter Digital electronics 1-Sequential circuit counters Such a group of flip- flops is a counter. The number of flip-flops used and the way in which they are connected determine the number of states and also

More information

Electronic WorkBench tutorial

Electronic WorkBench tutorial Electronic WorkBench tutorial Introduction Electronic WorkBench (EWB) is a simulation package for electronic circuits. It allows you to design and analyze circuits without using breadboards, real components

More information

Table 1 Comparison of DC, Uni-Polar and Bi-polar Stepper Motors

Table 1 Comparison of DC, Uni-Polar and Bi-polar Stepper Motors Electronics Exercise 3: Uni-Polar Stepper Motor Controller / Driver Mechatronics Instructional Laboratory Woodruff School of Mechanical Engineering Georgia Institute of Technology Lab Director: I. Charles

More information

Engr354: Digital Logic Circuits

Engr354: Digital Logic Circuits Engr354: igital Circuits Chapter 7 Sequential Elements r. Curtis Nelson Sequential Elements In this chapter you will learn about: circuits that can store information; Basic cells, latches, and flip-flops;

More information

Digital Electronics Part I Combinational and Sequential Logic. Dr. I. J. Wassell

Digital Electronics Part I Combinational and Sequential Logic. Dr. I. J. Wassell Digital Electronics Part I Combinational and Sequential Logic Dr. I. J. Wassell Introduction Aims To familiarise students with Combinational logic circuits Sequential logic circuits How digital logic gates

More information

7. Latches and Flip-Flops

7. Latches and Flip-Flops Chapter 7 Latches and Flip-Flops Page 1 of 18 7. Latches and Flip-Flops Latches and flip-flops are the basic elements for storing information. One latch or flip-flop can store one bit of information. The

More information

ANALOG & DIGITAL ELECTRONICS

ANALOG & DIGITAL ELECTRONICS ANALOG & DIGITAL ELECTRONICS Course Instructor: Course No: PH-218 3-1-0-8 Dr. A.P. Vajpeyi E-mail: apvajpeyi@iitg.ernet.in Room No: #305 Department of Physics, Indian Institute of Technology Guwahati,

More information

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute 5. LECTURE: REGISTERS AND RELATED

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute 5. LECTURE: REGISTERS AND RELATED DIGITAL TECHNICS II Dr. Bálint Pődör Óbuda University, Microelectronics and Technology Institute 5. LECTURE: REGISTERS AND RELATED 2nd (Spring) term 22/23 5. LECTURE: REGISTERS. Storage registers 2. Shift

More information

GETTING STARTED WITH PROGRAMMABLE LOGIC DEVICES, THE 16V8 AND 20V8

GETTING STARTED WITH PROGRAMMABLE LOGIC DEVICES, THE 16V8 AND 20V8 GETTING STARTED WITH PROGRAMMABLE LOGIC DEVICES, THE 16V8 AND 20V8 Robert G. Brown All Rights Reserved August 25, 2000 Alta Engineering 58 Cedar Lane New Hartford, CT 06057-2905 (860) 489-8003 www.alta-engineering.com

More information

So far we have investigated combinational logic for which the output of the logic devices/circuits depends only on the present state of the inputs.

So far we have investigated combinational logic for which the output of the logic devices/circuits depends only on the present state of the inputs. equential Logic o far we have investigated combinational logic for which the output of the logic devices/circuits depends only on the present state of the inputs. In sequential logic the output of the

More information

PLL frequency synthesizer

PLL frequency synthesizer ANALOG & TELECOMMUNICATION ELECTRONICS LABORATORY EXERCISE 4 Lab 4: PLL frequency synthesizer 1.1 Goal The goals of this lab exercise are: - Verify the behavior of a and of a complete PLL - Find capture

More information

LOGICOS SERIE 4000. Precios sujetos a variación. Ref. Part # Descripción Precio Foto Ref. Quad 2-Input NOR Buffered B Series Gate / PDIP-14

LOGICOS SERIE 4000. Precios sujetos a variación. Ref. Part # Descripción Precio Foto Ref. Quad 2-Input NOR Buffered B Series Gate / PDIP-14 LOGICOS SERIE 4000 Precios sujetos a variación Ref. Part # Descripción Precio Foto Ref. A-6-1 CD4001 Quad 2-Input NOR Buffered B Series Gate / PDIP-14 $ 290 A-6-2 CD4001BCM Quad 2-Input NOR Buffered B

More information

COMBINATIONAL CIRCUITS

COMBINATIONAL 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 information

Universidad Interamericana de Puerto Rico Recinto de Bayamón Escuela de Ingeniería Departamento de Ingeniería Eléctrica

Universidad Interamericana de Puerto Rico Recinto de Bayamón Escuela de Ingeniería Departamento de Ingeniería Eléctrica Universidad Interamericana de Puerto Rico Recinto de Bayamón Escuela de Ingeniería Departamento de Ingeniería Eléctrica Inventario de Materiales Edificio: Escuela de Ingeniería Oficina o Salón: G-221 Descripción(Circuitos

More information

EXPERIMENT 8. Flip-Flops and Sequential Circuits

EXPERIMENT 8. Flip-Flops and Sequential Circuits EXPERIMENT 8. Flip-Flops and Sequential Circuits I. Introduction I.a. Objectives The objective of this experiment is to become familiar with the basic operational principles of flip-flops and counters.

More information

A Lesson on Digital Clocks, One Shots and Counters

A Lesson on Digital Clocks, One Shots and Counters A Lesson on Digital Clocks, One Shots and Counters Topics Clocks & Oscillators LM 555 Timer IC Crystal Oscillators Selection of Variable Resistors Schmitt Gates Power-On Reset Circuits One Shots Counters

More information

Content Map For Career & Technology

Content 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 information

Chapter 2 Logic Gates and Introduction to Computer Architecture

Chapter 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 information

CHAPTER IX REGISTER BLOCKS COUNTERS, SHIFT, AND ROTATE REGISTERS

CHAPTER IX REGISTER BLOCKS COUNTERS, SHIFT, AND ROTATE REGISTERS CHAPTER IX-1 CHAPTER IX CHAPTER IX COUNTERS, SHIFT, AN ROTATE REGISTERS REA PAGES 249-275 FROM MANO AN KIME CHAPTER IX-2 INTROUCTION -INTROUCTION Like combinational building blocks, we can also develop

More information

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

MULTIPLE 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 information

1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1.

1. 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 information

Modeling Latches and Flip-flops

Modeling Latches and Flip-flops Lab Workbook Introduction Sequential circuits are digital circuits in which the output depends not only on the present input (like combinatorial circuits), but also on the past sequence of inputs. In effect,

More information

SEQUENTIAL CIRCUITS. Block diagram. Flip Flop. S-R Flip Flop. Block Diagram. Circuit Diagram

SEQUENTIAL CIRCUITS. Block diagram. Flip Flop. S-R Flip Flop. Block Diagram. Circuit Diagram SEQUENTIAL CIRCUITS http://www.tutorialspoint.com/computer_logical_organization/sequential_circuits.htm Copyright tutorialspoint.com The combinational circuit does not use any memory. Hence the previous

More information

Counters are sequential circuits which "count" through a specific state sequence.

Counters are sequential circuits which count through a specific state sequence. Counters Counters are sequential circuits which "count" through a specific state sequence. They can count up, count down, or count through other fixed sequences. Two distinct types are in common usage:

More information

EE 42/100 Lecture 24: Latches and Flip Flops. Rev B 4/21/2010 (2:04 PM) Prof. Ali M. Niknejad

EE 42/100 Lecture 24: Latches and Flip Flops. Rev B 4/21/2010 (2:04 PM) Prof. Ali M. Niknejad A. M. Niknejad University of California, Berkeley EE 100 / 42 Lecture 24 p. 1/20 EE 42/100 Lecture 24: Latches and Flip Flops ELECTRONICS Rev B 4/21/2010 (2:04 PM) Prof. Ali M. Niknejad University of California,

More information

CHAPTER 11 LATCHES AND FLIP-FLOPS

CHAPTER 11 LATCHES AND FLIP-FLOPS CHAPTER 11 LATCHES AND FLIP-FLOPS This chapter in the book includes: Objectives Study Guide 11.1 Introduction 11.2 Set-Reset Latch 11.3 Gated D Latch 11.4 Edge-Triggered D Flip-Flop 11.5 S-R Flip-Flop

More information

A Lesson on Digital Clocks, One Shots and Counters

A Lesson on Digital Clocks, One Shots and Counters A Lesson on Digital Clocks, One Shots and Counters Topics Clocks & Oscillators LM 555 Timer IC Crystal Oscillators Selection of Variable Resistors Schmitt Gates Power-On Reset Circuits One Shots Counters

More information

Digital Logic Elements, Clock, and Memory Elements

Digital 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 information

Wiki Lab Book. This week is practice for wiki usage during the project.

Wiki Lab Book. This week is practice for wiki usage during the project. Wiki Lab Book Use a wiki as a lab book. Wikis are excellent tools for collaborative work (i.e. where you need to efficiently share lots of information and files with multiple people). This week is practice

More information

Sequential Logic: Clocks, Registers, etc.

Sequential Logic: Clocks, Registers, etc. ENEE 245: igital Circuits & Systems Lab Lab 2 : Clocks, Registers, etc. ENEE 245: igital Circuits and Systems Laboratory Lab 2 Objectives The objectives of this laboratory are the following: To design

More information

Cascaded Counters. Page 1 BYU

Cascaded Counters. Page 1 BYU Cascaded Counters Page 1 Mod-N Counters Generally we are interested in counters that count up to specific count values Not just powers of 2 A mod-n counter has N states Counts from 0 to N-1 then rolls

More information

LAB #4 Sequential Logic, Latches, Flip-Flops, Shift Registers, and Counters

LAB #4 Sequential Logic, Latches, Flip-Flops, Shift Registers, and Counters LAB #4 Sequential Logic, Latches, Flip-Flops, Shift Registers, and Counters LAB OBJECTIVES 1. Introduction to latches and the D type flip-flop 2. Use of actual flip-flops to help you understand sequential

More information

Combinational Logic Design

Combinational Logic Design Chapter 4 Combinational Logic Design The foundations for the design of digital logic circuits were established in the preceding chapters. The elements of Boolean algebra (two-element switching algebra

More information

plc numbers - 13.1 Encoded values; BCD and ASCII Error detection; parity, gray code and checksums

plc 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 information