trts d flip flop1

13
D Flip-Flop 1

Upload: abdullah254el

Post on 16-Jul-2015

59 views

Category:

Documents


0 download

TRANSCRIPT

D Flip-Flop

1

2

Means that the data in and out the same intervention required.

Used as a storage box for one

D Flip-flop D flip-flop: single input D (data)

D=HIGH a SET state D=LOW a RESET state

Q follows D at the clock edge.

Convert S-R flip-flop into a D flip-flop: add an inverter.

D Flip-flop 3

A positive edge-triggered D flip-flop formed with an S-R flip-flop.

SCR

Q

Q'

CLK

D D CLK Q(t+1) Comments

1 1 Set

0 0 Reset

= clock transition LOW to HIGH

Use in the design to make D Flip flop NAND gate.

Circuit of D flip flop

4

D Flip-Flop: Example Timing

5

Q

D

CLK

Q=D=1 Q=D=1Q=D=0 Q=D=1No Change

Q=D=0No Change

Q=D=0No Change

Q=D=0

POS & NEG Edge Triggered D

6

QCLK

D Q

D CLK

0 0 1

1 1 0

: Rising Edge of Clock

QQ

D CLK

0 0 1

1 1 0

: Falling Edge of Clock

QQ

QCLK

D Q

Positive Edge Trigger

Negative Edge Trigger

Example :

How to connect two D flip flop

7

Ring counters are implemented using shift registers. It is essentially a

circulating shift register connected so that the last flip-flop shifts its value into

the first flip-flop. There is usually only a single 1 circulating in the register, as

long as clock pulses are applied. (Starts 1000->0100->0010->0001 repeat)

Ring Counter

8

1000

0001 0010

0100

Clock Q0 Q1 Q2 Q3

0 1 0 0 0 1 0 1 0 0 2 0 0 1 0 3 0 0 0 1

Partner work

9

Partner work Example: Connect )6-bit( the ring counter and complete the schedule ?

10

CLK

Q0D Q D Q D Q D Q D Q D Q

Q1 Q2 Q3 Q4 Q5

Clock Q0 Q1 Q2 Q3 Q4 Q5

0 1 2 3 4 5

Partner work Example: Connect )6-bit( the ring counter and complete the schedule ?

11

CLK

Q0D Q D Q D Q D Q D Q D Q

Q1 Q2 Q3 Q4 Q5

Clock Q0 Q1 Q2 Q3 Q4 Q5

0 1 0 0 0 0 0 1 0 1 0 0 0 0 2 0 0 1 0 0 0 3 0 0 0 1 0 0 4 0 0 0 0 1 0 5 0 0 0 0 0 1

100000

010000

001000

000100

000010

000001

Summary

12

Questions

13

Thank you for lesson