ch5 Flip-Flops and Related Devices
ch5 Flip-Flops and Related Devices
ch5 Flip-Flops and Related Devices
Chapter 5
Flip-Flops and Related Devices
Thái Truyển Đại Chấn
Introduction
• The logic circuit consider so far
has no memory
• Depending on only current
statuses
• Flip-flop is the most important
memory element
• A logic gate cannot store info.
• Several gates are used to form a
flip-flop
Introduction
Basic Structure
• is the most common
designations for FF’s outputs
•
• States
• FF is in the HIGH (1) state ↔Q = 1
• FF is in the LOW (0) state ↔Q = 0
• Q is always the inverse of Q
Introduction
• Flip-flop
• Several inputs
• Switch back and forth
• Momentarily activated (pulsed)
• Other names
• Latch
• Bistable multivibrator
Introduction
A
A
Y
B B
Set
Set Q
Reset
Reset
Q
• Second possibility
Active-LOW
NAND Gate Latch
• Example
• Given SET and RESET waveforms and initial Q, determine
the waveform of Q
• It “remembers” the last input that was activated and will not
change until the opposite input is activated
NAND Gate Latch
• Example
• Already left contact 1 but bouncing on contact 2
NAND Gate Latch
At set 1 R=0 because the current
• Example connect to 5v and to ground
NOR Gate Latch
• Similar to NAND gate latch except
• Q and Q have reversed positions
• SET and RESET are active-HIGH, normally at 0, set/reset by
a HIGH pulse
NOR Gate Latch
• Simplified block symbol
Data in
X3
Hold time
X2
• Example:
• Assume that the MOD-8 counter in
the 011 state. What will be the state
(count) after 21 pulses have been
applied?
Frequency Division and Counting
• Example:
• Consider a counter circuit that contains 5 FFs similar to the above (i.e., Q4, Q3, Q2, Q1,
Q0).
• (a) Determine the counter’s MOD number.
• (b) Determine the frequency at the output of the last FF (Q4) when the input clock
frequency is 1 MHz.
• (c) What is the range of counting states for this counter?
• (d) Assume a starting state (count) of 00000. What will be the counter’s state after 129
pulses?
Microcomputer Application
• A microprocessor unit (MPU) is the central processing unit of a
microcomputer
• Execute a program stored in memory