Sequential Circuit Latch Flipflop MOHD YAMANI IDRIS NOORZAILY

  • Slides: 29
Download presentation
Sequential Circuit Latch & Flip-flop MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 1

Sequential Circuit Latch & Flip-flop MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 1

Contents n n Introduction Memory Element Latch q SR latch q D latch Flip-flop

Contents n n Introduction Memory Element Latch q SR latch q D latch Flip-flop q SR flip-flop q D flip-flop q JK flip-flop q T flip-flop MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 2

Introduction n Sequential circuit consists of feedback path and several memory elements n Sequential

Introduction n Sequential circuit consists of feedback path and several memory elements n Sequential circuit = Combinational Logic + Memory Elements MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 3

Introduction n There are two types of sequential circuit q q n Multivibrator –

Introduction n There are two types of sequential circuit q q n Multivibrator – sequential circuit category – can be q q q n n Synchronous – output change at certain time Asynchronous – output change any time Bistable – consist of two stable condition Monostable – consist of one stable condition Astable - no stable condition Bistable logic device is latch and flip-flop Latch and flip-flop differ by the method used to change stable condition MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 4

Memory Element n n Memory element device that can remember a value for a

Memory Element n n Memory element device that can remember a value for a certain period, or change value based on the input instruction Example: Latch and flip-flop Commands for latches include set and reset commands MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 5

Memory Element n Flip-flop is a memory element which change its condition based on

Memory Element n Flip-flop is a memory element which change its condition based on clock signal n Clock is a square waveform MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 6

Memory Element n There are two types of trigger/activator q q n Pulse triggered

Memory Element n There are two types of trigger/activator q q n Pulse triggered Edge triggered Latch ON=1, OFF=0 Edge triggered q q q Flip-flop Positive edge triggered (ON=when 0 to 1, OFF=other time) Negative edge triggered (ON=when 1 to 0, OFF=other time) MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 7

SR Latch n n Output has complement: Q and Q’ When Q HIGH, latch

SR Latch n n Output has complement: Q and Q’ When Q HIGH, latch in SET condition When Q LOW, latch in RESET condition For SR with active high input (also known as NOR gate latch) q q R = HIGH (and S=LOW) – RESET condition S = HIGH (and R=LOW) – SET condition Both LOW – no condition change Both HIGH - Q and Q’ becomes LOW (invalid) MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 8

SR Latch n For all S’R’ with active LOW input (also known as NAND

SR Latch n For all S’R’ with active LOW input (also known as NAND gate latch) q q R = LOW (and S=HIGH) – RESET condition S = LOW (and R=HIGH) – SET condition Both HIGH – no condition change Both LOW - Q and Q’ becomes HIGH (invalid) MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 9

SR Latch n SR with active HIGH input n S’R’ with active LOW input

SR Latch n SR with active HIGH input n S’R’ with active LOW input MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 10

SR Latch n SR with active HIGH input n S’R’ with active LOW input

SR Latch n SR with active HIGH input n S’R’ with active LOW input MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 11

SR Latch with Gate n SR latch + enable (EN) input amd 2 NAND

SR Latch with Gate n SR latch + enable (EN) input amd 2 NAND gate SR Latch with Gate MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 12

SR Latch with Gate n n n Output change (if needed) only when EN

SR Latch with Gate n n n Output change (if needed) only when EN at HIGH condition Which condition is invalid? Criteria Table MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 13

D Latch with Gate n n Make input R the same as S’ -

D Latch with Gate n n Make input R the same as S’ - D Latch with Gate D latch eliminate invalid condition in SR latch MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 14

D Latch with Gate n When EN is HIGH q q n n D=HIGH

D Latch with Gate n When EN is HIGH q q n n D=HIGH – latch is in SET D=LOW – latch is in RESET Therefore, when EN is HIGH, Q will follow input D Criteria Table: MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 15

Edge Triggered Flip-flop n n n Flip-flop – bistable synchronous device Output change its

Edge Triggered Flip-flop n n n Flip-flop – bistable synchronous device Output change its condition at certain point on input trigger named clock Condition change either at positive edge (up edge) or at negative edge (down edge) of clock signal Positive Edge Negative Edge MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 16

flip-flop SR, D and JKFlip-flop edge triggered is marked Edge Triggered n with “>”

flip-flop SR, D and JKFlip-flop edge triggered is marked Edge Triggered n with “>” symbol at clock input Positive edge triggered flip-flop Negative edge triggered flip-flop MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 17

SR Flip-flop n SR flip-flop, at edge triggered clock pulse q q n S=HIGH

SR Flip-flop n SR flip-flop, at edge triggered clock pulse q q n S=HIGH (and R=LOW) – SET condition R=HIGH (and S=LOW) – RESET condition Both input LOW – no change Both input HIGH - invalid Criteria table of edge triggered SR flip-flop MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 18

SR Flip-flop n It consist of three parts q q q n NAND latch

SR Flip-flop n It consist of three parts q q q n NAND latch Pulse steering circuit Pulse transaction circuit detector (or edge detector) Pulse transaction detector circuit will detect up trigger (or down) and produce very short duration spike MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 19

SR Flip-flop n Pulse transaction detector MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 20

SR Flip-flop n Pulse transaction detector MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 20

D Flip-flop n D flip-flop: one input D (data) q q n n D=HIGH

D Flip-flop n D flip-flop: one input D (data) q q n n D=HIGH – SET condition D=LOW – RESET condition Q will follow D at clock edge To change SR flip-flop to D flip-flop: add inverter MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 21

D Flip-flop n Usage: Parallel data transaction To transfer logical output circuit X, Y,

D Flip-flop n Usage: Parallel data transaction To transfer logical output circuit X, Y, Z to Q 1, Q 2, and Q 3 to be stored MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 22

JK Flip-flop n n There is no invalid condition There is toggle condition q

JK Flip-flop n n There is no invalid condition There is toggle condition q q J=HIGH (and K=LOW) – SET condition K=HIGH (and J=LOW) – RESET condition Both input LOW – no change Both input HIGH – “toggle” MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 23

JK Flip-flop n Criteria Table MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 24

JK Flip-flop n Criteria Table MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 24

T Flip-flop n T flip-flop single input version for JK flip-flop, formed by combining

T Flip-flop n T flip-flop single input version for JK flip-flop, formed by combining JK input n Criteria Table MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 25

T Flip-flop n Usage: As frequency divider MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 26

T Flip-flop n Usage: As frequency divider MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 26

Asynchronous Input n n n SR input, D and JK is synchronous input. Where

Asynchronous Input n n n SR input, D and JK is synchronous input. Where data from input will be transferred to flipflop output only when edge triggered of clock pulse Asynchronous Input free change condition from pulse clock. Example: preset (PRE) and clear (CLR) [or direct set (SD) and direct reset (RD)] When PRE=HIGH, Q immediately HIGH When CLR=HIGH, Q immediately LOW Flip flop function as normal when both PRE and CLR is LOW MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 27

Asynchronous Input n JK flip-flop with active LOW preset and clear MOHD. YAMANI IDRIS/

Asynchronous Input n JK flip-flop with active LOW preset and clear MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 28

Master Slave Flip-flop n n Master is activated when positive edge and Slave is

Master Slave Flip-flop n n Master is activated when positive edge and Slave is activated when clock negative edge triggered Master Slave Flip-flop MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 29