understanding flip flops

31
Software Developers View of Hardware Understanding Flip-Flops

Upload: gavhays

Post on 05-Dec-2014

10.420 views

Category:

Technology


2 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Understanding Flip Flops

Software Developers View of Hardware

Understanding Flip-Flops

Page 2: Understanding Flip Flops

What is a Flip-Flop?

A flip-flop is a bistable device. This means that output from the device can

be one of two possible states and will remain that way even after input signals are removed.

A flip-flop will only change state when commanded.

Because of this they form the basis of memory.

Page 3: Understanding Flip Flops

Components

A flip-flop has three (3) basic components:1. Latch

2. Clock

3. Trigger

Page 4: Understanding Flip Flops

Latches

The most basic of all latches is the RS latch. There are TWO types of RS latches, they

are:

NOR Latch NAND Latch

Page 5: Understanding Flip Flops

Latches

The basic understanding behind a latch is that if 1 is sent as the SET input then the output (Q) will be 1.

Likewise, if 1 is sent to the RESET input then the output (Q) will be 0.

The most important part is FEEDBACK which enables the latch to carry out the task of enabling memory.

Page 6: Understanding Flip Flops

NOR Latch

Firstly, lets look at the RESET condition. (Send 1 as RESET input)

1

0

Page 7: Understanding Flip Flops

Look at the Truth!!!!!!

A B X

0 0 1

0 1 0

1 0 0

1 1 0

Page 8: Understanding Flip Flops

Look at the Truth!!!!!!

A B X

0 0 1

0 1 0

1 0 0

1 1 0

Page 9: Understanding Flip Flops

NOR Latch

So therefore, if an at least one input is a 1 then the only possible output can be 0.

1

0

Page 10: Understanding Flip Flops

NOR Latch

So therefore, if an at least one input is a 1 then the only possible output can be 0.

1

0

0 0

11

Page 11: Understanding Flip Flops

NOR Latch

Next, lets look at the SET condition. (Send 1 as SET input)

0

1

Page 12: Understanding Flip Flops

NOR Latch

Next, lets look at the SET condition. (Send 1 as SET input)

01

0

01 1

Page 13: Understanding Flip Flops

NOR Latch

Next, lets look at the HOLD condition. (Will hold what ever was the previous output)

0

0

0

1

Page 14: Understanding Flip Flops

NOR Latch

Next, lets look at the HOLD condition. (Will hold what ever was the previous output)

0

0

0

10

1

Page 15: Understanding Flip Flops

NOR Latches

This is where the see saw effect comes into play:

Page 16: Understanding Flip Flops

NOR Latch

Finally, for a NOR latch when 1 and 1 are both entered this violates logic rules because Q and NOT Q cannot be the same.

It is referred to as being illegal.

Page 17: Understanding Flip Flops

NOR Latch Truth Table

Page 18: Understanding Flip Flops

NAND Latch

Firstly, lets look at the RESET condition. (Send 1 as RESET input)

0

1

Page 19: Understanding Flip Flops

Look at the Truth!!!!!!

A B X

0 0 1

0 1 1

1 0 1

1 1 0

Page 20: Understanding Flip Flops

Look at the Truth!!!!!!

A B X

0 0 1

0 1 1

1 0 1

1 1 0

Page 21: Understanding Flip Flops

NAND Latch

Firstly, lets look at the RESET condition. (Send 1 as RESET input)

0

1

1 1

0 0

Page 22: Understanding Flip Flops

NAND Latch

Next, lets look at the SET condition. (Send 1 as SET input)

1

01 1

0 0

Page 23: Understanding Flip Flops

NAND Latch

Next, lets look at the if 1 is sent to both inputs.

0

1

Page 24: Understanding Flip Flops

NAND Latch

A point to remember is that a NAND flip flop works oppositely to a NOR flip flop so an input of (0 0) is illegal. However, an input of (1 1) cause the gate to remember the previous input.

Page 25: Understanding Flip Flops

NAND Latch

Next, lets look at the if 1 is sent to both inputs.

1

1

What you will notice is that it depends on the see saw.

Page 26: Understanding Flip Flops

NAND Latch

Next, lets look at the if 1 is sent to both inputs.

1

1

What you will notice is that it depends on the see saw.

Page 27: Understanding Flip Flops

NAND Latch

Next, lets look at the if 1 is sent to both inputs.

1

1

What you will notice is that it depends on the see saw.

1

0

Page 28: Understanding Flip Flops

NAND Latch

Complete the following truth table depending on the inputs shown.

A B C D Q Q’

1 1 0 1

Page 29: Understanding Flip Flops

Clocked RS Latch

The logic behind this logic gate is the fact that there is another input called ENABLED.

This acts like a gate or a switch and when set to 1 the circuit will respond as usual. However, when it is set to zero the circuit will not respond.

Page 30: Understanding Flip Flops

Clocked RS Latch

Page 31: Understanding Flip Flops

Clocked RS Latch