Top Banner
JK & MASTER SLAVE FLIP-FLOP MADE BY- Krishma Parekh Enrollment NO.-140210107039 Computer branch- 3 rd SEMESTER
22

J - K & MASTERSLAVE FLIPFLOPS

Jan 22, 2017

Download

Education

Krishma Parekh
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: J - K & MASTERSLAVE FLIPFLOPS

JK & MASTER SLAVE FLIP-FLOP

MADE BY- Krishma Parekh Enrollment NO.-140210107039 Computer branch- 3rd SEMESTER

Page 2: J - K & MASTERSLAVE FLIPFLOPS

INTRODUCTION After getting problems SR-Flip flops , D-Flip

flops , T-Flip flops…which gives invalid state in the execution of the circuit

To solve up that Problem we got a new Flip-Flop which is called J-K Flip Flop

This Flip Flop removes invalid state but instead of invalid state the output of JK Flip Flop will toggle between 1 &0….

Now we will look upon this construction and working of this circuit and the solution of Toggle Condition…

Page 3: J - K & MASTERSLAVE FLIPFLOPS

What is a JK Flip-flop ? A flip-flop is a circuit that has two

stable states and can be used to store state information.

The flip-flop can be made to change state by signals applied to one or more control inputs and will have one or two outputs.

Page 4: J - K & MASTERSLAVE FLIPFLOPS

JK Terminology/Structure

Has 5 inputs named: J(set),K(reset), PR, CLR, and CLK

Has 2 outputs: Q and Q’

Set: when it stores a binary 1Cleared (reset): when it stores a binary 0

PR = PresetCLR = ClearCLK = Clock

Page 5: J - K & MASTERSLAVE FLIPFLOPS

Outputs

The Q output is the primary output. This means that the binary bit stored in the flip-flop, 1 or 0, is the same as Q.

The Q’ output is the opposite binary bit value that is stored in Q.

The PR and CLR inputs always override the J,K inputs.

Page 6: J - K & MASTERSLAVE FLIPFLOPS

Inputs: J and K

The logic states applied to the J and K inputs cause the flip-flop to operate 4 different ways.

The way the logic state is applied to J and K is called Mode of Operation.

The mode of operation refers to the condition of the flip-flop as it prepares for the positive clock pulse.

Page 7: J - K & MASTERSLAVE FLIPFLOPS

Four Modes Of Operation

J K Q Q’ Mode0 0 Q Q’ Memor

y1 0 1 0 Sets0 1 0 1 Resets1 1 Q’ Q Toggle

The 4 modes of operation are: hold, set, reset, toggle

JK contains an internal Active Low SR latch.

Page 8: J - K & MASTERSLAVE FLIPFLOPS

Active Low SR Latch

S’ – “set” R’ – “reset”

Q Q’

0 0 Invalid Invalid0 1 1 01 0 0 11 1 Q Q’

Point to remember:

A ‘0’ at the set or the reset will either

set or reset the value of Q.

Page 9: J - K & MASTERSLAVE FLIPFLOPS

Truth Table for NAND

A B X

0 0 1

0 1 1

1 0 1

1 1 0

A B C X0 0 0 10 0 1 10 1 0 10 1 1 11 0 0 11 0 1 11 1 0 11 1 1 0

2 Inputs: 3 Inputs:

Page 10: J - K & MASTERSLAVE FLIPFLOPS

Mode of Operation: Hold

J K Q Q’ Orig. Q Orig. Q’0 0 0 1 0 1

Hold: no change in Q.

Page 11: J - K & MASTERSLAVE FLIPFLOPS

Mode of Operation: Set

J K Q Q’ Orig. Q

Orig. Q’

1 0 1 0 0 1

Set: Q = 1.

Page 12: J - K & MASTERSLAVE FLIPFLOPS

Mode of Operation: Reset

J K Q Q’ Orig. Q

Orig. Q’

0 1 0 1 1 0

Reset: Q = 0.

Page 13: J - K & MASTERSLAVE FLIPFLOPS

Mode of Operation: Toggle

J K Q Q’ Orig. Q Orig. Q’

1 1 1 0 0 1

Toggle: Q = Q’.

Page 14: J - K & MASTERSLAVE FLIPFLOPS

Mode of Operation: Toggle again

J K Q Q’ Orig. Q

Orig. Q’

1 1 0 1 1 0

Toggle: Q = Q’.

Page 15: J - K & MASTERSLAVE FLIPFLOPS

During a Time Period

Page 16: J - K & MASTERSLAVE FLIPFLOPS

Characteristic Equation

Q J K Q(t + 1)0 0 0 00 0 1 00 1 0 10 1 1 11 0 0 11 0 1 01 1 0 11 1 1 0

Characteristic Equation:

Q(t+1) = J.Q’+ K’.Q

Page 17: J - K & MASTERSLAVE FLIPFLOPS

J K Q Q’ Mode0 0 Q Q’ Hold1 0 1 0 Sets0 1 0 1 Reset

s1 1 Q’ Q Toggl

e

Q(t+1) = J.Q’+ K’.QQ is the primary output.

Characteristic Equation

Page 18: J - K & MASTERSLAVE FLIPFLOPS

Master Slave D Flip-flop

A negative edge triggered flip-flop:

On the negative edge of the clock, the master captures the D input and the slave outputs it.

DC

Y DC

QQ

Master Slave

Page 19: J - K & MASTERSLAVE FLIPFLOPS

Master-Slave J-K Flip-FlopA master-slave flip-flop contains two flip-flops/latches:

Master S-C latch (S-C Flip-Flop) - receives data while the input trigger clock is HIGH.

Slave S-C latch (S-C Flip-Flop) - receives data from the master and output it when the clock goes LOW.

Page 20: J - K & MASTERSLAVE FLIPFLOPS

Two RS flip-flops are combined together using an inverter to construct a master-slave JK flip-flop.

When the clock input Cp is 0, the output of the inverter is 1. The slave latch is then enabled, and its output Q is equal to the master latch output. The master latch is disabled, because Cp is 0.

When a logic-1 clock pulse is applied, the values on S and R control the value stored in the master latch. The slave is disabled as long as the pulse remains at the 1 level, because its Cp input is equal to 0. Any changes in the external S and R inputs change the master output, but cannot affect the slave output.

When the pulse returns to 0, the master is disabled and is isolated from the S and R inputs. At the same time, the slave is enabled, and the current value of master output is transferred to the output of the flip-flop (slave output).

It solves up the problem occur in JK Flip Flop and solves up race around condition which occurs in other flip flops.

Master-Slave J-K Flip-Flop – Operation of the Circuit…

Page 21: J - K & MASTERSLAVE FLIPFLOPS

Master-Slave J-K Flip-Flop – Timing Diagram

Note: Here NC means no change.

Page 22: J - K & MASTERSLAVE FLIPFLOPS

THANKYOU FOR WATCHING !!!