Slide 02
Slide 02
Storage units
Sequential circuits
Counters
Shifters
Counting in Binary
A counter can form the same pattern of 0’s and 1’s with
logic levels. The first stage in the counter represents the
least significant bit – notice that these waveforms
follow the same pattern as counting in binary.
LSB 0 1 0 1 0 1 0 1 0
0 0 1 1 0 0 1 1 0
MSB 0 0 0 0 1 1 1 1 0
2
Latches
Q Q
S R
3
Latches
4
Latches
5
Latches
6
Latches
D D Q
Q
EN EN
Q
Q
7
Latches
Inputs Outputs
D EN Q Q Comments
0 1 0 1 RESET
1 1 1 0 SET
X 0 Q0 Q0 No change
8
Latches
D Q
EN
Determine the Q output for the
Q
D latch, given the inputs shown.
EN
9
Flip-flops
C C
Dynamic Q Q
input
(a) Positive edgetriggered (b) Negative edgetriggered
indicator
10
Flip-flops
1 1 0 SET 1 1 0 SET
0 0 1 RESET 0 0 1 RESET
11
Flip-flops
12
Flip-flops
J Q
CLK
Determine the Q output for the J-K
flip-flop, given the inputs shown. K Q
Notice that the outputs change on the leading edge of the clock.
CLK
13
Flip-flop Characteristics
tPLH tPHL
The typical propagation delay time for the 74AHC family (CMOS)
is 4 ns. Even faster logic is available for specialized applications.
14
Flip-flop Characteristics
Set-up time and hold time are times required before and
after the clock transition that data must be present to be
reliably clocked into the flip-flop.
D
Setup time is the minimum
time for the data to be present CLK
before the clock.
Set-up time, ts
D
Hold time is the minimum
time for the data to remain after CLK
the clock.
Hold time, tH
15
Flip-flop Applications
Output
lines
Q0
Principal flip-flop applications are for
D
Q2
Typically, for data storage applications, D
R
Clear
16
Flip-flop Applications
17
Counting in Binary
A counter can form the same pattern of 0’s and 1’s with
logic levels. The first stage in the counter represents the
least significant bit – notice that these waveforms
follow the same pattern as counting in binary.
LSB 0 1 0 1 0 1 0 1 0
0 0 1 1 0 0 1 1 0
MSB 0 0 0 0 1 1 1 1 0
18
Three bit Asynchronous Counter
HIGH
J0 Q0 J1 Q1 J2 Q2
CLK C C C
Q0 Q1
K0 K1 K2
19
Asynchronous Decade Counter
Q0 Q1 Q2 Q3
J0 J1 J2 J3
CLK C C C C
K0 K1 K2 K3
20
Asynchronous Decade Counter
Q1 Glitch
Glitch
Q2
Q3
CLR
Glitch
Glitch
21
Synchronous Counters
asynchronous counter K0 K1 K2
22
Analysis of Synchronous Counters
23
Analysis of Synchronous Counters
1 1 0 0 0 0 0 1 1
1 1 1 1 1 1 1 1 1
0 0 0
At this points all states have been accounted
for and the counter is ready to recycle…
24
Serial-in/Serial out Shift Register
C C C C C
CLK
CLK
25
A Basic Application
FF0
FF0
FF0 FF1
FF1 FF2
FF2
FF2 FF3
FF3
FF3
Serial
Serial
Serial 0
1 0
1 10 1
data
data
data D
D
D00 Q00
Q
Q D
D
D11 Q11
Q
Q D22
D
D Q22
Q
Q D33
D
D Q33
Q
Q
input
input
input
C
C C
C CC C
CC
CLK
CLK
CLK
CLK
26
The 74HC164A Shift Register
S S S S S S S S
Q0 Q1 Q2 Q3 Q4 Q5 Q6 Q7
One of the two serial data inputs may be used as an active HIGH
enable to gate the other input. If no enable is needed, the other serial
input can be connected to VCC. The 74HC164A has an active LOW
asynchronous clear. Data is entered on the leading-edge of the clock.
27
Parallel in/Serial out Shift Register
SHIFT/LOAD
G1 G5 G2 G6 G3 G7 G4
Serial
D D D D
Q0 Q1 Q2 Q3 data out
C C C C
28
The 74HC165 Shift Register
The clock (CLK) and clock inhibit (CLK INH) lines are connected to a
common OR gate, so either of these inputs can be used as an active-
LOW clock enable with the other as the clock input. Data is loaded
asynchronously when SH/LD is LOW and moved through the register
synchronously when SH/LD is HIGH and a rising clock pulse occurs.
29