Ec 1201digital Electronics: 91-9444067484 (Cellphone)
Ec 1201digital Electronics: 91-9444067484 (Cellphone)
A. Jawahar,
Assistant Professor, ECE Dept.
SSN College of Engineering
Phone: 044 320!"" 2#" $E%tn : 3"&
'(4440)#4!4 $*ellphone&
E+ail: ,awahara-ssn.e./.in
01er1ie
w
2
3at*hes respon. to trigger le1els on *ontrol inp/ts
Data re+ains sta:le in the flip flop /ntil /ntil ne%t rising e.ge.
2
Different t7pes of flip flops ser1e .ifferent f/n*tions
2
8lip flops *an :e .efine. with *hara*teristi* f/n*tions.
D 3at*h
;
;<
C
D
S
R
S
R
S R C Q Q
0 0 1 Q
0
Q
0
Store
0 1 1 0 1 Reset
1 0 1 1 0 Set
1 1 1 1 1 Disallowed
X X 0 Q
0
Q
0
Store
0 1 0 1
1 1 1 0
X 0 Q
0
Q
0
D C Q Q
2 =hen C is high, D passes fro+ inp/t to o/tp/t $;&
Clo*>ing E1ent
Lo-Hi Lo-Hi edge Hi-Lo Hi-Lo edge
2
=hat if the o/tp/t onl7 *hange. on a C transition?
C
D ;
;<
0 0 1
1 1 0
X 0 Q
0
Q
0
D C Q Q
Positive edge triggered
?aster(Sla1e D 8lip 8lop
2
Consi.er two lat*hes *o+:ine. together
2
0nl7 one C 1al/e a*ti1e at a ti+e
2
0/tp/t *hanges on falling e.ge of the *lo*>
D 8lip(8lop
D gets latched to Q on the rising edge of the clock.
2
Stores a 1al/e on the positi1e e.ge of C
2
4np/t *hanges at other ti+es ha1e no effe*t on o/tp/t
C
D ;
;<
0 0 1
1 1 0
X 0 Q
0
Q
0
D C Q Q
Positive edge triggered
Clo*>e. D 8lip(8lop
2
Stores a 1al/e on the positi1e e.ge of C
2
4np/t *hanges at other ti+es ha1e no effe*t on o/tp/t
Positi1e an. Negati1e E.ge D 8lip(8lop
2
D flops *an :e triggere. on positi1e or negati1e e.ge
2
@/::le :efore Clock (C) inp/t in.i*ates negati1e e.ge trigger
Lo-Hi Lo-Hi edge
Hi-Lo Hi-Lo edge
Positive Edge-Triggered J-K Flip-Flop
0 0
Q
0
Q
0
0 1
0 1
1 0
1 0
1 1
A0553E
; J ;<
C3B
B C
Created from D flop
C
J et
C
! reet
C
J"!"1 -# i$%ert o&tp&t
Clo*>e. J(B 8lip 8lop
2
Awo .ata inp/ts, J an. B
2
J (9 set, B (9 reset, if J6B6' then toggle o/tp/t
C'ara(teriti( Ta)le
Positive Edge-Triggered T Flip-Flop
0
Q
0
Q
0
1
A0553E
; ;<
C
A
C
Created from D flop
C
T"0 -# *eep (&rre$t
C
! reet
C
T"1 -# i$%ert (&rre$t
As7n*hrono/s
4np/ts
J, K are synchronous inputs
o Effects on the output are synchronized with the !K input.
Store
0 1 1 0 1 Reset
1 0 1 1 0 Set
1 1 1 1 1 Disallowed
X X 0 Q
0
Q
0
Store
0 1 0 1
1 1 1 0
X 0 Q
0
Q
0
D C Q Q
2 ;
0
in.i*ates the pre1io/s state $the pre1io/sl7 store.
1al/e&
D 3at*h
;
;<
C
D
S
R
(
)
0 1 0 1
1 1 1 0
X 0 Q
0
Q
0
D C Q Q
2 4np/t 1al/e D is passe. to o/tp/t ; when C is high
2
4np/t 1al/e D is ignore. when C is low
D 3at*h
E
x
*atc+es on ,ollowin"
ed"e o, cloc$
E
D
;
C
x
-
-
2
I onl7 *hanges when E is high
2
4f E is high, I will follow J
D 3at*h
E
x
*atc+es on ,ollowin"
ed"e o, cloc$
E
D
;
C
x
-
-
2
Ahe D lat*h stores .ata in.efinitel7, regar.less of inp/t D 1al/es, if
C 6 0
2
8or+s :asi* storage ele+ent in *o+p/ters
S7+:ols for
3at*hes
2
SG lat*h is :ase. on N0G gates
2
S<G< lat*h :ase. on NAND gates
2
D lat*h *an :e :ase. on either.
2
D lat*h so+eti+es *alle. transparent lat*h
S/++ar7
2
3at*hes are :ase. on *o+:inational gates $e.g. NAND, N0G&
2
3at*hes store .ata e1en after .ata inp/t has :een re+o1e.
2
S(G lat*hes operate li>e *ross(*o/ple. in1erters with *ontrol inp/ts $S 6
set, G 6 reset&
2
=ith a..itional gates, an S(G lat*h *an :e *on1erte. to a D lat*h $D
stan.s for .ata&
2
D lat*h is si+ple to /n.erstan. *on*ept/all7