DIGITAL ELECTRONICS WITH MULTISIM

Slides:



Advertisements
Similar presentations
Part 4: combinational devices
Advertisements

Registers and Counters
التصميم المنطقي Second Course
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
1 Chapter 4 Combinational and Sequential Circuit.
ECE C03 Lecture 91 Lecture 9 Registers, Counters and Shifters Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
Sequential Circuit Introduction to Counter
KU College of Engineering Elec 204: Digital Systems Design
A.Abhari CPS2131 Registers A register is a group of n flip-flops each of them capable of storing one bit of information There are two types of registers:
Counters  A counter is a device which stores (and sometimes displays) the number of times a particular event or process has occurred, often in relationship.
Part 2: DESIGN CIRCUIT. LOGIC CIRCUIT DESIGN x y z F F = x + y’z x y z F Truth Table Boolean Function.
SEQUENTIAL CIRCUITS USING TTL 74XX ICS
Registers and Counters
1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.
Logic Gates Combinational Circuits
ReVieW Combinational & Sequential Logic Circuit EKT 221 / 4 DIGITAL ELECTRONICS II.
Introduction to Digital Logic Design Appendix A of CO&A Dr. Farag
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
Rabie A. Ramadan Lecture 3
P. 4.1 Digital Technology and Computer Fundamentals Chapter 4 Digital Components.
2017/4/24 CHAPTER 6 Counters Chapter 5 (Sections )
DIGITAL 2 : EKT 221 Date : 15 th July 2005 Lecture : 1 hrs.
7-6 단일 레지스터에서 Microoperation Multiplexer-Based Transfer  Register 가 서로 다른 시간에 둘 이상의 source 에서 data 를 받을 경우 If (K1=1) then (R0 ←R1) else if (K2=1) then.
 Counters are sequential circuits which "count" through a specific state sequence. They can count up, count down, or count through other fixed sequences.
Registers and Counters Chapter 6. Digital Circuits 2 Clocked sequential circuits a group of flip-flops and combinational gates connected to form a feedback.
Chapter 1_4 Part III more on … Counters Chapter 1_4 Part III more on … Counters.
Sequential logic circuits
Counters.
Chapter 6 – Digital Electronics – Part 1 1.D (Data) Flip Flops 2.RS (Set-Reset) Flip Flops 3.T Flip Flops 4.JK Flip Flops 5.JKMS Flip Flops Information.
Counters and registers Eng.Maha Alqubali. Registers Registers are groups of flip-flops, where each flip- flop is capable of storing one bit of information.
1 Registers A register is a group of n flip-flops each of them capable of storing one bit of information There are two types of registers: parallel and.
1 Homework Reading –Tokheim Chapter 9.1 – 9.6 Machine Projects –Continue on mp3 Labs –Continue in labs with your assigned section.
FLIP FLOPS Binary unit capable of storing one bit – 0 or 1
EET 1131 Unit 12 Shift Registers
Prof. Sin-Min Lee Department of Computer Science
LATCHED, FLIP-FLOPS,AND TIMERS
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
EKT 221 – Counters.
EKT 221 : Digital 2 COUNTERS.
Sequential Logic Counters and Registers
SLIDES FOR CHAPTER 12 REGISTERS AND COUNTERS
Sequential Circuit: Counter
Basics of digital systems
Asynchronous Inputs of a Flip-Flop
Summary Half-Adder Basic rules of binary addition are performed by a half adder, which has two binary inputs (A and B) and two binary outputs (Carry out.
FUNCTION OF COMBINATIONAL LOGIC CIRCUIT
ECE Digital logic Lecture 16: Synchronous Sequential Logic
Digital System Design Review.
Registers and Counters
Registers and Counters Register : A Group of Flip-Flops. N-Bit Register has N flip-flops. Each flip-flop stores 1-Bit Information. So N-Bit Register Stores.
Digital Design Fundamentals
Chapter 6 Functions of Combinational Logic
LECTURE 15 – DIGITAL ELECTRONICS
EET 1131 Unit 12 Shift Registers
COE 202: Digital Logic Design Sequential Circuits Part 4
29-Nov-18 Counters Chapter 5 (Sections ).
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
Registers and Register Transfers
Computer Architecture and Organization: L02: Logic design Review
CSE 370 – Winter Sequential Logic-2 - 1
Thought of the Day To be what we are, and to become
FLIP-FLOPS.
Digital Logic Department of CNET Chapter-6
Digital Logic Department of CNET Chapter-6
Counters.
Half & Full Subtractor Half Subtractor Full Subtractor.
Instruction execution and ALU
Half & Full Subtractor Half Subtractor Full Subtractor.
Digital Electronics and Logic Design
Unit IV Adders Subtractors Flip Flops Counters Multiplexes and De multiplexes. Integrated circuits-Op. amp – Characteristics Inverting amplifier - Non-inverting.
Presentation transcript:

DIGITAL ELECTRONICS WITH MULTISIM CHAPTER 2: DIGITAL ELECTRONICS WITH MULTISIM

MultiSim: Arithmetic Circuits, Flip-flops, Counters, Shift Registers and Multiplexers

Arithmetic Circuits Arithmetic circuit perform mathematical functions such as subtraction, multiplication, and division. Eg: adder circuits Examples of adder ICs are: 7438N 4-bit binary adder 4008BT 4-bit full adder Samjy/DENC 2533

Adder Half adder: Full Adder: The half adder accepts two binary digits on its inputs and produces two binary digits on its outputs, a sum bit and a carry bit. Full Adder: The full adder accepts two binary digits on its inputs and input carry and generates a sum output and output carry. Samjy/DENC 2533

HALF ADDER 1. LOGIC CIRCUIT 2. BOOLEON EXPRESSION A B COUT=AB (AND) Sum, Σ = AB’ + A’B = AB (XOR) 3. LOGIC DIAGRAM A B COUT Σ 1 4. TRUTH TABLE Samjy/DENC 2533

FULL ADDER 1. LOGIC CIRCUIT A 2. BOOLEON EXPRESSION B Cin Sum, Σ=(AB)CIN COUT=AB+(AB)CIN 2. BOOLEON EXPRESSION A B CIN COUT Σ 1 3. LOGIC DIAGRAM 4. TRUTH TABLE Samjy/DENC 2533

Adder Circuits using 4008BT Full Adder IC A3A2A1A0 + B3B2B1B0 Samjy/DENC 2533

Full Adder Circuit (2) A+B+Cin Samjy/DENC 2533

Binary Subtractor Subtractor circuits take two binary numbers as input and subtract one binary number input with other binary number input. There are 4 basic rules for subtracting bits; 0 – 0 = 0 1 – 1 = 0 1 – 0 = 1 1 0 – 1 = 1 0 – 1 with a borrow of 1 Samjy/DENC 2533

EXAMPLE 2 :- Subtract 100002 – 111012 SOLUTION :- 1 0 0 0 0 10000 1 0 0 0 0 10000 - 1 1 1 0 1 + 00010 (1’C) 10010 The answer is negative. The true magnitude is the 1’s complement of 10010 or 01101. The answer is -01101. *Check. 1610 - 2910 = -1310 No overflow Samjy/DENC 2533

1st Complement Subtractor Circuits 4 – 9 = -5 Samjy/DENC 2533

Sequential Circuit: Flip-Flops(ffs) Is a logic circuit with a memory characteristics such that its output (Q) will go to a new stage in response to an input pulse, and will remain that new state after the input pulse is terminated. Is a sequential circuit, whose output changes when its CLOCK input triggers. Several types of edge-triggered ffs, such as D, JK, SC ff. Synchronous control input – ffs is synchronous with PGT/NGT (positive/negative edge triggered) signal applied to CLOCK. Asynchronous control input-set the ffs to ‘1’state or ‘0’ state by its 2 asynchronous inputs: PRESET and CLEAR. Samjy/DENC 2533

Constructed of JK Flip-Flop Circuit using 74LS112N IC Samjy/DENC 2533

Sequential Circuit: Counters Flip-flops and logic gates could be connected to function as counters and registers. Counters and related circuits may be used to count items, to time functions, to synchronize various events, to divide, and to control results based upon the outcome of a counting function. The different types of counters are usually specified by their activity and the type of output they provide. Counters can be categorized as Up or Down counters. Samjy/DENC 2533

Asynchronous and Synchronous Counters A synchronous counter circuit has the operation of flip-flops is synchronized by a common clock pulse so that when several flip flops must change state, the state changes occur simultaneously. Asynchronous counters (Ripple counter) which the state change of one flip flop triggers the next flip flop in line. It uses the external event to directly SET or CLEAR a flip-flop when it occurs. Each flip-flop in the ripple counter is clocked by the output from the previous flip-flop. Only the first flip-flop is clocked by an external clock. Samjy/DENC 2533

Implementation with Different FF Types T flip-flops is well suited for straightforward binary counters -but yielded worst gate and literal count R-S flip-flops don't really exist. J-K flip-flops yielded lowest gate count -tend to yield best choice for reducing gate count in packaged logic D flip-flops yield simplest design procedure -best choice where area/literal count is the key. Flip-flops excitation table Samjy/DENC 2533

TYPES OF SYNCHRONOUS COUNTER Up counter. - Counter that counts upward from 0 to a maximum count. Down counter. - Counter that counts from a maximum count downward to 0. Up / Down counter. - Counter that can count up or down depending on how its input are activated. Samjy/DENC 2533

SYNCHRONOUS (Up Counter) Samjy/DENC 2533

TRUTH TABLE Present state Next state Flip-flop input Q1 Q2 Q3 J1 K1 J2 1 X Samjy/DENC 2533

SCHEMATIC DIAGRAM Samjy/DENC 2533

SYNCHRONOUS (Down Counter) Samjy/DENC 2533

TRUTH TABLE Present state Next state Flip-flop input Q1 Q2 Q3 J1 K1 J2 1 X Samjy/DENC 2533

SCHEMATIC DIAGRAM Samjy/DENC 2533

Asynchronous (Ripple Counter) Samjy/DENC 2533

74LS293: 4-STAGE IC ASYNCRONOUS COUNTER Example of circuit using IC for 4-stage asynchronous counter. This circuit uses the 74LS293 as a MOD-14 Counter. Samjy/DENC 2533

The Synchronous Counter 3-stage synchronous counter A synchronous counter is a counter whose ffs are clocked simultaneously by a common clock source. The synchronization of the clocking event causes the transitions of all of the ffs states to occur simultaneously. IC: 74LS393N synchronous counter Samjy/DENC 2533

Sequential Circuit: Shift Registers Shift registers circuits are synchronous digital circuits used to store or move binary data. These types of circuits consist either of a series of FFs in groups which can store one bit of data each or as shift register ICs that store larger groups of data. The amount of data that can be stored in a shift register depends on the width of the register and the number of storage FFs contained in the register. Basic method of shift registers: Serial in/serial out shift register Serial in/ parallel out Parallel in/serial out Parallel in/parallel out Samjy/DENC 2533

Serial In/Serial Out Shift Registers Samjy/DENC 2533

Serial In/Parallel Out Shift Registers Samjy/DENC 2533

Multiplexer

Multiplexer digital atau pemilih data adalah litar logik yang menerima beberapa data masukan digital dan memilih satu daripadanya pada bila-bila masa untuk dihantar ke keluaran. Kitaran data masukan yang diperlukan oleh keluaran adalah dikawal oleh masukan SELECT (biasanya dikenali sebagai alamat masukan). Samjy/DENC 2533

2-MASUKAN MULTIPLEXER Mempunyai data masukan I0 dan I1 dan masukan SELECT “S”. Z = I0 S’ + I1S S OUTPUT I1 1 I0 Samjy/DENC 2533

4-MASUKAN MULTIPLEXER S OUTPUT I0 1 I1 I2 I3 Samjy/DENC 2533

4-to-1 Mux Using 2-to-1 Mux in Multisim Samjy/DENC 2533

Enable akan menghasilkan samada keluaran normal atau sebaliknya. Jika enable (E’)=0, maka S2,S1 dan S0 akan memilih salah satu daripada data masukan dari I0 hingga I7. Jika enable (E’)=1 multiplexer tidak akan berfungsi yang mana Z=0 dan mengabaikan masukan SELECT. Samjy/DENC 2533

What is Demultiplexer ? Demultiplexer is known as data distributors. It performs the reverse operation of multiplexer. It takes input and distributes it over several outputs. Samjy/DENC 2533

Demultiplexer LOGIC DIAGRAM Data Input SELECT Input O0 O1 ON-1 DEMUX DATA input transmitted to only one of the outputs as determined by select input code. Samjy/DENC 2533

A one-to-two-line demultiplexer is shown below Clock Output Switch S Samjy/DENC 2533

1-to-4 line Demultiplexer Data input Select Lines Data output lines Samjy/DENC 2533

1-to-16 Demux using 74HC154NT: in Multisim Samjy/DENC 2533