Lab 3 Revisited. Zener diodes IAP 2008 Lecture 4 1

Similar documents
LOGIC CIRCUITS. Basic Experiment and Design of Electronics. Ho Kyung Kim, Ph.D.

Sample Test Paper - I

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) State any two Boolean laws. (Any 2 laws 1 mark each)

S.Y. Diploma : Sem. III [CO/CM/IF/CD/CW] Digital Techniques

Lecture 9: Digital Electronics

LOGIC CIRCUITS. Basic Experiment and Design of Electronics

Digital Circuits. 1. Inputs & Outputs are quantized at two levels. 2. Binary arithmetic, only digits are 0 & 1. Position indicates power of 2.

Exam for Physics 4051, October 31, 2008

Experiment 9 Sequential Circuits

Fundamentals of Digital Design

CHW 261: Logic Design

S.Y. Diploma : Sem. III [DE/ED/EI/EJ/EN/ET/EV/EX/IC/IE/IS/IU/MU] Principles of Digital Techniques

Reg. No. Question Paper Code : B.E./B.Tech. DEGREE EXAMINATION, NOVEMBER/DECEMBER Second Semester. Computer Science and Engineering

ENGG 1203 Tutorial _03 Laboratory 3 Build a ball counter. Lab 3. Lab 3 Gate Timing. Lab 3 Steps in designing a State Machine. Timing diagram of a DFF

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

Digital Electronic Meters

Roger L. Tokheim. Chapter 8 Counters Glencoe/McGraw-Hill

Digital Electronics. Delay Max. FF Rate Power/Gate High Low (ns) (MHz) (mw) (V) (V) Standard TTL (7400)

Schedule. ECEN 301 Discussion #25 Final Review 1. Date Day Class No. 1 Dec Mon 25 Final Review. Title Chapters HW Due date. Lab Due date.

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified)

on candidate s understanding. 7) For programming language papers, credit may be given to any other program based on equivalent concept.

Vidyalankar S.E. Sem. III [CMPN] Digital Logic Design and Analysis Prelim Question Paper Solution

Digital Fundamentals

WORKBOOK. Try Yourself Questions. Electrical Engineering Digital Electronics. Detailed Explanations of

Digital Electronics Final Examination. Part A

University of Florida EEL 3701 Fall 2014 Dr. Eric. M. Schwartz Department of Electrical & Computer Engineering Wednesday, 15 October 2014

CHW 261: Logic Design

Digital Circuits ECS 371

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:


DIGITAL LOGIC CIRCUITS

Digital Electronics. Part A

Gates and Flip-Flops

Digital Signal 2 N Most Significant Bit (MSB) Least. Bit (LSB)

Boole Algebra and Logic Series

NOTE: The Flatpak version has the same pinouts (Connection Diagram) as the Dual In-Line Package. *MR for LS160A and LS161A *SR for LS162A and LS163A

Digital Electronics Circuits 2017

University of Florida EEL 3701 Summer 2015 Dr. Eric. M. Schwartz Department of Electrical & Computer Engineering Tuesday, 30 June 2015

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) SUMMER 14 EXAMINATION Model Answer

Preparation of Examination Questions and Exercises: Solutions

74LS195 SN74LS195AD LOW POWER SCHOTTKY

DE58/DC58 LOGIC DESIGN DEC 2014

Synchronous 4 Bit Counters; Binary, Direct Reset

Unit II Chapter 4:- Digital Logic Contents 4.1 Introduction... 4

SUMMER 18 EXAMINATION Subject Name: Principles of Digital Techniques Model Answer Subject Code:

04. What is the Mod number of the counter circuit shown below? Assume initially reset.

Vidyalankar S.E. Sem. III [EXTC] Digital Electronics Prelim Question Paper Solution ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD = B

King Fahd University of Petroleum and Minerals College of Computer Science and Engineering Computer Engineering Department

ENGR4300 Fall 2005 Test 3S. Name solution. Section. Question 1 (25 points) Question 2 (25 points) Question 3 (25 points) Question 4 (25 points)

Sequential Logic Worksheet

CHAPTER 7. Exercises 17/ / /2 2 0

MM74HC161 MM74HC163 Synchronous Binary Counter with Asynchronous Clear Synchronous Binary Counter with Synchronous Clear

MM54HCT193 MM74HCT193 Synchronous Binary Up Down Counters

Lecture 7: Logic design. Combinational logic circuits

EE 209 Logic Cumulative Exam Name:

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

Exercise booklet - Logic

Dept. of ECE, CIT, Gubbi Page 1

Chapter 2 Boolean Algebra and Logic Gates

A Guide. Logic Library

Counters. We ll look at different kinds of counters and discuss how to build them

Combinational Logic. By : Ali Mustafa

Boolean Algebra and Digital Logic 2009, University of Colombo School of Computing

SAU1A FUNDAMENTALS OF DIGITAL COMPUTERS

SIR C.R.REDDY COLLEGE OF ENGINEERING ELURU DIGITAL INTEGRATED CIRCUITS (DIC) LABORATORY MANUAL III / IV B.E. (ECE) : I - SEMESTER

MOSIS REPORT. Spring MOSIS Report 1. MOSIS Report 2. MOSIS Report 3

Computers also need devices capable of Storing data and information Performing mathematical operations on such data

( c) Give logic symbol, Truth table and circuit diagram for a clocked SR flip-flop. A combinational circuit is defined by the function

Digital Fundamentals

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION

3. Complete the following table of equivalent values. Use binary numbers with a sign bit and 7 bits for the value


Fundamentals of Boolean Algebra

Appendix B. Review of Digital Logic. Baback Izadi Division of Engineering Programs

CIRCUITS AND ELECTRONICS. The Digital Abstraction

DIGITAL LOGIC CIRCUITS

ELCT201: DIGITAL LOGIC DESIGN

Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS

EE141Microelettronica. CMOS Logic

NTE74177 Integrated Circuit TTL 35Mhz Presettable Binary Counter/Latch

CPE100: Digital Logic Design I

S.E. Sem. III [ETRX] Digital Circuit Design. t phl. Fig.: Input and output voltage waveforms to define propagation delay times.

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING BENG (HONS) ELECTRICAL & ELECTRONICS ENGINEERING EXAMINATION SEMESTER /2017

Philadelphia University Student Name: Student Number:

MM54HC73 MM74HC73 Dual J-K Flip-Flops with Clear

PGT104 Digital Electronics. PGT104 Digital Electronics

ECE/Comp Sci 352 Digital Systems Fundamentals. Charles R. Kime Section 2 Fall Logic and Computer Design Fundamentals

Digital Logic. CS211 Computer Architecture. l Topics. l Transistors (Design & Types) l Logic Gates. l Combinational Circuits.

per chip (approx) 1 SSI (Small Scale Integration) Up to 99

Cs302 Quiz for MID TERM Exam Solved

ELCT201: DIGITAL LOGIC DESIGN

Appendix A: Digital Logic. Principles of Computer Architecture. Principles of Computer Architecture by M. Murdocca and V. Heuring

Sequential Logic Circuits

Introduction EE 224: INTRODUCTION TO DIGITAL CIRCUITS & COMPUTER DESIGN. Lecture 6: Sequential Logic 3 Registers & Counters 5/9/2010

Chapter 2. Review of Digital Systems Design

S.Y. Diploma : Sem. III [CO/CM/IF/CD/CW] Digital Techniques s complement 2 s complement 1 s complement

Digital Logic Appendix A

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

Transcription:

Lab 3 Revisited Zener diodes R C 6.091 IAP 2008 Lecture 4 1

Lab 3 Revisited +15 Voltage regulators 555 timers 270 1N758 0.1uf 5K pot V+ V- 2N2222 0.1uf V o. V CC V Vin s = 5 V Vc V c Vs 1 e t = RC Threshold Control Voltage Trigger 6 5 2 8 5k 5k 5k 1 Gnd + Comp _ A + Comp _ B R S Flip Flop Inhibit/ Reset 4 Reset 7 3 Discharge Output 6.091 IAP 2008 Lecture 4 Figure by MIT OpenCourseWare. 2

Closet Light Timer +15 +15 1k +15 8 reset 10k 555 output R threshold 1N914 trigger discharge 1k 0.1uf control C 1 0.01 uf 6.091 IAP 2008 Lecture 4 3

Digital Circuits Real world analog signals have noise unavoidable. Digital circuits offers better noise immunity. Use voltage to represent 0 and 1 Avoid forbidden voltage zone. Make standards tighter for output than for inputs. Data (HCMOS family): 0 (low), 1 (high) Input voltage low: 0.0 0.7v Input voltage high: >2.0V Output low: <0.4v Output high: >3.98v 6.091 IAP 2008 Lecture 4 4

Digital Circuits +5V HCMOS 1 (high) Output high: >3.98v output high range +3.98V Input voltage high: >2.0V input high range noise margin +2.0V Forbidden Zone HCMOS 0 (low) 0.7V Output low: <0.4v Input voltage low: 0.0 0.7v noise margin output low range 0.4V input low rage. 6.091 IAP 2008 Lecture 4 5

Power Requirements The following power supplies are common for analog and digital circuits: +5v for digital circuits, +15v, -15v for analog, -5v, +12v, -12v also used +3.3 Other voltages generally derived. 6.091 IAP 2008 Lecture 4 6

6.091 IAP 2008 Lecture 4 7

Boolean Algebra A B = A & B A = Inverse of A A B = Inverse of [A&B] DeMorgan's Law A B = A + B A + B = A & B 6.091 IAP 2008 Lecture 4 8

Digital System Implementation Start with AND, OR, NOR, NAND gates and add more complex building blocks: registers, counters, shift registers, multiplexers. Wire up design. High manufacturing cost, low fix costs. Examples 74LS, 74HC series IC For volume production, move to PALs, FPGAs, ASICs. Low manufacturing cost, high fix costs. 6.091 IAP 2008 Lecture 4 9

Basic Gates Circle indicates inversion 6.091 IAP 2008 Lecture 4 10

74LS00 NAND Gate Dual-In-Line Package V CC B4 A4 Y4 B3 A3 Y3 14 13 12 11 10 9 8 1 2 3 4 5 6 7 A1 B1 Y1 A2 B2 Y2 GND This device contains four independent gates each of which performs the logic NAND function. Figure by MIT OpenCourseWare, adapted from the National Semiconductor 54LS00 datasheet. 6.091 IAP 2008 Lecture 4 11

74LS02 NOR Gate Dual-In-Line Package V CC Y4 B4 A4 Y3 B3 A3 14 13 12 11 10 9 8 1 2 3 4 5 6 7 Y1 A1 B1 Y2 A2 B2 GND This device contains four independent gates each of which performs the logic NOR function. Figure by MIT OpenCourseWare, adapted from the National Semiconductor 54LS02 datasheet. 6.091 IAP 2008 Lecture 4 12

74LS08 AND Gate Dual-In-Line Package VCC B4 A4 Y4 B3 A3 Y3 14 13 12 11 10 9 8 1 2 3 4 5 6 7 A1 B1 Y1 A2 B2 Y2 GND This device contains four independent gates each of which performs the logic AND function. Figure by MIT OpenCourseWare, adapted from the National Semiconductor 54LS08 datasheet. 6.091 IAP 2008 Lecture 4 13

74LS151 8-1 Multiplexer Dual-in-line Package Data Inputs Data Select VCC D4 D5 D6 D7 A B C 16 15 14 13 12 11 10 9 1 2 3 4 5 6 7 8 Inputs Select C B A X X X L L L L L H L H L L H H H L L H L H H H L H H H Strobe S H L L L L L L L L Outputs Y L D0 D1 D2 D3 D4 D5 D6 D7 W H D0 D1 D2 D3 D4 D5 D6 D7 D3 D2 D1 D0 Y W Strobe GND H = High Level, L = Low Level, X = Don t Care D0, D1_D7 = Level of the Respective D Input Data Inputs Outputs Figures by MIT OpenCourseWare. 6.091 IAP 2008 Lecture 4 14

Building Logic From basic gates, we can build other functions: Exclusive OR Gate X Y Z X Y Z 0 0 0 0 1 1 1 0 1 1 1 0 X Y Z 6.091 IAP 2008 Lecture 4 15

74LS86 Exclusive OR V CC 14 13 12 11 10 9 8 1 2 3 4 5 6 7 Truth Table GND In Out A L L H H B L H L H Z L H H L Figure by MIT OpenCourseWare, based on Motorola datasheet. 6.091 IAP 2008 Lecture 4 16

74LS74 D Flip Flop SET-PRESET Note both and bar CLK D SET CLR CLR circle indicates inversion (active low) Reprinted with permission of National Semiconductor Corporation. CLK D 6.091 IAP 2008 Lecture 4 17

Counters Ripple carry Previous stage used to clock next bit; B 1 B 0 0 0 0 1 1 0 1 1 CLK D B 0 SET CLR D B 1 SET CLR Synchronous B 0 B 1 Same clock used for each bit D SET D SET CLR CLR Power connections not shown CLK 6.091 IAP 2008 Lecture 4 18

Building a Synchronous Counter All bits clock on the same clock signal. Next count based on current count. B 1 B 0 B 1 Next 0 0 0 0 1 1 1 0 1 1 1 0 B 0 B 1 D SET D SET CLK CLR CLR Power connections not shown B 1 Next 6.091 IAP 2008 Lecture 4 19

Shift Register DATA D SET D D SET C D SET B D SET CLR CLR CLR CLR CLK DATA D C B Converts serial data to parallel data or parallel data to serial data. A 6.091 IAP 2008 Lecture 4 20

74LS175 4 Bit Shift Register D SET D SET 74LS175 13 15 12 10 5 4 2 D SET Clock and Clear are common for all FF. The D FF will store the state of 7 their individual D inputs on D SET the LOW to HIGH Clock transition, causing the individual and to follow. CLR CLR 9 1 14 11 6 3 clock clear CLR CLR A LOW input on the Clear will force all outputs LOW and outputs HIGH independent of Clock or Data inputs. 6.091 IAP 2008 Lecture 4 21

Binary Numbers MSB Most Significant Bit LSB Least Significant Bit Let s build an adder: A+B=S where A,B,S are m bits wide: A: A m A m-1 A 1 A 0 Dec Binary Hex Dec Binary Hex 0 0000 0 8 1000 8 1 0001 1 9 1001 9 2 0010 2 10 1010 A 3 0011 3 11 1011 B 4 0100 4 12 1100 C 5 0101 5 13 1101 D 6 0110 6 14 1110 E 7 0111 7 15 1111 F 6.091 IAP 2008 Lecture 4 22

Binary Adder m th bit C in A B Sum C out A B 0 0 0 0 0 0 0 1 1 0 C in ADDER C out 0 1 0 1 0 0 1 1 0 1 Sum 1 0 0 1 0 1 0 1 0 1 1 1 0 0 1 Sum = C out = 1 1 1 1 1 6.091 IAP 2008 Lecture 4 23

Signed Numbers Twos Complement Positive Number: MSB=0 Negative Number: MSB=1 4 Bit example Simple addition & subtraction Most common notation MSB LSB Decimal 0 0 0 0 0 0 0 0 1 1 0 0 1 0 2 0 0 1 1 3 0 1 0 0 4 0 1 0 1 5 0 1 1 0 6 0 1 1 1 7 1 0 0 0-8 1 0 0 1-7 1 0 1 0-6 1 0 1 1-5 1 1 0 0-4 1 1 0 1-3 1 1 1 0-2 1 1 1 1-1 6.091 IAP 2008 Lecture 4 24

Propagation Delays All digital logic have propagation delay Typical discrete logic gate propagation delay ~10ns X Z X Z 6.091 IAP 2008 Lecture 4 25

Lab Exercise Ring Oscillator 1 0 1 0 1 0. 6.091 IAP 2008 Lecture 4 26

Lab Exercise 4 Bit Counter Logic Analyzer +5 Power connections not shown for 74LS163 1.8432 Mhz crystal osc. +5 7 10 9 1 P T LD CLR 74LS163 counter A B C D 14 13 12 11 Attach LA probe A2 to A-D triangle is symbol for clock input 6.091 IAP 2008 Lecture 4 27

Lab Exercise Ramp Generator R R R R V o R 2R 2R 2R 2R +5 B 0 2 1.8432 Mhz crystal osc. +5 3 4 7 10 9 1 2 P T LD A B C CLR D 74LS163 counter 14 13 12 11 A B C D B 1 74HC08 B 2 B 3 triangle is symbol for clock input 6.091 IAP 2008 Lecture 4 28

RAMP Generator Output 6.091 IAP 2008 Lecture 4 29

R-2R Theory For linear circuits, superposition applies. Calculate contribute of bit n by setting all other inputs to zero. Equivalent resistance looking left or right is R ohms! Use Thevenin equivalent to show division by 2 n R same as R ohms same as R ohms same as R ohms R R R R 2R 2R 2R 2R +5V V o 6.091 IAP 2008 Lecture 4 30

DA Summary Output from digital to analog conversion are discrete levels. More bits means better resolution. An example of DA conversion Current audio CD s have 16 bit resolution or 65,536 possible output levels New DVD audio samples at 192 khz with 24 bit resolution or 2 24 = 16,777,216 6.091 IAP 2008 Lecture 4 31

Analog to Digital Conversion (ADC) Successive approximate conversion steps Scale the input to 0-3 volts (example) Sample and hold the input Internally generate and star case ramp and compare Flash Compare Compare voltage to one of 2 n possible voltage levels. 8 bit ADC would have 255 comparators. Note that by definition, ADC have quantizing errors (number of bits resolution) 6.091 IAP 2008 Lecture 4 32

Successive Approximation AD 6.111 L14, Fall 05 6.091 IAP 2008 Lecture 4 33

AD7871 Courtesy of Analog Devices. Used with permission. 6.091 IAP 2008 Lecture 4 34

Switch Bounce All mechanical switches have switch bounce +5V Vout 6.091 IAP 2008 Lecture 4 35

Debounce Circuit +5v 1K T 1K +5v bar T B bar SPDT switch B Requires SPDT switch 6.091 IAP 2008 Lecture 4 36

Lab 4 Use last three aisles on the left at the end of the 6.111 lab Pick up IC s and tools from LA s. Return IC s and tools to LA s at the end of the lab 6.091 IAP 2008 Lecture 4 37

Design, build and keep the electronics for a digital lock. Unlock key based on sequence of 0, 1. Lab 5 6.091 IAP 2008 Lecture 4 38