You are on page 1of 45

EE 271

Digital Circuits and


Systems
Faculty of Advanced Science and Technology
Faculty of Advanced Science and Technology

LATCH/FLIP FLOP
(FF)

2
2
Faculty of Advanced Science and Technology

Sequential switching circuits have the property that the output depends not only on
the present input but also on the past sequence of inputs. In effect, these circuits
must be able to “remember” something about the past history of the inputs in order
to produce the present output. Latches and flip-flops are commonly used memory
devices in sequential circuits. Basically, latches and flip-flops are memory devices
which can assume one of two stable output states and which have one or more
inputs that can cause the output state to change.

3
Faculty of Advanced Science and Technology

Logic Gate
- Combinational circuits using NOT, AND, OR,
NAND, NOR, XOR, XNOR

Latch/Flip-Flop
• Sequential circuits
- RS, T, D, JK

4
4
Faculty of Advanced Science and Technology

Preset & Clear

Preset (Pr)
- Pr active then Q =1 , do not care all the inputs
Clear (Clr hoặc Cl)
Clr active then Q = 0, do not care all the inputs
• Pr và Clr có thể tích cực mức 0 hay mức 1
• Reading more in 7.4.3 page 395, Brown 3rd Edition

Clock (Ck) signal


5
5
Faculty of Advanced Science and Technology

6
6
Faculty of Advanced Science and Technology

7
Faculty of Advanced Science and Technology

8
Faculty of Advanced Science and Technology

9
9
Faculty of Advanced Science and Technology

Master - Slaver

When C is 1, the data was put into Master FF, and when C
is 0, the date is out of Slaver FF

10
Faculty of Advanced Science and Technology

11
11
Faculty of Advanced Science and Technology

Mạch tạo sườn xuống

Trailing edge

12
12
Faculty of Advanced Science and Technology

b. Leading edge

13
13
Faculty of Advanced Science and Technology

• RS FF (Reset Set)
• TFF (Toggle)
• DFF (Data/Delay)
• JKFF (replace for RSFF and repair the X
status of RSFF: J  S, K  R)

14
14
Faculty of Advanced Science and Technology

Phương trình logic của RSFF

FF: Q0 = 0

15
15
Faculty of Advanced Science and Technology

Triger input

16
16
Faculty of Advanced Science and Technology

TFF

T = Toggle (change status when T = 1)

17
17
Faculty of Advanced Science and Technology

TFF

• Phương trình và dạng sóng minh họa

Q0 = 0

18
18
Giả thiết
Faculty of Advanced Science and Technology

trạng thái
ban đầu
Q0=0

FF: Q0 = 0 When T is 1: Freq.


DevisionDivision 19
19
Faculty of Advanced Science and Technology

20
20
Faculty of Advanced Science and Technology

If you prefer, instead, to get a divider other than the power of 2. How? If a divider to 5.
How many TFF we need 

21
Faculty of Advanced Science and Technology

22
Faculty of Advanced Science and Technology

23
Faculty of Advanced Science and Technology

ASYNCHRONOUS COUNTERS

24
Faculty of Advanced Science and Technology

SYNCHRONOUS COUNTERS

25
Faculty of Advanced Science and Technology

D (“data” or “delay”)

26
Faculty of Advanced Science and Technology

D (“data” or “delay”)

27
27
Faculty of Advanced Science and Technology

Giả thiết: DFF có xung Ck tích


cực tại sườn xuống và trạng thái
DFF ban đầu Q0=0

28
28
Faculty of Advanced Science and Technology

• Freq. Divider

29
Faculty of Advanced Science and Technology

JKFF

30
30
GiảFaculty
thiết: JKFF có xung Ck tích
of Advanced Science and Technology

cực tại sườn xuống và trạng thái


ban đầu Q0=0
JKFF (tt)

Giữ
nguyên
trạng thái

Xóa Thiết lập Xóa


Đảo trạng
thái 31
31
Faculty of Advanced Science and Technology

JKFF others FF

32
32
Faculty of Advanced Science and Technology

Bảng đầu vào kích của FF được dùng để thiết kế mạch


tuần tự (máy trạng thái hữu hạn FSM)

33
33
Faculty of Advanced Science and Technology

34
Faculty of Advanced Science and Technology

35
Faculty of Advanced Science and Technology

36
Faculty of Advanced Science and Technology

37
Faculty of Advanced Science and Technology

38
Faculty of Advanced Science and Technology

39
Faculty of Advanced Science and Technology

40
Faculty of Advanced Science and Technology

RS FFJKFF

41
Faculty of Advanced Science and Technology

42
Faculty of Advanced Science and Technology

Flip Flop RS  Flip Flop D

43
Faculty of Advanced Science and Technology

Flip Flop D - Flip Flop RS

44
Faculty of Advanced Science and Technology

Flip Flop D - Flip Flop JK

45

You might also like