Digital Electronics I

Similar documents
Sample Test Paper - I

CMPE12 - Notes chapter 2. Digital Logic. (Textbook Chapters and 2.1)"

Digital Electronics Final Examination. Part A

Gates and Flip-Flops

CMPE12 - Notes chapter 1. Digital Logic. (Textbook Chapter 3)

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

Boolean algebra. Examples of these individual laws of Boolean, rules and theorems for Boolean algebra are given in the following table.

UNIVERSITI TENAGA NASIONAL. College of Information Technology

Chapter 7. Sequential Circuits Registers, Counters, RAM

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

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

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.

Lecture 9: Digital Electronics

Synchronous Sequential Logic

Switches: basic element of physical implementations

DIGITAL LOGIC CIRCUITS

Number System. Decimal to binary Binary to Decimal Binary to octal Binary to hexadecimal Hexadecimal to binary Octal to binary

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

Floating Point Representation and Digital Logic. Lecture 11 CS301

Cs302 Quiz for MID TERM Exam Solved

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

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

EE141Microelettronica. CMOS Logic

Experiment 7: Magnitude comparators

Fundamentals of Digital Design

Lab 3 Revisited. Zener diodes IAP 2008 Lecture 4 1

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

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

CSC9R6 Computer Design. Practical Digital Logic

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

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

Dept. of ECE, CIT, Gubbi Page 1

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

School of Computer Science and Electrical Engineering 28/05/01. Digital Circuits. Lecture 14. ENG1030 Electrical Physics and Electronics

Lecture 17: Designing Sequential Systems Using Flip Flops

Topics. CMOS Design Multi-input delay analysis. John A. Chandy Dept. of Electrical and Computer Engineering University of Connecticut

ECE 545 Digital System Design with VHDL Lecture 1A. Digital Logic Refresher Part A Combinational Logic Building Blocks

Sequential Circuit Analysis

Chapter 7 Logic Circuits

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

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

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

Lecture 4: Implementing Logic in CMOS

of Digital Electronics

Sequential Logic. Rab Nawaz Khan Jadoon DCS. Lecturer COMSATS Lahore Pakistan. Department of Computer Science

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

Implementation of Boolean Logic by Digital Circuits

ESE 570: Digital Integrated Circuits and VLSI Fundamentals

DIGITAL LOGIC CIRCUITS

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

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

Lecture 22 Chapters 3 Logic Circuits Part 1

UNIVERSITY OF WISCONSIN MADISON

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION

Lecture A: Logic Design and Gates

Philadelphia University Student Name: Student Number:

CHW 261: Logic Design

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

Standard & Canonical Forms

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

UNIT 8A Computer Circuitry: Layers of Abstraction. Boolean Logic & Truth Tables

Integrated Circuits & Systems

Introduction to CMOS VLSI Design Lecture 1: Introduction

Topics. Dynamic CMOS Sequential Design Memory and Control. John A. Chandy Dept. of Electrical and Computer Engineering University of Connecticut

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

CS/COE1541: Introduction to Computer Architecture. Logic Design Review. Sangyeun Cho. Computer Science Department University of Pittsburgh

Fig. 1 CMOS Transistor Circuits (a) Inverter Out = NOT In, (b) NOR-gate C = NOT (A or B)

Chapter 14 Sequential logic, Latches and Flip-Flops

Lecture 1: Circuits & Layout

Chapter 1: Logic systems

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

ECE 545 Digital System Design with VHDL Lecture 1. Digital Logic Refresher Part A Combinational Logic Building Blocks

L2: Combinational Logic Design (Construction and Boolean Algebra)

EEE130 Digital Electronics I Lecture #4

Introduction to Computer Engineering. CS/ECE 252, Spring 2017 Rahul Nayar Computer Sciences Department University of Wisconsin Madison

XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL.

Digital Circuits and Systems

S No. Questions Bloom s Taxonomy Level UNIT-I

ECE 342 Electronic Circuits. Lecture 34 CMOS Logic

E40M. Binary Numbers. M. Horowitz, J. Plummer, R. Howe 1

EEC 118 Lecture #6: CMOS Logic. Rajeevan Amirtharajah University of California, Davis Jeff Parkhurst Intel Corporation

Vidyalankar S.E. Sem. III [INFT] Analog and Digital Circuits Prelim Question Paper Solution

SAU1A FUNDAMENTALS OF DIGITAL COMPUTERS

Introduction to Computer Engineering. CS/ECE 252, Fall 2012 Prof. Guri Sohi Computer Sciences Department University of Wisconsin Madison

BOOLEAN ALGEBRA. Introduction. 1854: Logical algebra was published by George Boole known today as Boolean Algebra

Lecture 2 Review on Digital Logic (Part 1)

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING QUESTION BANK

Boole Algebra and Logic Series

Boolean Algebra & Logic Gates. By : Ali Mustafa

KUMARAGURU COLLEGE OF TECHNOLOGY COIMBATORE

COSC 243. Introduction to Logic And Combinatorial Logic. Lecture 4 - Introduction to Logic and Combinatorial Logic. COSC 243 (Computer Architecture)

Lecture 14: State Tables, Diagrams, Latches, and Flip Flop


Chapter 2: Switching Algebra and Logic Circuits

ELCT201: DIGITAL LOGIC DESIGN

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

Homework Assignment #1 Solutions EE 477 Spring 2017 Professor Parker

Digital Logic Appendix A

CMOS Digital Integrated Circuits Lec 13 Semiconductor Memories

Transcription:

References Digital Electronics I Katz, R.H. (2004). Contemporary logic design. Benjamin/Cummings. Hayes, J.P. (1993). Introduction to digital logic design. Addison-Wesley. Horowitz, P. & Hill, W. (1989). The art of electronics. Cambridge University Press. J. & Hayes-Gill, B. (1998). Introduction to digital electronics. Butterworth-Heinemann. Practical references http://www.play-hookey.com/digital/ http://en.wikipedia.org/wiki/digital_circuit http://www.ee.ic.ac.uk/hp/staff/dmb/courses/dig2/dig2.htm

The nature of the p-n junction is that it will conduct current in the forward direction but not in the reverse direction.

From Analog to Digital : TTL, xmos TTL The transistor-transistor-logic (TTL) family was developed in the use of transistor switches for logical operations and defines the binary values as 0 V to 0.8 V = logic 0 2 V to 5 V = logic 1 TTL are inexpensive, but draw a lot of power and must be supplied with +5 volts. Individual gates may draw 3 to 4 ma. The low power Schottky versions draw only 20% of the power, but are more expensive. CMOS The complementary metal oxide semiconductor family (CMOS) has equivalents to most of the TTL chips. CMOS chips are much lower in power requirements (drawing about 1 ma) and operate with a wide range of supply voltages (typically 3 to 18 volts). A drawback is extreme sensitivity to static electricity - they must be carefully protected from static discharges. NMOS and PMOS P- and N-channel Metal Oxide Semiconductors (PMOS and NMOS) offer the advantage of higher component density than TTL chips. They are sensitive to damage from electrical discharge.

npn pnp

7404

TTL logic levels: making the digital (standard TTL) VOH Min = Output voltage high minimum with up to 0.4 ma load. A good chip is guaranteed to output a minimum of 2.4 V logic high up to 0.4 ma VOL Max = Output voltage low maximum with up to 16 ma load. A good chip is guaranteed to output a maximum of 0.4 volts up to 16 ma VIH Min = Input voltage high minimum 2.0 V. A good chip will recognize 2.0 V or greater as a logic high and draw no more than 0.04 ma input current. VIL Min = Input voltage low maximum 0.8 V. A good chip will recognize 0.8 V or less as a logic low and draw no more than 1.6 ma input current.

Binary number system -> 0,1 0 0 10 1010 1 11 1011 10 12 1100 11 13 1101 100 14 1110 101 15 1111 110 16 10000 111 1000 4+5 = 100+101 = 1001 11 1001

The Mathematics of Boolean Algebra (Stanford Encyclopedia of Philosophy - plato.stanford.edu/entries/boolalg-math) Boolean algebra is the algebra of two-valued logic with only sentential connectives, or equivalently of algebras of sets under union and complementation. The rigorous concept is that of a certain kind of algebra, analogous to the mathematical notion of a group. This concept has roots and applications in logic (Lindenbaum-Tarski algebras and model theory), set theory (fields of sets), topology (totally disconnected compact Hausdorff spaces), foundations of set theory (Boolean-valued models), measure theory (measure algebras), functional analysis (algebras of projections), and ring theory (Boolean rings). The study of Boolean algebras has several aspects: structure theory, model theory of Boolean algebras, decidability and undecidability questions for the class of Boolean algebras, and the indicated applications. x + (x y) = x x (x + y) = x x + ( x) = 1 x ( x) = 0

Binary functions of two variables: 3 operations on two variables, ( blank and, or,! not) Null 0 A not or B!(A B) A and B AB A exclusive nor B AB (!A)(!B) A and not B A(!B) not B!B A A A or not B A!B not A and B (!A)B not A!A B B not A or B!A B A exclusive or B A(!B) (!A)B not A and B (!A)B A or B A B identity 1

Boolean Algebra Theorems: ( blank and, or,! not) ABC = (AB)C = A(BC) A B C = A (B C) = (A B) C associative property AB = BA A B = B A commutative property A (!A) = 0 A =!(!A) A!A = 1 single value theorems A AB = A A (!A)B = A B two variable theorems A 1 = 1 A 0 = A A0 = 0 identity operations

Bitwise Operations Bitwise AND and OR c = a & b where ci = 1 if ai = 1 and bi = 1, i [0,7] d = a b where dj = 1 if aj = 1 or bj = 1, j [0, 7] example Position 7 6 5 4 3 2 1 0 Value 128 64 32 16 8 4 2 1 a 1 0 0 0 0 1 1 b 1 1 0 0 0 0 1 c (a & b) 1 0 0 0 0 0 1 d (a b) 1 1 0 0 0 1 1

Bitwise Operations Bit Shifting Bit shifting (left or right) is simply pushing all of the bits in a byte left or right, filling the gaps made at one end with zeros, kicking the high bits off the other end. Shifting left is equivalent to multiplying by a power of 2 as long as only zeros are discarded from the top. Shifting right is equivalent to dividing by a power of 2, discarding any remainder. a << 3 == a 2 3 4-4 ; a >> 4 == a 2 == a 2 example Position Value 7 6 5 4 3 2 1 0 128 64 32 16 8 4 2 1 a 1 0 0 0 0 1 1 0 a << 1 0 0 0 0 1 1 0 0 a >> 1 0 1 0 0 0 0 1 1

Bitwise Operations Masking To retrieve the value of one bit, all we have to do is create a mask that hides all of the other bits. The solution is, to get the value V of bit i from byte a: V = ((a & (1 << i))!= 0) example Position Value 7 6 5 4 3 2 1 0 128 64 32 16 8 4 2 1 a 1 0 0 0 0 1 1 0 1 << 2 0 0 0 0 0 1 0 0 a & (1 << 2) 0 0 0 0 0 1 0 0 1 << 3 0 0 0 0 1 0 0 0 a & (1 << 3) 0 0 0 0 0 0 0 0

Bitwise Operations Setting and Unsetting Bits To set a bit (change its value to 1), we have to find an operation which will leave a '1' where we want and leave other bits unchanged. To set bit i in byte a, leaving the result as a new : a new = a (1 << i) example Position Value 7 6 5 4 3 2 1 0 128 64 32 16 8 4 2 1 a 1 0 0 0 0 1 1 0 1 << 3 0 0 0 0 1 0 0 0 a (1 << 3) 1 0 0 0 1 1 1 0 ~(1 << 2) 1 1 1 1 1 0 1 1 a & ~(1 << 2) 1 0 0 0 0 0 1 0

Combinational Logic Gates

Combinational Logic Gates with Truth Tables

DeMorgan s Theorem Any logical binary expression remains unchanged if one 1. Changes all variables to their complements. 2. Changes all AND operations to ORs. 3. Changes all OR operations to ANDs. 4. Takes the complement of the entire expression.

Sequential Logic Gates S/R flip-flop Clocked S/R flip-flop state and next state table S R Q (now) Q+ (next) 0 0 0 Q 0 0 1 1 0 1 0 0 0 1 1 0 1 0 0 1 1 0 1 1 1 1 0 x 1 1 1 x characteristic equation: Q+ = S + R Q

Sequential Logic Gates state and next state table clocked JK flip flop J K Q (now) Q+ (next) 0 0 0 0 0 0 1 1 0 1 0 0 0 1 1 0 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1 0 characteristic equation: Q+ = K Q + JQ

Sequential Logic Gates state and next state table clocked D flip-flop D Q (now) Q+ (next) 0 0 0 0 1 0 1 0 1 1 1 1 characteristic equation: Q+ = D whatever D is will be Q+ (the next Q) -> D flip flop is a hold circuit (a latch)

Sequential Logic Gates, applied: timers 555 timer (control voltage) Vcc Threshold input Application circuit trigger output reset input ground See: http://www.play-hookey.com/digital/timer_555.html for more details

The three resistors in the voltage divider all have the same value so the comparator reference voltages are 1/3 and 2/3 of the supply voltage, The internal flip-flop changes state when the trigger input at pin 2 is pulled down below +VCC/3. When this occurs, the output (pin 3) changes state to +VCC and the discharge transistor (pin 7) is turned off. If the threshold input (pin 6) is now raised above (2/3)+VCC, the output will return to ground and the discharge transistor will be turned on again. When the threshold input returns to ground, the IC will remain in this state, which was the original state. One way to allow the threshold voltage (pin 6) to gradually rise to (2/3)+VCC is to connect it to a capacitor being allowed to charge through a resistor. In this one can adjust the R and C values for almost any time interval. The 555 can either produce a single pulse when triggered, or it can produce a continuous pulse train (as long as it remains powered).

Multiplexers many inputs, one output two inputs X0, X1: data A, B: addressing lines 1 addressing line selects from 2 data sources 2 addressing lines select from 4 data source -> 8 lines select from 2^8 data sources four inputs -> n lines select from 2^n data sources -> used to combine multiple digital signals onto a single transmission line Requirement: frequency of the slowest data line must be at least twice the frequency of the address line switching

Demultiplexers one input, many outputs two outputs 2 outputs need one address line 4 outputs require 2 address lines -> 2^n outputs require n address lines four outputs These circuits take in a n-bit binary number and produce an output on one of the 2^n output lines. The output line is chosen by the current state of the address lines.

NAND Gate IC7400