a) The following figure shows the clear signal, the clocks and the input at A. Draw the traces at B, C, D and E.

Similar documents
Asynchronous counters, except for the first block, work independently from a system clock.

Lecture 8: Synchronous Digital Systems

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

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

Gates, Circuits, and Boolean Algebra

DIGITAL ELECTRONICS. Counters. By: Electrical Engineering Department

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

CHAPTER 11: Flip Flops

Counters and Decoders

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

Digital Logic Design Sequential circuits

Latches, the D Flip-Flop & Counter Design. ECE 152A Winter 2012

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

Asynchronous Counters. Asynchronous Counters

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

Decimal Number (base 10) Binary Number (base 2)

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

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

CHAPTER 11 LATCHES AND FLIP-FLOPS

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.

Digital circuits make up all computers and computer systems. The operation of digital circuits is based on

Digital Controller for Pedestrian Crossing and Traffic Lights

ARRL Morse Code Oscillator, How It Works By: Mark Spencer, WA8SME

Digital Logic Elements, Clock, and Memory Elements

Lesson 12 Sequential Circuits: Flip-Flops

Napier University. School of Engineering. Electronic Engineering A Module: SE42205 Digital Design

Module 3: Floyd, Digital Fundamental

Binary Adders: Half Adders and Full Adders

Chapter 8. Sequential Circuits for Registers and Counters

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

Flip-Flops and Sequential Circuit Design

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

A Lesson on Digital Clocks, One Shots and Counters

A Lesson on Digital Clocks, One Shots and Counters

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

CDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012

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

Study Guide for the Electronics Technician Pre-Employment Examination

Upon completion of unit 1.1, students will be able to

Chapter 9 Latches, Flip-Flops, and Timers

BINARY CODED DECIMAL: B.C.D.

MAS.836 HOW TO BIAS AN OP-AMP

Memory Elements. Combinational logic cannot remember

OPERATIONAL AMPLIFIERS. o/p

Basic Logic Gates Richard E. Haskell

CHAPTER 3 Boolean Algebra and Digital Logic

ENGI 241 Experiment 5 Basic Logic Gates

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

DEPARTMENT OF INFORMATION TECHNLOGY

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

EXPERIMENT 8. Flip-Flops and Sequential Circuits

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

ASYNCHRONOUS COUNTERS

[ 4 ] Logic Symbols and Truth Table

W03 Analysis of DC Circuits. Yrd. Doç. Dr. Aytaç Gören

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

PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 OUTCOME 3 PART 1

United States Naval Academy Electrical and Computer Engineering Department. EC262 Exam 1

BOOLEAN ALGEBRA & LOGIC GATES

The enable pin needs to be high for data to be fed to the outputs Q and Q bar.

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

Logic in Computer Science: Logic Gates

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

Digital Electronics Detailed Outline

PLL frequency synthesizer

7. Latches and Flip-Flops

3.Basic Gate Combinations

CS311 Lecture: Sequential Circuits

Content Map For Career & Technology

The components. E3: Digital electronics. Goals:

Lecture-3 MEMORY: Development of Memory:

Contents COUNTER. Unit III- Counters

exclusive-or and Binary Adder R eouven Elbaz reouven@uwaterloo.ca Office room: DC3576

2.0 Chapter Overview. 2.1 Boolean Algebra

Interfacing Analog to Digital Data Converters

BJT AC Analysis. by Kenneth A. Kuhn Oct. 20, 2001, rev Aug. 31, 2008

Electronics Technology

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

VCE Physics and VCE Systems Engineering: Table of electronic symbols

ENEE 244 (01**). Spring Homework 5. Due back in class on Friday, April 28.

ANALOG & DIGITAL ELECTRONICS

Lab 7: Operational Amplifiers Part I

CSE140: Midterm 1 Solution and Rubric

ECE380 Digital Logic

Lecture 12: More on Registers, Multiplexers, Decoders, Comparators and Wot- Nots

Series and Parallel Circuits

Operating Manual Ver.1.1

Gates & Boolean Algebra. Boolean Operators. Combinational Logic. Introduction

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

Digital to Analog and Analog to Digital Conversion

Electronics Technology

MM74HC4538 Dual Retriggerable Monostable Multivibrator

Cascaded Counters. Page 1 BYU

ECE124 Digital Circuits and Systems Page 1

CSE140 Homework #7 - Solution

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

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

GLOLAB Two Wire Stepper Motor Positioner

Series and Parallel Circuits

Fig1-1 2-bit asynchronous counter

Transcription:

Sample Question: Flip Flops and Counters The following is a diagram of a circuit from PSpice. The Clear signal initializes the flip flop. Therefore, once it goes high, the flip flop outputs Q=0 and Q =. The clock for the first flip flop is DSTM and the clock for the second flip flop is DSTM inverted. Remember that flip flops and counters trigger on the falling edge of the clock pulse. a) The following figure shows the clear signal, the clocks and the input at A. Draw the traces at B, C, D and E. b) If the clock for a counter (749) was attached to signal A, what would the output look like after.0us. (Assume the counter has also been cleared, therefore QA=0, QB=0, QC=0, QD=0 at time 0s). Express your answer in volts. QA = QB = QC = QD =

Sample Question: Flip Flops and Counters *** ANSWER *** The following is a diagram of a circuit from PSpice. The Clear signal initializes the flip flop. Therefore, once it goes high, the flip flop outputs Q=0 and Q =. The clock for the first flip flop is DSTM and the clock for the second flip flop is DSTM inverted. Remember that flip flops and counters trigger on the falling edge of the clock pulse. a) The following figure shows the clear signal, the clocks and the input at A. Draw the traces at B, C, D and E. [Some explanation: C and D are inverted from ground. This means they are always high. Note that the flip flops only change on the falling edges of the clock. The first flip flop will look at J and K when Clock goes down at 0.8 us. Since at that time A(=J) is high and C(=K) is high, the flip flop toggles and B goes high. The next time that Clock goes high to low at.8us, A is low and C is still high. This time, the flip flop should be equal to J(A) and B goes low again. This sequence continues for B. The signal at E changes on the falling edge of Clockbar(the inverted clock signal). Its inputs are J=B and K=5. At 0.us, B is low, so E stays low. At.us, B is high, so E toggles to high. At.us, B is low, so E goes low again. The sequence continues.]

b) If the clock for a counter (749) was attached to signal B, what would the output look like after 6.0us. (Assume the counter has also been cleared, therefore QA=0, QB=0, QC=0, QD=0 at time 0s). Express your answer in volts. QA = 5 QB = 5 QC = 0 QD = 0 [Some explanation: The counter counts on the falling edge of the clock. Since B has three pulses since 0s, the counter should count up to three. In binary, that is 00. Note that QA is the lowest order bit.]

Sample Question: Boolean Algebra It is possible to configure all standard gates using just NAND gates. The figure below show one such combination of NANDS. Clock A UA C OFFTIME =.5u ONTIME =.5u DELAY = 0 STARTAL = 0 OPPAL = DSTM CLK Clock OFFTIME =.5uS DSTM ONTIME =.5uS CLK DELAY = 0 STARTAL = 0 OPPAL = B UA D UA E U4A F a. Identify which trace belongs to which point in the circuit. b. Write a boolean expression for this circuit (Do not simplify).

a. Properties of b. Rules of Combination c. DeMorgan s Laws Operations (a) A? 0 = 0 (b) A? B = B? A (c) ~(A? B) = ~A + ~B (a) A + 0 = A (b) A + B = B + A (c) ~(A + B) = ~A? ~B (a) A? = A (b) A? (B+C) = (A?B) + (A?C) (a4) A + = (b4) A? (B?C) = (A?B)? C d. Other Rules (a5) A? A = A (b5) A + (B+C) = (A+B) + C (d)a? B = ~A?B + A?~B (a6) A + A = A (b6) A + (A?B) = A (d)a XOR B = ~AandB + Aand~B (a7) A? ~A = 0 (b7) A? (A+B) = A (d) ~(A? B) = ~A?~B + A?B (a8) A + ~A = (b8) A? (~A + B) = A? B (d) ~(A XOR B) = ~Aand~B + AandB (a9) ~(~A) = A (b9) A + (~A? B) = A + B (b0) ~A + (A? B) = ~A + B (b) ~A + (A? ~B) = ~A + ~B Note that the NOT operation is indicated here by ~ instead of as a bar over the letter. You are free to use either notation. You can indicate the rule by the letter. [Note to students: Unfortunately, the PDF writer has trouble with the symbol font. In the above chart, the? in sections a, b and c are AND symbols and the meaning of the? in section d can be found in the restatement of the rule.] c. Using the Boolean Algebra rules shown above, prove that this combination of gates works as a NOR gate.

Sample Question: Boolean Algebra ** ANSWER ** It is possible to configure all standard gates using just NAND gates. The figure below show one such combination of NANDS. Clock A UA C OFFTIME =.5u ONTIME =.5u DELAY = 0 STARTAL = 0 OPPAL = DSTM CLK Clock OFFTIME =.5uS DSTM ONTIME =.5uS CLK DELAY = 0 STARTAL = 0 OPPAL = B UA D UA E U4A F a. Identify which trace belongs to which point in the circuit. A = Clock; B=Clock; C = ~A = X; D = ~B = Y; E = ~(XandY) = Z; F=~E=W b) Write a boolean expression for this circuit (Do not simplify). F = ~[~( ~A and ~B )]

a. Properties of b. Rules of Combination c. DeMorgan s Laws Operations (a) A? 0 = 0 (b) A? B = B? A (c) ~(A? B) = ~A + ~B (a) A + 0 = A (b) A + B = B + A (c) ~(A + B) = ~A? ~B (a) A? = A (b) A? (B+C) = (A?B) + (A?C) (a4) A + = (b4) A? (B?C) = (A?B)? C d. Other Rules (a5) A? A = A (b5) A + (B+C) = (A+B) + C (d)a? B = ~A?B + A?~B (a6) A + A = A (b6) A + (A?B) = A (d)a XOR B = ~AandB + Aand~B (a7) A? ~A = 0 (b7) A? (A+B) = A (d) ~(A? B) = ~A?~B + A?B (a8) A + ~A = (b8) A? (~A + B) = A? B (d) ~(A XOR B) = ~Aand~B + AandB (a9) ~(~A) = A (b9) A + (~A? B) = A + B (b0) ~A + (A? B) = ~A + B (b) ~A + (A? ~B) = ~A + ~B Note that the NOT operation is indicated here by ~ instead of as a bar over the letter. You are free to use either notation. You can indicate the rule by the letter. [Note to students: Unfortunately, the PDF writer has trouble with the symbol font. In the above chart, the? in sections a, b and c are AND symbols and the meaning of the? in section d can be found in the restatement of the rule.] c. Using the Boolean Algebra rules shown above, prove that this combination of gates works as a NOR gate. F = ~[~(~A and ~B)] F = ~A and ~B F = ~ (A or B) given rule a9 rule c This is a NOR gate.

Sample Question: Schmitt Trigger a) Indicate which plot below goes with which circuit above ( pts) AND indicate in and out on both plots (4 pts).

b) What is circuit A a model or example of? a) an inverting amplifier b) a non-inverting amplifier c) a Schmitt trigger d) a comparator c) What is circuit B a model or example of? a) an inverting amplifier b) a non-inverting amplifier c) a Schmitt trigger d) a comparator e) What is the saturation range of the op-amp (in both circuits)? f) If R is 0K ohms, then what does R have to be in circuit B to give a hysteresis of 4 volts?

) Schmitt Trigger (0 Points) ** ANSWER ** a) Indicate which plot below goes with which circuit above AND indicate in and out on both plots. The one below is B The one below is A

b) What is circuit A a model or example of? a) an inverting amplifier b) a non-inverting amplifier c) a Schmitt trigger d) a comparator c) What is circuit B a model or example of? a) an inverting amplifier b) a non-inverting amplifier c) a Schmitt trigger d) a comparator e) What is the saturation range of the op-amp (in both circuits)? [From the plot, you can see that the op-amp saturates at between 4 and 5 volts when the positive is greater than the negative and between 4 and 5 volts when the negative is greater than the positive. Anything between (+5 to 5) and (+4 to 4) is acceptable. The value below is the actual value from PSpice for the above plots.] Answer: +4.6 to -4.6 f) If R is 0K ohms, then what does R have to be in circuit B to give a hysteresis of 4 volts? [Recalling your notes and section 6.5 in Lunn, the hysteresis is determined by the relationship between the saturation voltage and the two resistors in the voltage divider in circuit B. If we let ref be the voltage point between R and R, then ref = out * R/(R+R). Since out toggles between +4.6 and 4.6, we have two values for ref: +ref = +4.6 * R / (R+R) = +4.6 * R / (R + 0K) -ref = -4.6 * R / (R+R) = -4.6 * R / (R + 0K) If we we want a range of 4 volts between +ref and ref, then +ref must be and ref must be. (The hysteresis is centered around 0 volts.) Therefore we have, ] Answer: = 4.6 * R / (R + 0K) R + 0K = 4.6R.6R = 0K R = 587 ohms [Please note that in the first plot (circuit B) above, the hysteresis is not the same. If you look at the point at which out BEGINS to rise and fall, you can see that the hysteresis is between about + and for a hysteresis of 6. In the second plot (circuit A), the change in direction happens at zero because there is no hysteresis for a comparator.]

Sample Question: Transistors Here is a simple transistor circuit. 0 5dc s Ra k Q R out k in 0 a) Redraw the circuit when in is 0. [Draw the transistor as a switch either open or closed.] b) Redraw the circuit when in is 5. [Draw the transistor as a switch either open or closed.]

c) If in is the input, A, and out is the output, Y, then fill in the following truth table. A 0 Y d) What kind of gate is this?

Sample Question: Transistors ** ANSWERS ** Here is a simple transistor circuit. 0 5dc s Ra k Q R out k in 0 a) Redraw the circuit when in is 0. [Draw the transistor as a switch either open or closed.] b) Redraw the circuit when in is 5. [Draw the transistor as a switch either open or closed.]

c) If in is the input, A, and out is the output, Y, then fill in the following truth table. A Y 0 (0) (5) (5) 0 (0) d) What kind of gate is this? NOT gate