Академический Документы
Профессиональный Документы
Культура Документы
Overview
Parallel Load Register Shift Registers
Serial Load Serial Addition
4-Bit Register
Shift Register
10
Shift
0 0 1
Load
0 1 X
Operation
Nothing Load parallel Shift Q0 Q1, Q1Q2
11
S1S0 00 01 10 11
12
13
Counters
A counter is a sequential circuit that goes through a predetermined sequence of states upon the application of clock pulses. Counters are categorized as:
Synchronous Counter: All FFs receive the common clock pulse, and the change of state is determined from the present state. Ripple Counters: The FF output transition serves as a source for triggering other FFs. No common clock.
14
15
16
17
18
19
Q0
J C K
Q1
J C K
Q2
JQ2 = Q0 Q1 KQ2 = Q0 Q1
J C K
Q3
JQ3 = Q0 Q1 Q2 KQ3 = Q0 Q1 Q2 20
CLK
21
PJF
Load Count D0
D
C
Q0
D1
D C
Q1
Load Count 0 0 1 0 1 X
D2
Q2
D3
D C
Q3
PJF
DONT DO THIS! Referred to as a suicide counter! (Count 7 is killed, but the designers job may be dead as well!) 24
0 0 0 0
Clock
D3 D2
Q3 Q2 Q1 Q0
D1
D0 CP
LOAD
Reset
CLEAR
Using dont cares for states above 0110, detection of 6 can be done with Load = Q4 Q2
25
A synchronous, 4-bit binary counter with a synchronous Load is to be used to make a Modulo 6 counter. Use the Load feature to Clock preset the count to 9 on Reset Reset and detection of count 14. 1
Q2 Q1
Q0
This gives a count of 9, 10, 11, 12, 13, 14, 9, 10, 11, 12, 13, 14, 9, If the terminal count is 15 detection is usually built in as Carry Out (CO) 26
Ripple Counter
How does it work?
When there is a positive edge on the clock input of A, A complements The clock input for flipflop B is the complemented output of flip-flop A When flip A changes from 1 to 0, there is a positive edge on the clock input of B CP causing B to complement
D Clock CR A
D CR Reset
B
0 1 2 3 0 1 PJF - 27
Example (cont.)
28
B
0 1 2 3
0 1
tPHL tpHL
B C
30
31
32
Simulation
P3