Lecture: DIGITAL SYSTEMS Chapter 5: Flip_Flops and Related Devices Nguyen Thanh Hai, PhD Faculty of Electrical & Electronic Engineering University of Technical Education Faculty of Elect
Trang 1Lecture:
DIGITAL SYSTEMS
Chapter 5:
Flip_Flops and Related Devices
Nguyen Thanh Hai, PhD
Faculty of Electrical & Electronic Engineering
University of Technical Education
Faculty of Electrical & Electronic Engineering
Flip-Flops and Related Devices
5.3 Clock signals
Trang 2Flip-Flops and Related Devices
3
Nguyen Thanh Hai, PhD
5.1 NAND Gate Latch
University of Technical Education
Faculty of Electrical & Electronic Engineering
Flip-Flops and Related Devices
Trang 3Flip-Flops and Related Devices
5.1 NAND Gate Latch
University of Technical Education
Faculty of Electrical & Electronic Engineering
Flip-Flops and Related Devices
5.2 NOR Gate Latch
Trang 4Flip-Flops and Related Devices
S
R
University of Technical Education
Faculty of Electrical & Electronic Engineering
Flip-Flops and Related Devices
8
Trang 5Flip-Flops and Related Devices
9
Nguyen Thanh Hai, PhD
Example 5.2:
University of Technical Education
Faculty of Electrical & Electronic Engineering
Flip-Flops and Related Devices
Trang 6Flip-Flops and Related Devices
11
Nguyen Thanh Hai, PhD
University of Technical Education
Faculty of Electrical & Electronic Engineering
Flip-Flops and Related Devices
LOW input clock pulse
Negative transition input clock pulse (edge- triggered)
Trang 7Flip-Flops and Related Devices
13
Nguyen Thanh Hai, PhD
• The circuit for generating a narrow clock pulse Ck with positive transition (edge)
University of Technical Education
Faculty of Electrical & Electronic Engineering
Flip-Flops and Related Devices
• The circuit for generating a narrow clock pulse Ck with negative transition (edge)
Trang 8Flip-Flops and Related Devices
University of Technical Education
Faculty of Electrical & Electronic Engineering
Flip-Flops and Related Devices
5.4 Clocked S-R Flip-Flop
Trang 9Flip-Flops and Related Devices
University of Technical Education
Faculty of Electrical & Electronic Engineering
Flip-Flops and Related Devices
5.5 Clocked J-K Flip-Flop
Trang 10Flip-Flops and Related Devices
19
Nguyen Thanh Hai, PhD
5.5 Clocked J-K Flip-Flop
) 0 , 1 , 1 , 1 (
1 1
* 0
=
Q Q K J
) 0 , 0 , 1 , 0 (
0 0
* 0 1 0
=
Q Q K J
University of Technical Education
Faculty of Electrical & Electronic Engineering
Flip-Flops and Related Devices
20
5.5 Clocked J-K Flip-Flop
Trang 11Flip-Flops and Related Devices
D
University of Technical Education
Faculty of Electrical & Electronic Engineering
Flip-Flops and Related Devices
5.6 Clocked D Flip-Flop
Trang 12Flip-Flops and Related Devices
23
Nguyen Thanh Hai, PhD
D-FF with its waveforms with negative edge clock
5.6 Clocked D Flip-Flop
University of Technical Education
Faculty of Electrical & Electronic Engineering
Flip-Flops and Related Devices
24
5.7 D Latch
D-Latch with waveforms
Enable=1, D=1, Q=1 Enable=1, D=0, Q=0
Trang 13Flip-Flops and Related Devices
25
Nguyen Thanh Hai, PhD
5.7 D Latch
University of Technical Education
Faculty of Electrical & Electronic Engineering
Flip-Flops and Related Devices
Example 5.3:
Trang 14Flip-Flops and Related Devices
27
Nguyen Thanh Hai, PhD
University of Technical Education
Faculty of Electrical & Electronic Engineering
Flip-Flops and Related Devices
28
Example 5.4:
Trang 15Flip-Flops and Related Devices
29
Nguyen Thanh Hai, PhD
University of Technical Education
Faculty of Electrical & Electronic Engineering
Flip-Flops and Related Devices
5.7 Asynchronous Input
Trang 16Flip-Flops and Related Devices
CLK PRE
CLR
V
5
+
University of Technical Education
Faculty of Electrical & Electronic Engineering
Flip-Flops and Related Devices
Trang 17Flip-Flops and Related Devices
33
Nguyen Thanh Hai, PhD
5.8 Flip-Flop Synchronization
CLOCK
Debounced
switch
A
X
CLOCK
A Q X
1
T 1 4 4 4 4 2 4 4 4 4 3
Pulses Complete
2
T
University of Technical Education
Faculty of Electrical & Electronic Engineering
Flip-Flops and Related Devices
5.9 Data Storage and Transfer
Trang 18Flip-Flops and Related Devices
35
Nguyen Thanh Hai, PhD
Parallel data transfer of contents of register X into register Y
Transfer
1
X
1
X
2
X
2
X
3
X
3
X
1
Y
1
Y
2
Y
2
Y
3
Y
3
Y
4 4 4 4 4 4
4 4 4 4 4 4
6 Register X
4 4 4 4 4 4 4 4 3 4 4 4 4 4 4 4 4 2 1 Y Register
5.9 Data Storage and Transfer
University of Technical Education
Faculty of Electrical & Electronic Engineering
Flip-Flops and Related Devices
36
5.10 Serial Data Transfer: Shift register
3
X
3
X CLK J
K
2
X
2
X CLK J
K
1
X
1
X CLK J
K
0
X
0
X CLK J
K
IN
DATA
Pulse
Shift
Trang 19Flip-Flops and Related Devices
37
Nguyen Thanh Hai, PhD
pulses Shift
3
X IN DATA
5.10 Serial Data Transfer: Shift register
University of Technical Education
Faculty of Electrical & Electronic Engineering
Flip-Flops and Related Devices
5.11 Microcomputer Application
3
X D
Trang 20Flip-Flops and Related Devices
39
Nguyen Thanh Hai, PhD
5.12 Analyzing Sequential Circuits
X
X CLK
J
K
Y
Y CLK J
K
Z
Z CLK J
University of Technical Education
Faculty of Electrical & Electronic Engineering
Flip-Flops and Related Devices
40
5.12 Analyzing Sequential Circuits
input Clock
Z Y X W
Trang 21Flip-Flops and Related Devices
41
Nguyen Thanh Hai, PhD
5.13 Clock Generator Circuits
University of Technical Education
Faculty of Electrical & Electronic Engineering
Flip-Flops and Related Devices
5.13 Clock Generator Circuits
C R 693
.
0
t 1 = b
)C R (R 693
.
0
Trang 22Flip-Flops and Related Devices
43
Change of states between Flip-Flop types
Nguyen Thanh Hai, PhD
Current
state Next state
University of Technical Education
Faculty of Electrical & Electronic Engineering
Flip-Flops and Related Devices
44
-Take a look Examples from pages
- Homework
Trang 23Flip-Flops and Related Devices
45
Nguyen Thanh Hai, PhD
The End